Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:MTM

148   : MTM(*ct) {
149 BlockInfo.resize(MTM.BlockInfo.size());
150 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds();
151 ProcResourceDepths.resize(MTM.BlockInfo.size() * PRKinds);
152 ProcResourceHeights.resize(MTM.BlockInfo.size() * PRKinds);
160 return MTM.Loops->getLoopFor(MBB);
168 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds();
185 const FixedBlockInfo *PredFBI = MTM.getResources(TBI->Pred);
191 ArrayRef<unsigned> PredPRCycles = MTM.getProcResourceCycles(PredNum);
201 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds();
205 TBI->InstrHeight = MTM.getResources(MBB)->InstrCount;
206 ArrayRef<unsigned> PRCycles = MTM.getProcResourceCycles(MBB->getNumber());
257 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds();
271 unsigned PRKinds = MTM.SchedModel.getNumProcResourceKinds();
310 MinInstrCountEnsemble(MachineTraceMetrics *mtm)
311 : MachineTraceMetrics::Ensemble(mtm) {}
324 unsigned CurCount = MTM.getResources(MBB)->InstrCount;
465 LoopBounds Bounds(BlockInfo, MTM.Loops);
578 assert(BlockInfo.size() == MTM.MF->getNumBlockIDs() &&
583 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num);
591 const MachineBasicBlock *MBB = MTM.MF->getBlockNumbered(Num);
770 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg);
803 RegUnits.setUniverse(MTM.TRI->getNumRegUnits());
820 unsigned Factor = MTM.SchedModel.getResourceFactor(K);
821 dbgs() << format("%6uc @ ", MTM.getCycles(PRDepths[K]))
822 << MTM.SchedModel.getProcResource(K)->Name << " ("
838 getPHIDeps(UseMI, Deps, TBI.Pred, MTM.MRI);
839 else if (getDataDeps(UseMI, Deps, MTM.MRI))
840 updatePhysDepsDownwards(UseMI, Deps, RegUnits, MTM.TRI);
855 DepCycle += MTM.SchedModel
1004 RegUnits.setUniverse(MTM.TRI->getNumRegUnits());
1015 unsigned &Height = Heights[MTM.MRI->getVRegDef(LI.Reg)];
1040 unsigned Factor = MTM.SchedModel.getResourceFactor(K);
1041 dbgs() << format("%6uc @ ", MTM.getCycles(PRHeights[K]))
1042 << MTM.SchedModel.getProcResource(K)->Name << " ("
1062 getPHIDeps(PHI, Deps, MBB, MTM.MRI);
1068 Heights, MTM.SchedModel, MTM.TII))
1092 bool HasPhysRegs = !MI->isPHI() && getDataDeps(MI, Deps, MTM.MRI);
1097 MTM.SchedModel, MTM.TII, MTM.TRI);
1101 if (pushDepHeight(Deps[i], MI, Cycle, Heights, MTM.SchedModel, MTM.TII))
1120 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg);
1129 DEBUG(dbgs() << ' ' << PrintRegUnit(RI->RegUnit, MTM.TRI)
1163 const MachineBasicBlock *MBB = TE.MTM.MF->getBlockNumbered(getBlockNum());
1165 getPHIDeps(PHI, Deps, MBB, TE.MTM.MRI);
1171 DepCycle += TE.MTM.SchedModel
1182 ArrayRef<unsigned> PRCycles = TE.MTM.getProcResourceCycles(getBlockNum());
1190 PRMax = TE.MTM.getCycles(PRMax);
1194 Instrs += TE.MTM.BlockInfo[getBlockNum()].InstrCount;
1195 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth())
1212 PRCycles += TE.MTM.getProcResourceCycles(Extrablocks[I]->getNumber())[K];
1218 PI = TE.MTM.SchedModel.getWriteProcResBegin(SC),
1219 PE = TE.MTM.SchedModel.getWriteProcResEnd(SC); PI != PE; ++PI) {
1222 PRCycles += (PI->Cycles * TE.MTM.SchedModel.getResourceFactor(K));
1228 PRMax = TE.MTM.getCycles(PRMax);
1232 Instrs += TE.MTM.getResources(Extrablocks[i])->InstrCount;
1233 if (unsigned IW = TE.MTM.SchedModel.getIssueWidth())