Add MachineOperand::setDef() and MachineOperand::setUse() so that the
[oota-llvm.git] / include / llvm / CodeGen / MachineInstr.h
index 670f9721ae8c2d870a49ed1de5ee592792dda2df..8f223b37bf109da9b7c3f4734f5beba6bba8a9ca 100644 (file)
@@ -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 &&