<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 23, 2009, at 11:55 AM, Sanjay Soman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><tr><td valign="top" style="font: inherit;"><div>Hi,</div> <div> I would like to get the type of immediate value (integer) from MachineOperand Class. Currently the immediate value is being represented as int64_t.</div> <div><font size="2">int64_t ImmVal; </font><font color="#008000" size="2">// For MO_Immediate.</font></div> <div><font size="2"></font> </div> <div><font size="2">Is it possible to find out whether the immediate value is int8, 16, 32 etc? </font></div> <div><font size="2"></font> </div> <div><font size="2">Note: My target has a virtual Instruction set.</font></div> <div> </div> <div>Thanks in advance,</div> <div>-Sanjay</div></td></tr></tbody></table><br></blockquote><div><br></div>It's not possible. MachineOperand and TargetOperandInfo do not carry type information.</div><div><br></div><div>Evan</div><div><br><blockquote type="cite"> _______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></body></html>