mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-20 03:17:48 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1171,12 +1171,6 @@ public:
|
|||||||
NumMemRefs = 0;
|
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.
|
/// untieRegOperand - Break any tie involving OpIdx.
|
||||||
void untieRegOperand(unsigned OpIdx) {
|
void untieRegOperand(unsigned OpIdx) {
|
||||||
MachineOperand &MO = getOperand(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
|
/// addImplicitDefUseOperands - Add all implicit def and use operands to
|
||||||
/// this instruction.
|
/// this instruction.
|
||||||
void addImplicitDefUseOperands(MachineFunction &MF);
|
void addImplicitDefUseOperands(MachineFunction &MF);
|
||||||
|
|||||||
Reference in New Issue
Block a user