Displaying 3 results from an estimated 3 matches for "getlemeneptr".
Did you mean:
getelementptr
2008 Nov 16
0
[LLVMdev] How do I get the result of an instruction?
...robably have a stupid question but I could not find out so please help me out here. I can use getOperand to get the operands of an instruction. Similarly, How do I get the result of an instruction?
>
The instruction itself is its result.
For example, if I wanted to generate code that does a getlemeneptr
instruction (GEP) and then uses the result of the GEP as the pointer to
a load instruction, I would do the following:
Instruction * GEP = new GetElementPtrInst (Value, ....);
Instruction * LI = new LoadInst (GEP, "name", ...);
-- John T.
> Thanks,
> Bhavani
>
>
>...
2008 Nov 15
3
[LLVMdev] How do I get the result of an instruction?
Hi all,
I probably have a stupid question but I could not find out so please help me out here. I can use getOperand to get the operands of an instruction. Similarly, How do I get the result of an instruction?
Thanks,
Bhavani
2008 Nov 15
2
[LLVMdev] How do I get the result of an instruction?
...n but I could not find
> out so please help me out here. I can use getOperand to get
> the operands of an instruction. Similarly, How do I get the
> result of an instruction?
> The instruction itself is its result.
>
> For example, if I wanted to generate code that does a
> getlemeneptr instruction (GEP) and then uses the result of
> the GEP as the pointer to a load instruction, I would do the
> following:
>
> Instruction * GEP = new GetElementPtrInst (Value, ....);
> Instruction * LI = new LoadInst (GEP, "name",
> ...);
>
> -- John T.
>
>...