aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CellSPU/SPUInstrInfo.h
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2008-12-10 00:15:19 +0000
committerScott Michel <scottm@aero.org>2008-12-10 00:15:19 +0000
commitaedc637c966b6eaa3ca33e9220efe5ec34517de7 (patch)
tree1345ee8a3819d9eefb4ee01c61d54c7d47995b7d /lib/Target/CellSPU/SPUInstrInfo.h
parent30a64a76492b6a92ccf6d6a6ac907ff8b2b18305 (diff)
downloadexternal_llvm-aedc637c966b6eaa3ca33e9220efe5ec34517de7.zip
external_llvm-aedc637c966b6eaa3ca33e9220efe5ec34517de7.tar.gz
external_llvm-aedc637c966b6eaa3ca33e9220efe5ec34517de7.tar.bz2
CellSPU:
- Fix bug 3185, with misc other cleanups. - Needed to implement SPUInstrInfo::InsertBranch(). CAUTION: Not sure what gets or needs to get passed to InsertBranch() to insert a conditional branch. This will abort for now until a good test case shows up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUInstrInfo.h')
-rw-r--r--lib/Target/CellSPU/SPUInstrInfo.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPUInstrInfo.h b/lib/Target/CellSPU/SPUInstrInfo.h
index 5c59b68..27766ba 100644
--- a/lib/Target/CellSPU/SPUInstrInfo.h
+++ b/lib/Target/CellSPU/SPUInstrInfo.h
@@ -91,7 +91,17 @@ namespace llvm {
MachineInstr* LoadMI) const {
return 0;
}
- };
+
+ virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
+ MachineBasicBlock *&FBB,
+ SmallVectorImpl<MachineOperand> &Cond) const;
+
+ virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const;
+
+ virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
+ MachineBasicBlock *FBB,
+ const SmallVectorImpl<MachineOperand> &Cond) const;
+ };
}
#endif