How to get the results of llvm::ScalarEvolution in a Function Pass
I want to get the results of ScalarEvolution analysis in a Function pass in order to get the tripcount for each loop.
How to Quantize the Return Type of a Function in an LLVM Pass?
I’m developing an LLVM pass to quantize a function by changing its return type from float to int32. Specifically, I have a function called mulfix with the following definition:
define dso_local float @mulfix(i32 %0, i32 %1)
I want to change it to:
Local variable not destroyed at function end
So I have this LLVM-IR code:
Local variable not destoryed at function end
So I have this LLVM-IR code: