Changes in directory llvm/lib/Target/IA64:
IA64InstrInfo.cpp updated: 1.8 -> 1.9 IA64InstrInfo.h updated: 1.3 -> 1.4 --- Log message: RemoveBranch() and InsertBranch() now returns number of instructions deleted / inserted. --- Diffs of the changes: (+8 -6) IA64InstrInfo.cpp | 8 +++++--- IA64InstrInfo.h | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) Index: llvm/lib/Target/IA64/IA64InstrInfo.cpp diff -u llvm/lib/Target/IA64/IA64InstrInfo.cpp:1.8 llvm/lib/Target/IA64/IA64InstrInfo.cpp:1.9 --- llvm/lib/Target/IA64/IA64InstrInfo.cpp:1.8 Wed Apr 25 02:12:14 2007 +++ llvm/lib/Target/IA64/IA64InstrInfo.cpp Thu May 17 19:04:06 2007 @@ -47,10 +47,12 @@ // move instruction } -void IA64InstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, - MachineBasicBlock *FBB, - const std::vector<MachineOperand> &Cond)const { +unsigned +IA64InstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, + MachineBasicBlock *FBB, + const std::vector<MachineOperand> &Cond)const { // Can only insert uncond branches so far. assert(Cond.empty() && !FBB && TBB && "Can only handle uncond branches!"); BuildMI(&MBB, get(IA64::BRL_NOTCALL)).addMBB(TBB); + return 1; } Index: llvm/lib/Target/IA64/IA64InstrInfo.h diff -u llvm/lib/Target/IA64/IA64InstrInfo.h:1.3 llvm/lib/Target/IA64/IA64InstrInfo.h:1.4 --- llvm/lib/Target/IA64/IA64InstrInfo.h:1.3 Tue Oct 24 11:44:55 2006 +++ llvm/lib/Target/IA64/IA64InstrInfo.h Thu May 17 19:04:06 2007 @@ -37,9 +37,9 @@ virtual bool isMoveInstr(const MachineInstr& MI, unsigned& sourceReg, unsigned& destReg) const; - virtual void InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, - MachineBasicBlock *FBB, - const std::vector<MachineOperand> &Cond) const; + virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, + MachineBasicBlock *FBB, + const std::vector<MachineOperand> &Cond) const; }; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits