[LLVMdev] A problem creating operands for a new IR instruction to the mailing list
criswell at cs.uiuc.edu
Tue May 5 09:42:32 PDT 2009
seventh moon wrote:
> So to say it simply, my question is, "How can I create a new Value*, which indicates
> an immediate value, such as immediate value 5?"
I don't know much about LLVM's code generators, but if all you need is
to create a Value * for an immediate constant, you might try using the
A ConstantInt is a subclass of Value, and you can use it to create
constant integer values in the LLVM IR.
-- John T.
More information about the llvm-dev