mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 07:14:53 +00:00
Eliminate MachineOperand::isPhysicalRegister. The X86 backend should use
MRegisterInfo::isPhysicalRegister(MO.getReg()) and the Sparc backend should use isMachineRegister() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d878d80d6
commit
9f42dd5472
@ -229,10 +229,6 @@ public:
|
||||
return (opType == MO_VirtualRegister || opType == MO_MachineRegister)
|
||||
&& regNum >= MRegisterInfo::FirstVirtualRegister;
|
||||
}
|
||||
bool isPhysicalRegister() const {
|
||||
return (opType == MO_VirtualRegister || opType == MO_MachineRegister)
|
||||
&& (unsigned)regNum < MRegisterInfo::FirstVirtualRegister;
|
||||
}
|
||||
bool isRegister() const {
|
||||
return opType == MO_VirtualRegister || opType == MO_MachineRegister;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user