diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:32:19 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:32:19 +0000 |
commit | ae46db85a946ef49f9febc3eca85b8cfad622ccb (patch) | |
tree | 62390eedb352e7dcb86f43c7f27223efd4083269 /lib/Target/SystemZ/SystemZInstrInfo.h | |
parent | 27766b548fcf50b5f22929e297902082bd2ed58d (diff) | |
download | llvm-ae46db85a946ef49f9febc3eca85b8cfad622ccb.tar.gz llvm-ae46db85a946ef49f9febc3eca85b8cfad622ccb.tar.bz2 llvm-ae46db85a946ef49f9febc3eca85b8cfad622ccb.tar.xz |
Add bunch of branch folding stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.h')
-rw-r--r-- | lib/Target/SystemZ/SystemZInstrInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.h b/lib/Target/SystemZ/SystemZInstrInfo.h index 812509a0ce..0634aa99ea 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.h +++ b/lib/Target/SystemZ/SystemZInstrInfo.h @@ -86,10 +86,21 @@ public: MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI) const; + bool ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const; + virtual bool BlockHasNoFallThrough(const MachineBasicBlock &MBB) const; + virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const; + virtual bool AnalyzeBranch(MachineBasicBlock &MBB, + MachineBasicBlock *&TBB, + MachineBasicBlock *&FBB, + SmallVectorImpl<MachineOperand> &Cond, + bool AllowModify) const; virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond) const; + virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; + SystemZCC::CondCodes getOppositeCondition(SystemZCC::CondCodes CC) const; + SystemZCC::CondCodes getCondFromBranchOpc(unsigned Opc) const; const TargetInstrDesc& getBrCond(SystemZCC::CondCodes CC) const; const TargetInstrDesc& getLongDispOpc(unsigned Opc) const; }; |