Open utterances-bot opened 3 years ago
Generate LLVM IR that displays the float type variable by using LLVM's C++ API.
https://capra314cabra.github.io/en/posts/2020-04-09-llvm-printf-float/
Nice tutorial. To understand why the cast is need before passing the values to printf, see https://stackoverflow.com/a/63156309/8925535
Thanks. I learn something new :)
[LLVM] How to show a float value by using printf · Capra Cabra Blog
Generate LLVM IR that displays the float type variable by using LLVM's C++ API.
https://capra314cabra.github.io/en/posts/2020-04-09-llvm-printf-float/