|
LLVM
4.0.0
|
#include <CriticalAntiDepBreaker.h>
Public Member Functions | |
| CriticalAntiDepBreaker (MachineFunction &MFi, const RegisterClassInfo &) | |
| ~CriticalAntiDepBreaker () override | |
| void | StartBlock (MachineBasicBlock *BB) override |
| Initialize anti-dep breaking for a new basic block. More... | |
| unsigned | BreakAntiDependencies (const std::vector< SUnit > &SUnits, MachineBasicBlock::iterator Begin, MachineBasicBlock::iterator End, unsigned InsertPosIndex, DbgValueVector &DbgValues) override |
| Identifiy anti-dependencies along the critical path of the ScheduleDAG and break them by renaming registers. More... | |
| void | Observe (MachineInstr &MI, unsigned Count, unsigned InsertPosIndex) override |
| Update liveness information to account for the current instruction, which will not be scheduled. More... | |
| void | FinishBlock () override |
| Finish anti-dep breaking for a basic block. More... | |
Public Member Functions inherited from llvm::AntiDepBreaker | |
| virtual | ~AntiDepBreaker () |
| void | UpdateDbgValue (MachineInstr &MI, unsigned OldReg, unsigned NewReg) |
| Update DBG_VALUE if dependency breaker is updating other machine instruction to use NewReg. More... | |
Additional Inherited Members | |
Public Types inherited from llvm::AntiDepBreaker | |
| typedef std::vector< std::pair < MachineInstr *, MachineInstr * > > | DbgValueVector |
Definition at line 32 of file CriticalAntiDepBreaker.h.
| CriticalAntiDepBreaker::CriticalAntiDepBreaker | ( | MachineFunction & | MFi, |
| const RegisterClassInfo & | RCI | ||
| ) |
Definition at line 30 of file CriticalAntiDepBreaker.cpp.
|
override |
Definition at line 38 of file CriticalAntiDepBreaker.cpp.
|
overridevirtual |
Identifiy anti-dependencies along the critical path of the ScheduleDAG and break them by renaming registers.
Implements llvm::AntiDepBreaker.
Definition at line 423 of file CriticalAntiDepBreaker.cpp.
References llvm::SDep::Anti, assert(), CriticalPathStep(), llvm::SDep::Data, llvm::dbgs(), DEBUG, E, llvm::SUnit::getDepth(), llvm::SUnit::getInstr(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineInstr::hasExtraDefRegAllocReq(), I, i, llvm::MachineRegisterInfo::isAllocatable(), llvm::MachineInstr::isCall(), llvm::MachineInstr::isDebugValue(), llvm::MachineOperand::isDef(), llvm::MachineInstr::isKill(), llvm::TargetInstrInfo::isPredicated(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUse(), llvm::SUnit::Latency, llvm::Max, P, llvm::SUnit::Preds, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::BitVector::test(), and llvm::AntiDepBreaker::UpdateDbgValue().
|
overridevirtual |
Finish anti-dep breaking for a basic block.
Implements llvm::AntiDepBreaker.
Definition at line 85 of file CriticalAntiDepBreaker.cpp.
References llvm::BitVector::reset().
|
overridevirtual |
Update liveness information to account for the current instruction, which will not be scheduled.
Implements llvm::AntiDepBreaker.
Definition at line 90 of file CriticalAntiDepBreaker.cpp.
References assert(), llvm::MCRegisterInfo::getNumRegs(), llvm::MachineInstr::isDebugValue(), and llvm::MachineInstr::isKill().
|
overridevirtual |
Initialize anti-dep breaking for a new basic block.
Implements llvm::AntiDepBreaker.
Definition at line 41 of file CriticalAntiDepBreaker.cpp.
References llvm::TargetRegisterInfo::getCalleeSavedRegs(), llvm::MachineFunction::getFrameInfo(), llvm::MCRegisterInfo::getNumRegs(), llvm::MachineFrameInfo::getPristineRegs(), I, i, llvm::MachineBasicBlock::isReturnBlock(), llvm::MCRegAliasIterator::isValid(), llvm::BitVector::reset(), SI, llvm::MachineBasicBlock::size(), llvm::MachineBasicBlock::succ_begin(), llvm::MachineBasicBlock::succ_end(), and llvm::BitVector::test().
1.8.6