aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-02 21:55:18 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-02 21:55:18 +0000
commit782ce955b2553305d9958a17d6482fe87243303d (patch)
tree50d6cdbfedf85736b84fc71e17cf80cbc17eb6a1
parentb606eaca1b149ef74c578a6a11d65339c125edab (diff)
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
-rw-r--r--include/llvm/CodeGen/MachineInstr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 670f9721ae..8f223b37bf 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/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 &&