Displaying 1 result from an estimated 1 matches for "8ef714a7".
2016 Apr 24
2
Retrieving numeric value of instruction operand
Hello Everyone,
I need some help in retrieving the numeric value of an instruction operand
from LLVM IR.
this is what the IR looks like for a simple add function that adds two i32
integers
define i32 @summ(i32 %a, i32 %b) #0 {
entry:
%add = add nsw i32 %b, %a
ret i32 %add
}
i would like to know the integer value of %a and %b.
I've tried
-i->getOpcodeName() which gives me the