Displaying 2 results from an estimated 2 matches for "alloca_point".
2008 Jun 28
2
[LLVMdev] need to store the address of a variable
...I've code which generates this array, and a pointer to the target field of the
array.
name = variables.fname + "_pointerArray";
Instruction* pointerArray = new
AllocaInst(PointerType::get(Type::Int32Ty,NULL),
ConstantInt::get(Type::Int32Ty, variables.inst.size()),
name,
alloca_point);
// fill array with the addresses of the functions
for(unsigned int i = 0; i < variables.inst.size(); i++) {
name = "store_" + variables.inst[i]->getName();
Value* GEP = new GetElementPtrInst(pointerArray,
ConstantInt::get(Type::Int32Ty, i),
name,...
2008 Jun 28
0
[LLVMdev] need to store the address of a variable
...ray, and a pointer to the target field of the
> array.
>
> name = variables.fname + "_pointerArray";
> Instruction* pointerArray = new
> AllocaInst(PointerType::get(Type::Int32Ty,NULL),
> ConstantInt::get(Type::Int32Ty, variables.inst.size()),
> name,
> alloca_point);
>
> // fill array with the addresses of the functions
> for(unsigned int i = 0; i < variables.inst.size(); i++) {
> name = "store_" + variables.inst[i]->getName();
> Value* GEP = new GetElementPtrInst(pointerArray,
> ConstantInt::get(Type:...