[LLVMdev] Operand, instruction

John Criswell criswell at uiuc.edu
Thu Apr 22 10:00:18 PDT 2010


help__me_please wrote:
> Thanks for the quick reply.
> I am able to get the numerical value. But i also need the numerical value to
> be in value type, so that it can be used as operand of other instruction.
> For that i am trying to create a new ConstantInt, but i am unable to find
> create() function for ConstantInt. 
>   

There is no need to do that.  If you look at the inheritance hierarchy 
in doxygen, ConstantInt inherits (indirectly) from Value.  You can use a 
ConstantInt in any place where a Value can be used.

-- John T.




More information about the llvm-dev mailing list