[llvm] r237005 - CodeGen: Make MachineInstr::untieRegOperand() a public function

Tom Stellard thomas.stellard at amd.com
Mon May 11 10:40:55 PDT 2015


Author: tstellar
Date: Mon May 11 12:40:54 2015
New Revision: 237005

URL: http://llvm.org/viewvc/llvm-project?rev=237005&view=rev
Log:
CodeGen: Make MachineInstr::untieRegOperand() a public function

This makes it easier to update in place instructions with tied operands.

Differential Revision: http://reviews.llvm.org/D9231

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineInstr.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=237005&r1=237004&r2=237005&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Mon May 11 12:40:54 2015
@@ -1171,12 +1171,6 @@ public:
     NumMemRefs = 0;
   }
 
-private:
-  /// getRegInfo - If this instruction is embedded into a MachineFunction,
-  /// return the MachineRegisterInfo object for the current function, otherwise
-  /// return null.
-  MachineRegisterInfo *getRegInfo();
-
   /// untieRegOperand - Break any tie involving OpIdx.
   void untieRegOperand(unsigned OpIdx) {
     MachineOperand &MO = getOperand(OpIdx);
@@ -1186,6 +1180,13 @@ private:
     }
   }
 
+
+private:
+  /// getRegInfo - If this instruction is embedded into a MachineFunction,
+  /// return the MachineRegisterInfo object for the current function, otherwise
+  /// return null.
+  MachineRegisterInfo *getRegInfo();
+
   /// addImplicitDefUseOperands - Add all implicit def and use operands to
   /// this instruction.
   void addImplicitDefUseOperands(MachineFunction &MF);





More information about the llvm-commits mailing list