diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineInstr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 670f9721ae8..8f223b37bf1 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/include/llvm/CodeGen/MachineInstr.h @@ -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 && |

