mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Add MachineOperand::setDef() and MachineOperand::setUse() so that the
TwoAddressInstructionPass can correctly update use/def information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11086 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b606eaca1b
commit
782ce955b2
@ -288,6 +288,9 @@ public:
|
||||
bool isHiBits64 () const { return flags & HIFLAG64; }
|
||||
bool isLoBits64 () const { return flags & LOFLAG64; }
|
||||
|
||||
MachineOperand& setUse () { flags |= USEFLAG; return *this; }
|
||||
MachineOperand& setDef () { flags |= DEFFLAG; return *this; }
|
||||
|
||||
// used to check if a machine register has been allocated to this operand
|
||||
bool hasAllocatedReg() const {
|
||||
return (regNum >= 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user