[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Feb 2 15:56:01 PST 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.118 -> 1.119

---
Log message:

Add MachineOperand::setDef() and MachineOperand::setUse() so that the
TwoAddressInstructionPass can correctly update use/def information.


---
Diffs of the changes:  (+3 -0)

Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.118 llvm/include/llvm/CodeGen/MachineInstr.h:1.119
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.118	Sun Dec 14 07:30:19 2003
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Mon Feb  2 15:55:18 2004
@@ -288,6 +288,9 @@
   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 &&





More information about the llvm-commits mailing list