implement TII::insertNoop
llvm-svn: 26562
This commit is contained in:
parent
4d9c174f3b
commit
ea79d9fd73
@ -146,3 +146,8 @@ MachineInstr *PPCInstrInfo::commuteInstruction(MachineInstr *MI) const {
|
||||
MI->getOperand(5).setImmedValue((MB-1) & 31);
|
||||
return MI;
|
||||
}
|
||||
|
||||
void PPCInstrInfo::insertNoop(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI) const {
|
||||
BuildMI(MBB, MI, PPC::NOP, 0);
|
||||
}
|
||||
|
||||
@ -46,6 +46,9 @@ public:
|
||||
// rotate amt is zero. We also have to munge the immediates a bit.
|
||||
virtual MachineInstr *commuteInstruction(MachineInstr *MI) const;
|
||||
|
||||
virtual void insertNoop(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI) const;
|
||||
|
||||
static unsigned invertPPCBranchOpcode(unsigned Opcode) {
|
||||
switch (Opcode) {
|
||||
default: assert(0 && "Unknown PPC branch opcode!");
|
||||
|
||||
@ -229,7 +229,6 @@ let usesCustomDAGSchedInserter = 1 in { // Expanded by the scheduler.
|
||||
i32imm:$BROPC), "; SELECT_CC PSEUDO!", []>;
|
||||
}
|
||||
|
||||
|
||||
let isTerminator = 1, noResults = 1 in {
|
||||
let isReturn = 1 in
|
||||
def BLR : XLForm_2_ext<19, 16, 20, 0, 0, (ops), "blr", BrB, [(retflag)]>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user