summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-05-11 17:40:54 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-05-11 17:40:54 +0000
commit59b60af06de92d704f7134d5d5fee54298ec20eb (patch)
tree932f983fab4c111678c7a9a1466a33887510914c
parentaf171e7720ec801d08e1ef2971b32b5999a30c94 (diff)
downloadbcm5719-llvm-59b60af06de92d704f7134d5d5fee54298ec20eb.tar.gz
bcm5719-llvm-59b60af06de92d704f7134d5d5fee54298ec20eb.zip
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 llvm-svn: 237005
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstr.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index 586ac049b6c..7a90104e1ba 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -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);
OpenPOWER on IntegriCloud