[PATCH] CodeGen: Make MachineInstr::untieRegOperand() a public function
Tom Stellard
thomas.stellard at amd.com
Thu Apr 23 13:12:34 PDT 2015
This makes it easier to update in place instructions with tied operands.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D9231
Files:
include/llvm/CodeGen/MachineInstr.h
Index: include/llvm/CodeGen/MachineInstr.h
===================================================================
--- include/llvm/CodeGen/MachineInstr.h
+++ include/llvm/CodeGen/MachineInstr.h
@@ -1171,12 +1171,6 @@
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:
+ /// 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);
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9231.24325.patch
Type: text/x-patch
Size: 1035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150423/c791e8f1/attachment.bin>
More information about the llvm-commits
mailing list