[LLVMdev] Operand, instruction

Devang Patel dpatel at apple.com
Wed Feb 11 10:49:12 PST 2009


On Feb 11, 2009, at 10:42 AM, Nipun Arora wrote:

> Hi,
>
> How can one extract the operand of an instruction in an LLVM pass?
> Like I can get the opcode bt I'd like to get the operands as well
>

getOperand(i).  See Instruction.h and User.h

-
Devang



More information about the llvm-dev mailing list