Lines Matching refs:MTM
146 : MTM(*ct) { in Ensemble()
147 BlockInfo.resize(MTM.BlockInfo.size()); in Ensemble()
148 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in Ensemble()
149 ProcResourceDepths.resize(MTM.BlockInfo.size() * PRKinds); in Ensemble()
150 ProcResourceHeights.resize(MTM.BlockInfo.size() * PRKinds); in Ensemble()
158 return MTM.Loops->getLoopFor(MBB); in getLoopFor()
166 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in computeDepthResources()
183 const FixedBlockInfo *PredFBI = MTM.getResources(TBI->Pred); in computeDepthResources()
189 ArrayRef<unsigned> PredPRCycles = MTM.getProcResourceCycles(PredNum); in computeDepthResources()
199 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in computeHeightResources()
203 TBI->InstrHeight = MTM.getResources(MBB)->InstrCount; in computeHeightResources()
204 ArrayRef<unsigned> PRCycles = MTM.getProcResourceCycles(MBB->getNumber()); in computeHeightResources()
255 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in getProcResourceDepths()
268 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in getProcResourceHeights()
320 unsigned CurCount = MTM.getResources(MBB)->InstrCount; in pickTracePred()
457 LoopBounds Bounds(BlockInfo, MTM.Loops); in computeTrace()
563 assert(BlockInfo.size() == MTM.MF->getNumBlockIDs() && in verify()
568 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num); in verify()
576 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num); in verify()
761 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg); in computeCrossBlockCriticalPath()
794 RegUnits.setUniverse(MTM.TRI->getNumRegUnits()); in computeInstrDepths()
811 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrDepths()
812 dbgs() << format("%6uc @ ", MTM.getCycles(PRDepths[K])) in computeInstrDepths()
813 << MTM.SchedModel.getProcResource(K)->Name << " (" in computeInstrDepths()
826 getPHIDeps(&UseMI, Deps, TBI.Pred, MTM.MRI); in computeInstrDepths()
827 else if (getDataDeps(&UseMI, Deps, MTM.MRI)) in computeInstrDepths()
828 updatePhysDepsDownwards(&UseMI, Deps, RegUnits, MTM.TRI); in computeInstrDepths()
842 DepCycle += MTM.SchedModel in computeInstrDepths()
994 RegUnits.setUniverse(MTM.TRI->getNumRegUnits()); in computeInstrHeights()
1004 unsigned &Height = Heights[MTM.MRI->getVRegDef(LI.Reg)]; in computeInstrHeights()
1029 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrHeights()
1030 dbgs() << format("%6uc @ ", MTM.getCycles(PRHeights[K])) in computeInstrHeights()
1031 << MTM.SchedModel.getProcResource(K)->Name << " (" in computeInstrHeights()
1051 getPHIDeps(&PHI, Deps, MBB, MTM.MRI); in computeInstrHeights()
1057 Heights, MTM.SchedModel, MTM.TII)) in computeInstrHeights()
1081 bool HasPhysRegs = !MI->isPHI() && getDataDeps(MI, Deps, MTM.MRI); in computeInstrHeights()
1086 MTM.SchedModel, MTM.TII, MTM.TRI); in computeInstrHeights()
1090 if (pushDepHeight(Dep, MI, Cycle, Heights, MTM.SchedModel, MTM.TII)) in computeInstrHeights()
1108 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg); in computeInstrHeights()
1117 DEBUG(dbgs() << ' ' << PrintRegUnit(RI->RegUnit, MTM.TRI) in computeInstrHeights()
1156 const MachineBasicBlock *MBB = TE.MTM.MF->getBlockNumbered(getBlockNum()); in getPHIDepth()
1158 getPHIDeps(PHI, Deps, MBB, TE.MTM.MRI); in getPHIDepth()
1164 DepCycle += TE.MTM.SchedModel in getPHIDepth()
1176 ArrayRef<unsigned> PRCycles = TE.MTM.getProcResourceCycles(getBlockNum()); in getResourceDepth()
1184 PRMax = TE.MTM.getCycles(PRMax); in getResourceDepth()
1190 Instrs += TE.MTM.BlockInfo[getBlockNum()].InstrCount; in getResourceDepth()
1191 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth()) in getResourceDepth()
1215 PI = TE.MTM.SchedModel.getWriteProcResBegin(SC), in getResourceLength()
1216 PE = TE.MTM.SchedModel.getWriteProcResEnd(SC); in getResourceLength()
1221 (PI->Cycles * TE.MTM.SchedModel.getResourceFactor(ResourceIdx)); in getResourceLength()
1230 PRCycles += TE.MTM.getProcResourceCycles(MBB->getNumber())[K]; in getResourceLength()
1236 PRMax = TE.MTM.getCycles(PRMax); in getResourceLength()
1242 Instrs += TE.MTM.getResources(MBB)->InstrCount; in getResourceLength()
1245 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth()) in getResourceLength()