Displaying 1 result from an estimated 1 matches for "34dd74c4".
2018 Apr 07
1
Print emory for constant address
Hi all,
Consider a simple ll code:
%2 = load i32* %y, align 4
I intend to get the memory address of %2.
if(isa<loadInst>(I)){
// variable name:y
value v = I.getOperand(0);
// ? I shows the entire instruction, not %2, then I.getName() would print an empty space which is %2, but I can’t get the memory when dereferencing it
errs()<< *&(I.getName())<<"\n”;
}
error: