Relative Content

Tag Archive for llvmllvm-ir

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: