/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | TargetSchedule.cpp | 40 return EnableSchedModel && SchedModel.hasInstrSchedModel(); in hasInstrSchedModel() 65 SchedModel = TSInfo->getSchedModel(); in init() 69 unsigned NumRes = SchedModel.getNumProcResourceKinds(); in init() 71 ResourceLCM = SchedModel.IssueWidth; in init() 73 unsigned NumUnits = SchedModel.getProcResource(Idx)->NumUnits; in init() 77 MicroOpFactor = ResourceLCM / SchedModel.IssueWidth; in init() 79 unsigned NumUnits = SchedModel.getProcResource(Idx)->NumUnits; in init() 136 const MCSchedClassDesc *SCDesc = SchedModel.getSchedClassDesc(SchedClass); in resolveSchedClass() 147 SCDesc = SchedModel.getSchedClassDesc(SchedClass); in resolveSchedClass() 189 return TII->defaultDefLatency(SchedModel, *DefMI); in computeOperandLatency() [all …]
|
H A D | MachineScheduler.cpp | 1194 if (SchedModel.mustBeginGroup(SU.getInstr()) && in dump() 1195 SchedModel.mustEndGroup(SU.getInstr())) in dump() 2020 init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) { in init() argument 2022 if (!SchedModel->hasInstrSchedModel()) in init() 2024 RemainingCounts.resize(SchedModel->getNumProcResourceKinds()); in init() 2027 RemIssueCount += SchedModel->getNumMicroOps(SU.getInstr(), SC) in init() 2028 * SchedModel->getMicroOpFactor(); in init() 2030 PI = SchedModel->getWriteProcResBegin(SC), in init() 2031 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in init() 2033 unsigned Factor = SchedModel->getResourceFactor(PIdx); in init() [all …]
|
H A D | MachineTraceMetrics.cpp | 73 SchedModel.init(&ST); in runOnMachineFunction() 76 SchedModel.getNumProcResourceKinds()); in runOnMachineFunction() 109 unsigned PRKinds = SchedModel.getNumProcResourceKinds(); in getResources() 120 if (!SchedModel.hasInstrSchedModel()) in getResources() 122 const MCSchedClassDesc *SC = SchedModel.resolveSchedClass(&MI); in getResources() 127 PI = SchedModel.getWriteProcResBegin(SC), in getResources() 128 PE = SchedModel.getWriteProcResEnd(SC); PI != PE; ++PI) { in getResources() 139 PRCycles[K] * SchedModel.getResourceFactor(K); in getResources() 148 unsigned PRKinds = SchedModel.getNumProcResourceKinds(); in getProcResourceCycles() 160 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in Ensemble() [all …]
|
H A D | ScheduleDAGInstrs.cpp | 121 SchedModel.init(&ST); in ScheduleDAGInstrs() 272 Dep.setLatency(SchedModel.computeOperandLatency(SU->getInstr(), OperIdx, in addPhysRegDataDeps() 321 SchedModel.computeOutputLatency(MI, OperIdx, DefSU->getInstr())); in addPhysRegDeps() 447 Dep.setLatency(SchedModel.computeOperandLatency(MI, OperIdx, Use, in addVRegDefDeps() 491 SchedModel.computeOutputLatency(MI, OperIdx, DefSU->getInstr())); in addVRegDefDeps() 585 SU->Latency = SchedModel.computeInstrLatency(SU->getInstr()); in initSUnits() 595 if (SchedModel.hasInstrSchedModel()) { in initSUnits() 598 make_range(SchedModel.getWriteProcResBegin(SC), in initSUnits() 599 SchedModel.getWriteProcResEnd(SC))) { in initSUnits() 600 switch (SchedModel.getProcResource(PRE.ProcResourceIdx)->BufferSize) { in initSUnits()
|
H A D | EarlyIfConversion.cpp | 761 MCSchedModel SchedModel; member in __anon91bad1d10311::EarlyIfConverter 882 unsigned CritLimit = SchedModel.MispredictPenalty/2; in shouldConvertIf() 1056 SchedModel = STI.getSchedModel(); in runOnMachineFunction() 1085 TargetSchedModel SchedModel; member in __anon91bad1d10911::EarlyIfPredicator 1137 unsigned NumCycles = SchedModel.computeInstrLatency(&I, false); in shouldConvertIf() 1151 unsigned NumCycles = SchedModel.computeInstrLatency(&I, false); in shouldConvertIf() 1157 unsigned NumCycles = SchedModel.computeInstrLatency(&I, false); in shouldConvertIf() 1191 SchedModel.init(&STI); in runOnMachineFunction()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | TargetSchedule.h | 34 MCSchedModel SchedModel; variable 50 TargetSchedModel() : SchedModel(MCSchedModel::GetDefaultSchedModel()) {} in TargetSchedModel() 75 const MCSchedModel *getMCSchedModel() const { return &SchedModel; } in getMCSchedModel() 96 unsigned getProcessorID() const { return SchedModel.getProcessorID(); } in getProcessorID() 99 unsigned getIssueWidth() const { return SchedModel.IssueWidth; } in getIssueWidth() 114 return SchedModel.getNumProcResourceKinds(); in getNumProcResourceKinds() 119 return SchedModel.getProcResource(PIdx); in getProcResource() 126 return SchedModel.getProcResource(PIdx)->Name; in getResourceName() 161 unsigned getMicroOpBufferSize() const { return SchedModel.MicroOpBufferSize; } in getMicroOpBufferSize() 166 return SchedModel.getProcResource(PIdx)->BufferSize; in getResourceBufferSize()
|
H A D | ScheduleDAGInstrs.h | 125 TargetSchedModel SchedModel; variable 262 const TargetSchedModel *getSchedModel() const { return &SchedModel; } in getSchedModel() 266 if (!SU->SchedClass && SchedModel.hasInstrSchedModel()) in getSchedClass() 267 SU->SchedClass = SchedModel.resolveSchedClass(SU->getInstr()); in getSchedClass()
|
H A D | MachineScheduler.h | 602 void init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel); 618 const TargetSchedModel *SchedModel = nullptr; variable 734 return RetiredMOps * SchedModel->getMicroOpFactor(); in getCriticalCount() 742 return std::max(CurrCycle * SchedModel->getLatencyFactor(), in getExecutedCount() 763 return SchedModel->getProcResource(PIdx)->SubUnitsIdxBegin && in isUnbufferedGroup() 764 !SchedModel->getProcResource(PIdx)->BufferSize; in isUnbufferedGroup() 903 const TargetSchedModel *SchedModel); 908 const TargetSchedModel *SchedModel = nullptr; variable
|
H A D | MachineTraceMetrics.h | 93 TargetSchedModel SchedModel; variable 416 unsigned Factor = SchedModel.getLatencyFactor(); in getCycles()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
H A D | SystemZHazardRecognizer.cpp | 152 for (unsigned i = 0; i < SchedModel->getNumProcResourceKinds(); ++i) in nextGroup() 176 PI = SchedModel->getWriteProcResBegin(SC), in dumpSU() 177 PE = SchedModel->getWriteProcResEnd(SC); PI != PE; ++PI) { in dumpSU() 179 *SchedModel->getProcResource(PI->ProcResourceIdx); in dumpSU() 226 for (unsigned i = 0; i < SchedModel->getNumProcResourceKinds(); ++i) in dumpProcResourceCounters() 236 for (unsigned i = 0; i < SchedModel->getNumProcResourceKinds(); ++i) in dumpProcResourceCounters() 238 dbgs() << SchedModel->getProcResource(i)->Name in dumpProcResourceCounters() 244 << SchedModel->getProcResource(CriticalResourceIdx)->Name in dumpProcResourceCounters() 260 ProcResourceCounters.assign(SchedModel->getNumProcResourceKinds(), 0); in clearProcResCounters() 297 PI = SchedModel->getWriteProcResBegin(SC), in EmitInstruction() [all …]
|
H A D | SystemZHazardRecognizer.h | 48 const TargetSchedModel *SchedModel; variable 112 : TII(tii), SchedModel(SM) { in SystemZHazardRecognizer() 122 if (!SU->SchedClass && SchedModel->hasInstrSchedModel()) in getSchedClass() 123 SU->SchedClass = SchedModel->resolveSchedClass(SU->getInstr()); in getSchedClass()
|
H A D | SystemZMachineScheduler.cpp | 88 HazardRec = SchedStates[MBB] = new SystemZHazardRecognizer(TII, &SchedModel); in enterMBB() 136 SchedModel.init(ST); in SystemZPostRASchedStrategy()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonMachineScheduler.h | 41 const TargetSchedModel *SchedModel; variable 52 : SchedModel(SM) { in VLIWResourceModel() 59 Packet.resize(SchedModel->getIssueWidth()); in VLIWResourceModel() 135 const TargetSchedModel *SchedModel = nullptr; member 167 SchedModel = smodel; in init() 175 CriticalPathLength = DAG->getBBSize() / SchedModel->getIssueWidth(); in init() 218 const TargetSchedModel *SchedModel = nullptr; variable
|
H A D | HexagonMachineScheduler.cpp | 150 Packet.size() >= SchedModel->getIssueWidth()) { in reserveResources() 255 SchedModel = DAG->getSchedModel(); in initialize() 257 Top.init(DAG, SchedModel); in initialize() 258 Bot.init(DAG, SchedModel); in initialize() 340 unsigned uops = SchedModel->getNumMicroOps(SU->getInstr()); in checkHazard() 341 if (IssueCount + uops > SchedModel->getIssueWidth()) in checkHazard() 363 unsigned Width = SchedModel->getIssueWidth(); in bumpCycle() 407 IssueCount += SchedModel->getNumMicroOps(SU->getInstr()); in bumpNode()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64StorePairSuppress.cpp | 34 TargetSchedModel SchedModel; member in __anond6eb65f00111::AArch64StorePairSuppress 87 SchedModel.getMCSchedModel()->getSchedClassDesc(SCIdx); in shouldAddSTPToBlock() 129 SchedModel.init(&ST); in runOnMachineFunction() 135 if (!SchedModel.hasInstrSchedModel()) { in runOnMachineFunction()
|
H A D | AArch64SIMDInstrOpt.cpp | 71 TargetSchedModel SchedModel; member 222 std::string Subtarget = std::string(SchedModel.getSubtargetInfo()->getCPU()); in shouldReplaceInst() 230 SchedModel.getMCSchedModel()->getSchedClassDesc(SCIdx); in shouldReplaceInst() 242 SCDescRepl = SchedModel.getMCSchedModel()->getSchedClassDesc( in shouldReplaceInst() 254 ReplCost += SchedModel.computeInstrLatency(IDesc->getOpcode()); in shouldReplaceInst() 256 if (SchedModel.computeInstrLatency(InstDesc->getOpcode()) > ReplCost) in shouldReplaceInst() 293 std::string(SchedModel.getSubtargetInfo()->getCPU()); in shouldExitEarly() 705 SchedModel.init(&ST); in runOnMachineFunction() 706 if (!SchedModel.hasInstrSchedModel()) in runOnMachineFunction()
|
H A D | AArch64SchedKryo.td | 39 let SchedModel = KryoModel in { 58 let SchedModel = KryoModel in { 137 } // SchedModel = KryoModel
|
H A D | AArch64Schedule.td | 10 // const MachineInstr *MI and const TargetSchedModel *SchedModel 14 static_cast<const AArch64InstrInfo*>(SchedModel->getInstrInfo());
|
H A D | AArch64SchedFalkor.td | 35 let SchedModel = FalkorModel in { 66 let SchedModel = FalkorModel in {
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | SISchedule.td | 15 static_cast<const SIInstrInfo*>(SchedModel->getInstrInfo()); 181 let SchedModel = SIFullSpeedModel in { 195 } // End SchedModel = SIFullSpeedModel 197 let SchedModel = SIQuarterSpeedModel in { 215 } // End SchedModel = SIQuarterSpeedModel 217 let SchedModel = SIDPFullSpeedModel in { 237 } // End SchedModel = SIDPFullSpeedModel 239 let SchedModel = GFX10SpeedModel in { 265 } // End SchedModel = GFX10SpeedModel
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Target/ |
H A D | TargetSchedule.td | 180 // SchedModel ties these units to a processor for any stand-alone defs 187 SchedMachineModel SchedModel = ?; 202 SchedMachineModel SchedModel = ?; 240 // SchedModel silences warnings but is ignored. 244 SchedMachineModel SchedModel = ?; 249 // SchedModel ties these resources to a processor. 267 SchedMachineModel SchedModel = ?; 309 // type at the same time. This class is unaware of its SchedModel so 316 // SchedModel ties these resources to a processor. 323 SchedMachineModel SchedModel = ?; [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/ |
H A D | MCInstrItineraries.h | 111 MCSchedModel SchedModel = 122 : SchedModel(SM), Stages(S), OperandCycles(OS), Forwardings(F), in InstrItineraryData() 123 Itineraries(SchedModel.InstrItineraries) {} in InstrItineraryData()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/ |
H A D | MCSubtargetInfo.cpp | 323 assert(CPUEntry->SchedModel && "Missing processor SchedModel value"); in getSchedModelForCPU() 324 return *CPUEntry->SchedModel; in getSchedModelForCPU() 329 const MCSchedModel &SchedModel = getSchedModelForCPU(CPU); in getInstrItineraryForCPU() local 330 return InstrItineraryData(SchedModel, Stages, OperandCycles, ForwardingPaths); in getInstrItineraryForCPU()
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-exegesis/lib/ |
H A D | SchedClassResolution.cpp | 252 const auto &SchedModel = STI.getSchedModel(); in findProcResIdx() local 253 for (int I = 0, E = SchedModel.getNumProcResourceKinds(); I < E; ++I) { in findProcResIdx() 254 if (NameOrId == SchedModel.getProcResource(I)->Name) in findProcResIdx()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | ARMSubtarget.cpp | 201 SchedModel = getSchedModelForCPU(CPUString); in initSubtargetFeatures() 376 return SchedModel.MispredictPenalty; in getMispredictionPenalty()
|