search for: minpos_pointerarray

Displaying 2 results from an estimated 2 matches for "minpos_pointerarray".

2008 Jun 28
2
[LLVMdev] need to store the address of a variable
...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, alloca_point); } the result of this is: %minPos_pointerArray = alloca i32*, i32 26 ; <i32**> [#uses=26] %store_tmp1 = getelementptr i32** %minPos_pointerArray, i32 1 ; <i32**> ... But I could not find a way to get a pointer to a given variable. When I translate the following C Code with llvm-gcc int a; int* d; d = &a; to...
2008 Jun 28
0
[LLVMdev] need to store the address of a variable
...ize(); i++) { > name = "store_" + variables.inst[i]->getName(); > Value* GEP = new GetElementPtrInst(pointerArray, > ConstantInt::get(Type::Int32Ty, i), > name, > alloca_point); > } > > the result of this is: > > %minPos_pointerArray = alloca i32*, i32 26 ; <i32**> [#uses=26] > %store_tmp1 = getelementptr i32** %minPos_pointerArray, i32 1 ; <i32**> ... > > But I could not find a way to get a pointer to a given variable. > You probably already know this, but I want to state it just in...