Urg, the X86 backend DOES use virtual register operands. :(
llvm-svn: 11288
This commit is contained in:
parent
3d33d64f46
commit
62da05d3f0
|
@ -220,12 +220,15 @@ public:
|
||||||
bool isPCRelative() const { return (flags & PCRELATIVE) != 0; }
|
bool isPCRelative() const { return (flags & PCRELATIVE) != 0; }
|
||||||
|
|
||||||
|
|
||||||
/// isRegister - Return true if this operand is a register operand.
|
/// isRegister - Return true if this operand is a register operand. The X86
|
||||||
|
/// backend currently can't decide whether to use MO_MR or MO_VR to represent
|
||||||
|
/// them, so we accept both.
|
||||||
///
|
///
|
||||||
/// Note: In the sparc backend, this only returns true for "machine
|
/// Note: The sparc backend should not use this method.
|
||||||
/// registers", not for "virtual registers".
|
|
||||||
///
|
///
|
||||||
bool isRegister() const { return opType == MO_MachineRegister; }
|
bool isRegister() const {
|
||||||
|
return opType == MO_MachineRegister || opType == MO_VirtualRegister;
|
||||||
|
}
|
||||||
|
|
||||||
bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; }
|
bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; }
|
||||||
bool isPCRelativeDisp() const { return opType == MO_PCRelativeDisp; }
|
bool isPCRelativeDisp() const { return opType == MO_PCRelativeDisp; }
|
||||||
|
|
Loading…
Reference in New Issue