[LLVMdev] How to determine Immediate Type in MachineOperand class?

Sanjay Soman sanj_soman at yahoo.com
Fri Jan 23 11:55:31 PST 2009


Hi,
   I would like to get the type of immediate value (integer) from MachineOperand Class. Currently the immediate value is being represented as int64_t.
int64_t ImmVal; // For MO_Immediate.
 
Is it possible to find out whether the immediate value is int8, 16, 32 etc? 
 
Note: My target has a virtual Instruction set.
 
Thanks in advance,
-Sanjay


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090123/9071a954/attachment.html>


More information about the llvm-dev mailing list