Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.cpp updated: 1.16 -> 1.17 PPCInstrInfo.h updated: 1.11 -> 1.12 PPCInstrInfo.td updated: 1.178 -> 1.179 --- Log message: implement TII::insertNoop --- Diffs of the changes: (+8 -1) PPCInstrInfo.cpp | 5 +++++ PPCInstrInfo.h | 3 +++ PPCInstrInfo.td | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) Index: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1.16 llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1.17 --- llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1.16 Thu Feb 2 15:07:50 2006 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.cpp Sun Mar 5 17:49:55 2006 @@ -146,3 +146,8 @@ MI->getOperand(5).setImmedValue((MB-1) & 31); return MI; } + +void PPCInstrInfo::insertNoop(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MI) const { + BuildMI(MBB, MI, PPC::NOP, 0); +} Index: llvm/lib/Target/PowerPC/PPCInstrInfo.h diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.11 llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.12 --- llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.11 Thu Feb 2 14:16:12 2006 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.h Sun Mar 5 17:49:55 2006 @@ -46,6 +46,9 @@ // 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!"); Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.178 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.179 --- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.178 Tue Feb 28 23:50:56 2006 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Sun Mar 5 17:49:55 2006 @@ -229,7 +229,6 @@ 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)]>; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits