[LLVMdev] Types of operands of an Instruction

Tim Northover t.p.northover at gmail.com
Tue May 27 23:31:58 PDT 2014


Hi Rekha,

On 28 May 2014 06:23, Rekha R <rekharamapai at nitc.ac.in> wrote:
> I would like to know what are the other possibilities for the Type of an
> operand of an Instruction.

A good place to start would be the class hierarchy diagram here:
http://llvm.org/docs/doxygen/html/classllvm_1_1Value.html. It looks
like all of those Values are potential operands to an instruction (in
the right circumstances: MDNodes & MDStrings are rare, but exist for
some intrinsics I believe).

The main oddity is that the "Argument" sub-hierarchy doesn't really
exist as a separate, but is there so that people can deal with
Instructions and ConstantExprs in a uniform way.

Cheers.

Tim.



More information about the llvm-dev mailing list