Changes in directory llvm/lib/Target/Alpha:

AlphaInstrInfo.cpp updated: 1.9 -> 1.10
AlphaInstrInfo.h updated: 1.5 -> 1.6
---
Log message:

implement uncond branch insertion so alpha works work branchfolding.


---
Diffs of the changes:  (+11 -0)

 AlphaInstrInfo.cpp |    7 +++++++
 AlphaInstrInfo.h   |    4 ++++
 2 files changed, 11 insertions(+)


Index: llvm/lib/Target/Alpha/AlphaInstrInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.cpp:1.9 
llvm/lib/Target/Alpha/AlphaInstrInfo.cpp:1.10
--- llvm/lib/Target/Alpha/AlphaInstrInfo.cpp:1.9        Thu Mar  9 12:18:51 2006
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.cpp    Tue Oct 24 11:41:36 2006
@@ -83,3 +83,10 @@
   return 0;
 }
 
+void AlphaInstrInfo::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, Alpha::BR, 1).addMBB(TBB);
+}
\ No newline at end of file


Index: llvm/lib/Target/Alpha/AlphaInstrInfo.h
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.h:1.5 
llvm/lib/Target/Alpha/AlphaInstrInfo.h:1.6
--- llvm/lib/Target/Alpha/AlphaInstrInfo.h:1.5  Thu Feb  2 21:07:37 2006
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.h      Tue Oct 24 11:41:36 2006
@@ -38,6 +38,10 @@
   
   virtual unsigned isLoadFromStackSlot(MachineInstr *MI, int &FrameIndex) 
const;
   virtual unsigned isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const;
+  
+  virtual void 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

Reply via email to