Displaying 2 results from an estimated 2 matches for "getelemptr".
Did you mean:
getelemtptr
2008 Aug 28
1
[LLVMdev] instruction CE_GEP
Hi all,
I have a question with the "getelemptr" instruction.
E.g.: I have some GEP instructions in my program.
Some look like:
<INST_GEP op0=26 op1=64 op2=429/>
.
<INST_GEP op0=341 op1=64 op2=101 op3=499 op4=0/>
The first instruction above in assembly file:
%tmp60 = getelementptr [512 x i32]* @weights, i32 0, i32 %k.3.ph...
2012 Dec 02
3
[LLVMdev] GetElementPtrInst question
Hi all,
How can I create an llvm::GetElementPtrInst in which the pointer and
the index are in registers previously loaded with llvm::LoadInst ? I
mean, the generated instruction will be like this:
%1 = getelementptr i8* %myreg1, i32 %myreg2
here, %myreg1 and %myreg2 are previously created by load instructions
(llvm::LoadInst).
Please, let me know if there is an example of something similar.