Lines Matching refs:MTM
158 : MTM(*ct) { in Ensemble()
159 BlockInfo.resize(MTM.BlockInfo.size()); in Ensemble()
160 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in Ensemble()
161 ProcResourceDepths.resize(MTM.BlockInfo.size() * PRKinds); in Ensemble()
162 ProcResourceHeights.resize(MTM.BlockInfo.size() * PRKinds); in Ensemble()
170 return MTM.Loops->getLoopFor(MBB); in getLoopFor()
178 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in computeDepthResources()
195 const FixedBlockInfo *PredFBI = MTM.getResources(TBI->Pred); in computeDepthResources()
201 ArrayRef<unsigned> PredPRCycles = MTM.getProcResourceCycles(PredNum); in computeDepthResources()
211 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in computeHeightResources()
215 TBI->InstrHeight = MTM.getResources(MBB)->InstrCount; in computeHeightResources()
216 ArrayRef<unsigned> PRCycles = MTM.getProcResourceCycles(MBB->getNumber()); in computeHeightResources()
266 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in getProcResourceDepths()
279 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds(); in getProcResourceHeights()
333 unsigned CurCount = MTM.getResources(MBB)->InstrCount; in pickTracePred()
482 LoopBounds Bounds(BlockInfo, MTM.Loops); in computeTrace()
588 assert(BlockInfo.size() == MTM.MF->getNumBlockIDs() && in verify()
593 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num); in verify()
601 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num); in verify()
770 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg); in computeCrossBlockCriticalPath()
787 getPHIDeps(UseMI, Deps, TBI.Pred, MTM.MRI); in updateDepth()
788 else if (getDataDeps(UseMI, Deps, MTM.MRI)) in updateDepth()
789 updatePhysDepsDownwards(&UseMI, Deps, RegUnits, MTM.TRI); in updateDepth()
803 DepCycle += MTM.SchedModel in updateDepth()
856 RegUnits.setUniverse(MTM.TRI->getNumRegUnits()); in computeInstrDepths()
872 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrDepths()
873 dbgs() << format("%6uc @ ", MTM.getCycles(PRDepths[K])) in computeInstrDepths()
874 << MTM.SchedModel.getProcResource(K)->Name << " (" in computeInstrDepths()
1021 RegUnits.setUniverse(MTM.TRI->getNumRegUnits()); in computeInstrHeights()
1031 unsigned &Height = Heights[MTM.MRI->getVRegDef(LI.Reg)]; in computeInstrHeights()
1056 unsigned Factor = MTM.SchedModel.getResourceFactor(K); in computeInstrHeights()
1057 dbgs() << format("%6uc @ ", MTM.getCycles(PRHeights[K])) in computeInstrHeights()
1058 << MTM.SchedModel.getProcResource(K)->Name << " (" in computeInstrHeights()
1078 getPHIDeps(PHI, Deps, MBB, MTM.MRI); in computeInstrHeights()
1083 if (pushDepHeight(Deps.front(), PHI, Height, Heights, MTM.SchedModel, in computeInstrHeights()
1084 MTM.TII)) in computeInstrHeights()
1108 bool HasPhysRegs = !MI.isPHI() && getDataDeps(MI, Deps, MTM.MRI); in computeInstrHeights()
1112 Cycle = updatePhysDepsUpwards(MI, Cycle, RegUnits, MTM.SchedModel, in computeInstrHeights()
1113 MTM.TII, MTM.TRI); in computeInstrHeights()
1117 if (pushDepHeight(Dep, MI, Cycle, Heights, MTM.SchedModel, MTM.TII)) in computeInstrHeights()
1135 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg); in computeInstrHeights()
1144 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(RI->RegUnit, MTM.TRI) << '@' in computeInstrHeights()
1182 const MachineBasicBlock *MBB = TE.MTM.MF->getBlockNumbered(getBlockNum()); in getPHIDepth()
1184 getPHIDeps(PHI, Deps, MBB, TE.MTM.MRI); in getPHIDepth()
1190 DepCycle += TE.MTM.SchedModel.computeOperandLatency(Dep.DefMI, Dep.DefOp, in getPHIDepth()
1202 ArrayRef<unsigned> PRCycles = TE.MTM.getProcResourceCycles(getBlockNum()); in getResourceDepth()
1210 PRMax = TE.MTM.getCycles(PRMax); in getResourceDepth()
1216 Instrs += TE.MTM.BlockInfo[getBlockNum()].InstrCount; in getResourceDepth()
1217 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth()) in getResourceDepth()
1241 PI = TE.MTM.SchedModel.getWriteProcResBegin(SC), in getResourceLength()
1242 PE = TE.MTM.SchedModel.getWriteProcResEnd(SC); in getResourceLength()
1247 (PI->Cycles * TE.MTM.SchedModel.getResourceFactor(ResourceIdx)); in getResourceLength()
1256 PRCycles += TE.MTM.getProcResourceCycles(MBB->getNumber())[K]; in getResourceLength()
1262 PRMax = TE.MTM.getCycles(PRMax); in getResourceLength()
1268 Instrs += TE.MTM.getResources(MBB)->InstrCount; in getResourceLength()
1271 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth()) in getResourceLength()