summaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-24 16:41:36 +0000
committerChris Lattner <sabre@nondot.org>2006-10-24 16:41:36 +0000
commit0476b2852541575cc1628685cdb1d02d38ba6f87 (patch)
tree47041b8018ee5af8bbedf51cdf3d4daf62470e37 /lib/Target/Alpha/AlphaInstrInfo.cpp
parente87146ace88464be4ea4f8869830642c40178f1f (diff)
downloadllvm-0476b2852541575cc1628685cdb1d02d38ba6f87.tar.gz
llvm-0476b2852541575cc1628685cdb1d02d38ba6f87.tar.bz2
llvm-0476b2852541575cc1628685cdb1d02d38ba6f87.tar.xz
implement uncond branch insertion so alpha works work branchfolding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaInstrInfo.cpp')
-rw-r--r--lib/Target/Alpha/AlphaInstrInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaInstrInfo.cpp b/lib/Target/Alpha/AlphaInstrInfo.cpp
index c30f38aee3..84f54803a6 100644
--- a/lib/Target/Alpha/AlphaInstrInfo.cpp
+++ b/lib/Target/Alpha/AlphaInstrInfo.cpp
@@ -83,3 +83,10 @@ AlphaInstrInfo::isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const {
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