diff options
| author | Scott Michel <scottm@aero.org> | 2008-12-10 00:15:19 +0000 |
|---|---|---|
| committer | Scott Michel <scottm@aero.org> | 2008-12-10 00:15:19 +0000 |
| commit | a2495508cd71583c6d4352c1ed247b4dd4fb7916 (patch) | |
| tree | 14999f153f215da065aec369b0c367a9834eb4dc /llvm/lib/Target/CellSPU/SPUInstrInfo.h | |
| parent | d9f7b1c230703e9fba9b2e4cbabddb6679336d46 (diff) | |
| download | bcm5719-llvm-a2495508cd71583c6d4352c1ed247b4dd4fb7916.tar.gz bcm5719-llvm-a2495508cd71583c6d4352c1ed247b4dd4fb7916.zip | |
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.
llvm-svn: 60811
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUInstrInfo.h')
| -rw-r--r-- | llvm/lib/Target/CellSPU/SPUInstrInfo.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUInstrInfo.h b/llvm/lib/Target/CellSPU/SPUInstrInfo.h index 5c59b68cbb1..27766ba4327 100644 --- a/llvm/lib/Target/CellSPU/SPUInstrInfo.h +++ b/llvm/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 |

