Sanjay Soman
2009-Jan-23 19:55 UTC
[LLVMdev] How to determine Immediate Type in MachineOperand class?
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>
Evan Cheng
2009-Jan-23 22:01 UTC
[LLVMdev] How to determine Immediate Type in MachineOperand class?
On Jan 23, 2009, at 11:55 AM, Sanjay Soman wrote:> 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 >It's not possible. MachineOperand and TargetOperandInfo do not carry type information. Evan> _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090123/7ff5104d/attachment.html>
Seemingly Similar Threads
- [LLVMdev] MachineOperand type
- [LLVMdev] Determining the register type of a MachineOperand
- [LLVMdev] [llvm-commits] [llvm] r162770 - in /llvm/trunk: include/llvm/CodeGen/MachineOperand.h lib/CodeGen/MachineInstr.cpp
- [LLVMdev] Determining the register type of a MachineOperand
- [LLVMdev] [llvm-commits] [llvm] r162770 - in /llvm/trunk: include/llvm/CodeGen/MachineOperand.h lib/CodeGen/MachineInstr.cpp