| Public Types inherited from llvm::ScheduleDAGInstrs |
|
| enum |
DumpDirection { TopDown, BottomUp, Bidirectional, NotSet } |
|
The direction that should be used to dump the scheduled Sequence. More... |
| using |
SUList = std::list<SUnit *> |
|
A list of SUnits, used in Value2SUsMap, during DAG construction. |
| Public Attributes inherited from llvm::ScheduleDAG |
|
| const TargetMachine & |
TM |
|
Target processor. |
| const TargetInstrInfo * |
TII |
|
Target instruction information. |
| const TargetRegisterInfo * |
TRI |
|
Target processor register info. |
| MachineFunction & |
MF |
|
Machine function. |
| MachineRegisterInfo & |
MRI |
|
Virtual/real register map. |
| std::vector< SUnit > |
SUnits |
|
The scheduling units. |
| SUnit |
EntrySU |
|
Special node for the region entry. |
| SUnit |
ExitSU |
|
Special node for the region exit. |
| bool |
StressSched |
| Protected Types inherited from llvm::ScheduleDAGInstrs |
|
| using |
DbgValueVector |
| Protected Member Functions inherited from llvm::ScheduleDAGMILive |
|
| void |
buildDAGWithRegPressure () |
|
Call ScheduleDAGInstrs::buildSchedGraph with register pressure tracking enabled. |
| void |
initQueues (ArrayRef< SUnit * > TopRoots, ArrayRef< SUnit * > BotRoots) |
|
Release ExitSU predecessors and setup scheduler queues. |
| void |
scheduleMI (SUnit *SU, bool IsTopNode) |
|
Move an instruction and update register pressure. |
| void |
initRegPressure () |
| void |
updatePressureDiffs (ArrayRef< VRegMaskOrUnit > LiveUses) |
|
Update the PressureDiff array for liveness after scheduling this instruction. |
| void |
updateScheduledPressure (const SUnit *SU, const std::vector< unsigned > &NewMaxPressure) |
| void |
collectVRegUses (SUnit &SU) |
| Protected Member Functions inherited from llvm::ScheduleDAGMI |
|
| void |
postProcessDAG () |
|
Apply each ScheduleDAGMutation step in order. |
| void |
initQueues (ArrayRef< SUnit * > TopRoots, ArrayRef< SUnit * > BotRoots) |
|
Release ExitSU predecessors and setup scheduler queues. |
| void |
updateQueues (SUnit *SU, bool IsTopNode) |
|
Update scheduler DAG and queues after scheduling an instruction. |
| void |
placeDebugValues () |
|
Reinsert debug_values recorded in ScheduleDAGInstrs::DbgValues. |
| void |
dumpSchedule () const |
|
dump the scheduled Sequence. |
| void |
dumpScheduleTraceTopDown () const |
|
Print execution trace of the schedule top-down or bottom-up. |
| void |
dumpScheduleTraceBottomUp () const |
| bool |
checkSchedLimit () |
| void |
findRootsAndBiasEdges (SmallVectorImpl< SUnit * > &TopRoots, SmallVectorImpl< SUnit * > &BotRoots) |
| void |
releaseSucc (SUnit *SU, SDep *SuccEdge) |
|
ReleaseSucc - Decrement the NumPredsLeft count of a successor. |
| void |
releaseSuccessors (SUnit *SU) |
|
releaseSuccessors - Call releaseSucc on each of SU's successors. |
| void |
releasePred (SUnit *SU, SDep *PredEdge) |
|
ReleasePred - Decrement the NumSuccsLeft count of a predecessor. |
| void |
releasePredecessors (SUnit *SU) |
|
releasePredecessors - Call releasePred on each of SU's predecessors. |
| Protected Member Functions inherited from llvm::ScheduleDAGInstrs |
|
| BatchAAResults * |
getAAForDep () const |
|
Returns a (possibly null) pointer to the current BatchAAResults. |
| void |
reduceHugeMemNodeMaps (Value2SUsMap &stores, Value2SUsMap &loads, unsigned N) |
|
Reduces maps in FIFO order, by N SUs. |
| void |
addChainDependency (SUnit *SUa, SUnit *SUb, unsigned Latency=0) |
|
Adds a chain edge between SUa and SUb, but only if both AAResults and Target fail to deny the dependency. |
| void |
addChainDependencies (SUnit *SU, SUList &SUs, unsigned Latency) |
|
Adds dependencies as needed from all SUs in list to SU. |
| void |
addChainDependencies (SUnit *SU, Value2SUsMap &Val2SUsMap) |
|
Adds dependencies as needed from all SUs in map, to SU. |
| void |
addChainDependencies (SUnit *SU, Value2SUsMap &Val2SUsMap, ValueType V) |
|
Adds dependencies as needed to SU, from all SUs mapped to V. |
| void |
addBarrierChain (Value2SUsMap &map) |
|
Adds barrier chain edges from all SUs in map, and then clear the map. |
| void |
insertBarrierChain (Value2SUsMap &map) |
|
Inserts a barrier chain in a huge region, far below current SU. |
| void |
initSUnits () |
|
Creates an SUnit for each real instruction, numbered in top-down topological order. |
| void |
addPhysRegDataDeps (SUnit *SU, unsigned OperIdx) |
|
MO is an operand of SU's instruction that defines a physical register. |
| void |
addPhysRegDeps (SUnit *SU, unsigned OperIdx) |
|
Adds register dependencies (data, anti, and output) from this SUnit to following instructions in the same scheduling region that depend the physical register referenced at OperIdx. |
| void |
addVRegDefDeps (SUnit *SU, unsigned OperIdx) |
|
Adds register output and data dependencies from this SUnit to instructions that occur later in the same scheduling region if they read from or write to the virtual register defined at OperIdx. |
| void |
addVRegUseDeps (SUnit *SU, unsigned OperIdx) |
|
Adds a register data dependency if the instruction that defines the virtual register used at OperIdx is mapped to an SUnit. |
| LaneBitmask |
getLaneMaskForMO (const MachineOperand &MO) const |
|
Returns a mask for which lanes get read/written by the given (register) machine operand. |
| bool |
deadDefHasNoUse (const MachineOperand &MO) |
|
Returns true if the def register in MO has no uses. |
| Protected Member Functions inherited from llvm::ScheduleDAG |
|
| void |
dumpNodeAll (const SUnit &SU) const |
| Protected Attributes inherited from llvm::ScheduleDAGMILive |
|
| RegisterClassInfo * |
RegClassInfo |
| SchedDFSResult * |
DFSResult = nullptr |
|
Information about DAG subtrees. |
| BitVector |
ScheduledTrees |
| MachineBasicBlock::iterator |
LiveRegionEnd |
| VReg2SUnitMultiMap |
VRegUses |
|
Maps vregs to the SUnits of their uses in the current scheduling region. |
| PressureDiffs |
SUPressureDiffs |
| bool |
ShouldTrackPressure = false |
|
Register pressure in this region computed by initRegPressure. |
| bool |
ShouldTrackLaneMasks = false |
| IntervalPressure |
RegPressure |
| RegPressureTracker |
RPTracker |
| std::vector< PressureChange > |
RegionCriticalPSets |
|
List of pressure sets that exceed the target's pressure limit before scheduling, listed in increasing set ID order. |
| IntervalPressure |
TopPressure |
|
The top of the unscheduled zone. |
| RegPressureTracker |
TopRPTracker |
| IntervalPressure |
BotPressure |
|
The bottom of the unscheduled zone. |
| RegPressureTracker |
BotRPTracker |
| Protected Attributes inherited from llvm::ScheduleDAGMI |
|
| AAResults * |
AA |
| LiveIntervals * |
LIS |
| std::unique_ptr< MachineSchedStrategy > |
SchedImpl |
| std::vector< std::unique_ptr< ScheduleDAGMutation > > |
Mutations |
|
Ordered list of DAG postprocessing steps. |
| MachineBasicBlock::iterator |
CurrentTop |
|
The top of the unscheduled zone. |
| MachineBasicBlock::iterator |
CurrentBottom |
|
The bottom of the unscheduled zone. |
| Protected Attributes inherited from llvm::ScheduleDAGInstrs |
|
| const MachineLoopInfo * |
MLI = nullptr |
| const MachineFrameInfo & |
MFI |
| TargetSchedModel |
SchedModel |
|
TargetSchedModel provides an interface to the machine model. |
| bool |
RemoveKillFlags |
|
True if the DAG builder should remove kill flags (in preparation for rescheduling). |
| bool |
ScheduleSingleMIRegions = false |
|
True if regions with a single MI should be scheduled. |
| bool |
CanHandleTerminators = false |
|
The standard DAG builder does not normally include terminators as DAG nodes because it does not create the necessary dependencies to prevent reordering. |
| bool |
TrackLaneMasks = false |
|
Whether lane masks should get tracked. |
| MachineBasicBlock * |
BB = nullptr |
|
The block in which to insert instructions. |
| MachineBasicBlock::iterator |
RegionBegin |
|
The beginning of the range to be scheduled. |
| MachineBasicBlock::iterator |
RegionEnd |
|
The end of the range to be scheduled. |
| unsigned |
NumRegionInstrs = 0 |
|
Instructions in this region (distance(RegionBegin, RegionEnd)). |
| DenseMap< MachineInstr *, SUnit * > |
MISUnitMap |
|
After calling BuildSchedGraph, each machine instruction in the current scheduling region is mapped to an SUnit. |
| RegUnit2SUnitsMap |
Defs |
|
Defs, Uses - Remember where defs and uses of each register are as we iterate upward through the instructions. |
| RegUnit2SUnitsMap |
Uses |
| VReg2SUnitMultiMap |
CurrentVRegDefs |
|
Tracks the last instruction(s) in this region defining each virtual register. |
| VReg2SUnitOperIdxMultiMap |
CurrentVRegUses |
|
Tracks the last instructions in this region using each virtual register. |
| std::optional< BatchAAResults > |
AAForDep |
| SUnit * |
BarrierChain = nullptr |
|
Remember a generic side-effecting instruction as we proceed. |
| SmallVector< ClusterInfo > |
Clusters |
| DumpDirection |
DumpDir = NotSet |
| UndefValue * |
UnknownValue |
|
For an unanalyzable memory access, this Value is used in maps. |
| ScheduleDAGTopologicalSort |
Topo |
|
Topo - A topological ordering for SUnits which permits fast IsReachable and similar queries. |
| DbgValueVector |
DbgValues |
|
Remember instruction that precedes DBG_VALUE. |
| MachineInstr * |
FirstDbgValue = nullptr |
| LiveRegUnits |
LiveRegs |
|
Set of live physical registers for updating kill flags. |