Lines Matching refs:MTM
89 MTM.init(MF, getAnalysis<MachineLoopInfoWrapperPass>().getLI()); in runOnMachineFunction()
171 : MTM(*ct) { in Ensemble()
172 BlockInfo.resize(MTM.BlockInfo.size()); in Ensemble()
173 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in Ensemble()
174 ProcResourceDepths.resize(MTM.BlockInfo.size() * PRKinds); in Ensemble()
175 ProcResourceHeights.resize(MTM.BlockInfo.size() * PRKinds); in Ensemble()
183 return MTM.Loops->getLoopFor(MBB); in getLoopFor()
191 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in computeDepthResources()
208 const FixedBlockInfo *PredFBI = MTM.getResources(TBI->Pred); in computeDepthResources()
214 ArrayRef<unsigned> PredPRCycles = MTM.getProcReleaseAtCycles(PredNum); in computeDepthResources()
224 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in computeHeightResources()
228 TBI->InstrHeight = MTM.getResources(MBB)->InstrCount; in computeHeightResources()
229 ArrayRef<unsigned> PRCycles = MTM.getProcReleaseAtCycles(MBB->getNumber()); in computeHeightResources()
279 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in getProcResourceDepths()
292 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in getProcResourceHeights()
347 LocalEnsemble(MachineTraceMetrics *MTM) in LocalEnsemble() argument
348 : MachineTraceMetrics::Ensemble(MTM) {} in LocalEnsemble()
361 unsigned CurCount = MTM.getResources(MBB)->InstrCount; in pickTracePred()
529 LoopBounds Bounds(BlockInfo, MTM.Loops); in computeTrace()
635 assert(BlockInfo.size() == MTM.MF->getNumBlockIDs() && in verify()
640 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num); in verify()
648 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num); in verify()
811 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg); in computeCrossBlockCriticalPath()
828 getPHIDeps(UseMI, Deps, TBI.Pred, MTM.MRI); in updateDepth()
829 else if (getDataDeps(UseMI, Deps, MTM.MRI)) in updateDepth()
830 updatePhysDepsDownwards(&UseMI, Deps, RegUnits, MTM.TRI); in updateDepth()
844 DepCycle += MTM.SchedModel in updateDepth()
897 RegUnits.setUniverse(MTM.TRI->getNumRegUnits()); in computeInstrDepths()
913 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrDepths()
914 dbgs() << format("%6uc @ ", MTM.getCycles(PRDepths[K])) in computeInstrDepths()
915 << MTM.SchedModel.getProcResource(K)->Name << " (" in computeInstrDepths()
1058 RegUnits.setUniverse(MTM.TRI->getNumRegUnits()); in computeInstrHeights()
1068 unsigned &Height = Heights[MTM.MRI->getVRegDef(LI.Reg)]; in computeInstrHeights()
1093 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrHeights()
1094 dbgs() << format("%6uc @ ", MTM.getCycles(PRHeights[K])) in computeInstrHeights()
1095 << MTM.SchedModel.getProcResource(K)->Name << " (" in computeInstrHeights()
1115 getPHIDeps(PHI, Deps, MBB, MTM.MRI); in computeInstrHeights()
1120 if (pushDepHeight(Deps.front(), PHI, Height, Heights, MTM.SchedModel, in computeInstrHeights()
1121 MTM.TII)) in computeInstrHeights()
1142 bool HasPhysRegs = !MI.isPHI() && getDataDeps(MI, Deps, MTM.MRI); in computeInstrHeights()
1146 Cycle = updatePhysDepsUpwards(MI, Cycle, RegUnits, MTM.SchedModel, in computeInstrHeights()
1147 MTM.TII, MTM.TRI); in computeInstrHeights()
1151 if (pushDepHeight(Dep, MI, Cycle, Heights, MTM.SchedModel, MTM.TII)) in computeInstrHeights()
1169 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg); in computeInstrHeights()
1177 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(RU.RegUnit, MTM.TRI) << '@' in computeInstrHeights()
1215 const MachineBasicBlock *MBB = TE.MTM.MF->getBlockNumbered(getBlockNum()); in getPHIDepth()
1217 getPHIDeps(PHI, Deps, MBB, TE.MTM.MRI); in getPHIDepth()
1223 DepCycle += TE.MTM.SchedModel.computeOperandLatency(Dep.DefMI, Dep.DefOp, in getPHIDepth()
1235 ArrayRef<unsigned> PRCycles = TE.MTM.getProcReleaseAtCycles(getBlockNum()); in getResourceDepth()
1243 PRMax = TE.MTM.getCycles(PRMax); in getResourceDepth()
1249 Instrs += TE.MTM.BlockInfo[getBlockNum()].InstrCount; in getResourceDepth()
1250 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth()) in getResourceDepth()
1274 PI = TE.MTM.SchedModel.getWriteProcResBegin(SC), in getResourceLength()
1275 PE = TE.MTM.SchedModel.getWriteProcResEnd(SC); in getResourceLength()
1280 TE.MTM.SchedModel.getResourceFactor(ResourceIdx)); in getResourceLength()
1289 PRCycles += TE.MTM.getProcReleaseAtCycles(MBB->getNumber())[K]; in getResourceLength()
1295 PRMax = TE.MTM.getCycles(PRMax); in getResourceLength()
1301 Instrs += TE.MTM.getResources(MBB)->InstrCount; in getResourceLength()
1304 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth()) in getResourceLength()