Displaying 2 results from an estimated 2 matches for "ptr_d".
Did you mean:
ptr_0
2008 Jun 28
0
[LLVMdev] need to store the address of a variable
...ret void
}
then run "llc -march=cpp arndt.bc -f -o -" to see the C++ code that
constructs the module from the input bytecode. In your case, the
relevant section looks like this:
AllocaInst* ptr_a_addr = new AllocaInst(IntegerType::get(32), "a_addr",
label_4);
AllocaInst* ptr_d = new AllocaInst(PointerTy_1, "d", label_4);
StoreInst* void_5 = new StoreInst(int32_a /* argument %a */, ptr_a_addr,
false, label_4);
StoreInst* void_6 = new StoreInst(ptr_a_addr, ptr_d, false, label_4);
void_5 is putting the argument %a into the locally allocated %a_addr.
void_6 is ta...
2008 Jun 28
2
[LLVMdev] need to store the address of a variable
Hello everybody,
my problem is, that I want to get an array of pointers to all local variables
in a function. This array will be used for transfering these Variables to
another execution engine.
I've code which generates this array, and a pointer to the target field of the
array.
name = variables.fname + "_pointerArray";
Instruction* pointerArray = new