[LLVMdev] Grabbing Result of an Instruction.
michael at lunarg.com
Mon Aug 1 19:34:17 CDT 2011
In LLVM, %1 is the instruction itself. This is because LLVM IR is in
SSA, so the "=" really means equality. If you look at a use of %1,
e.g. as an operand to another instruction, you'll see that it's the
instruction itself that is there (i.e. you can dyn_cast<Instruction>
On Mon, Aug 1, 2011 at 5:27 PM, Manish Gupta <manishg at cs.ucsd.edu> wrote:
> What member function to use if I wish to operate on results of an
> Instruction %1 = getelementptr inbounds [10 x i32]* %a, i32 0, i32 %0
> I->getOperand will give me the operands.
> How should I get hold of %1?
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev