[LLVMdev] Determining the register type of a MachineOperand
Micah.Villmow at amd.com
Wed Sep 24 14:15:52 CDT 2008
This only has the register class information, not the register type
My register class has multiple register types and I need to know how to
differentiate which register type of my register class of the current
The information in the MVT data type is what I need, i.e. the position
in the GPRVT array of each register.
Something equivalent to MVT getValueType() but for registers.
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Evan Cheng
Sent: Wednesday, September 24, 2008 10:22 AM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Determining the register type of a MachineOperand
You can get to the MachineInstr from a MachineOperand. Then get to its
TargetInstrDesc and TargetOperandInfo which has register class
On Sep 23, 2008, at 12:44 PM, Villmow, Micah wrote:
How do I determine what type of register(i.e. i32, f32, etc..) I am
accessing from a MachineOperand? I.e. how do I get to the MVT struct, or
equivalent information, from a MachineOperand object?
Advanced Technology & Performance
Advanced Micro Devices Inc.
4555 Great America Pkwy,
Santa Clara, CA. 95054
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev