LLVM
8.0.1
|
#include "CodeGen/AggressiveAntiDepBreaker.h"
Public Member Functions | |
AggressiveAntiDepBreaker (MachineFunction &MFi, const RegisterClassInfo &RCI, TargetSubtargetInfo::RegClassVector &CriticalPathRCs) | |
~AggressiveAntiDepBreaker () 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... | |
void | UpdateDbgValues (const DbgValueVector &DbgValues, MachineInstr *ParentMI, unsigned OldReg, unsigned NewReg) |
Update all DBG_VALUE instructions that may be affected by the dependency breaker's update of ParentMI to use NewReg. More... | |
Additional Inherited Members | |
Public Types inherited from llvm::AntiDepBreaker | |
using | DbgValueVector = std::vector< std::pair< MachineInstr *, MachineInstr * > > |
Definition at line 117 of file AggressiveAntiDepBreaker.h.
AggressiveAntiDepBreaker::AggressiveAntiDepBreaker | ( | MachineFunction & | MFi, |
const RegisterClassInfo & | RCI, | ||
TargetSubtargetInfo::RegClassVector & | CriticalPathRCs | ||
) |
Definition at line 126 of file AggressiveAntiDepBreaker.cpp.
References llvm::dbgs(), llvm::TargetRegisterInfo::getAllocatableSet(), LLVM_DEBUG, llvm::BitVector::none(), llvm::printReg(), llvm::BitVector::set_bits(), and llvm::SmallVectorBase::size().
|
override |
Definition at line 149 of file AggressiveAntiDepBreaker.cpp.
|
overridevirtual |
Identifiy anti-dependencies along the critical path of the ScheduleDAG and break them by renaming registers.
BreakAntiDependencies - Identifiy anti-dependencies within the ScheduleDAG and break them by renaming registers.
Implements llvm::AntiDepBreaker.
Definition at line 754 of file AggressiveAntiDepBreaker.cpp.
|
overridevirtual |
Finish anti-dep breaking for a basic block.
Implements llvm::AntiDepBreaker.
Definition at line 192 of file AggressiveAntiDepBreaker.cpp.
|
overridevirtual |
Update liveness information to account for the current instruction, which will not be scheduled.
Implements llvm::AntiDepBreaker.
Definition at line 197 of file AggressiveAntiDepBreaker.cpp.
References assert(), llvm::dbgs(), llvm::MachineInstr::dump(), llvm::MachineInstr::findRegisterDefOperand(), llvm::MachineInstr::findRegisterUseOperand(), llvm::AggressiveAntiDepState::GetDefIndices(), llvm::AggressiveAntiDepState::GetGroup(), llvm::MachineInstr::getNumOperands(), llvm::MCRegisterInfo::getNumRegs(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isImplicit(), llvm::AggressiveAntiDepState::IsLive(), llvm::MachineOperand::isReg(), llvm::MachineInstr::isRegTiedToUseOperand(), llvm::MCRegisterInfo::DiffListIterator::isValid(), LLVM_DEBUG, MI, llvm::printReg(), Reg, and llvm::AggressiveAntiDepState::UnionGroups().
|
overridevirtual |
Initialize anti-dep breaking for a new basic block.
Implements llvm::AntiDepBreaker.
Definition at line 153 of file AggressiveAntiDepBreaker.cpp.
References assert(), llvm::MachineRegisterInfo::getCalleeSavedRegs(), llvm::AggressiveAntiDepState::GetDefIndices(), llvm::MachineFunction::getFrameInfo(), llvm::AggressiveAntiDepState::GetKillIndices(), llvm::MCRegisterInfo::getNumRegs(), llvm::MachineFrameInfo::getPristineRegs(), llvm::MachineFunction::getRegInfo(), I, llvm::MachineBasicBlock::isReturnBlock(), llvm::MCRegAliasIterator::isValid(), Reg, SI, llvm::MachineBasicBlock::size(), llvm::MachineBasicBlock::succ_begin(), llvm::MachineBasicBlock::succ_end(), llvm::BitVector::test(), and llvm::AggressiveAntiDepState::UnionGroups().