Lines Matching refs:DefMI
608 const MachineInstr *DefMI;
612 DataDep(const MachineInstr *DefMI, unsigned DefOp, unsigned UseOp)
613 : DefMI(DefMI), DefOp(DefOp), UseOp(UseOp) {}
621 DefMI = DefI->getParent();
761 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg);
763 const TraceBlockInfo &DefTBI = BlockInfo[DefMI->getParent()->getNumber()];
766 unsigned Len = LIR.Height + Cycles[DefMI].Depth;
835 BlockInfo[Dep.DefMI->getParent()->getNumber()];
840 unsigned DepCycle = Cycles.lookup(Dep.DefMI).Depth;
841 // Add latency if DefMI is a real instruction. Transients get latency 0.
842 if (!Dep.DefMI->isTransient())
844 .computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, Dep.UseOp);
920 // Push the height of DefMI upwards if required to match UseMI.
921 // Return true if this is the first time DefMI was seen.
927 // Adjust height by Dep.DefMI latency.
928 if (!Dep.DefMI->isTransient())
929 UseHeight += SchedModel.computeOperandLatency(Dep.DefMI, Dep.DefOp,
932 // Update Heights[DefMI] to be the maximum height seen.
935 std::tie(I, New) = Heights.insert(std::make_pair(Dep.DefMI, UseHeight));
939 // DefMI has been pushed before. Give it the max height.
945 /// Assuming that the virtual register defined by DefMI:DefOp was used by
947 /// when reaching the block that contains DefMI.
949 addLiveIns(const MachineInstr *DefMI, unsigned DefOp,
952 unsigned Reg = DefMI->getOperand(DefOp).getReg();
954 const MachineBasicBlock *DefMBB = DefMI->getParent();
1057 addLiveIns(Deps.front().DefMI, Deps.front().DefOp, Stack);
1090 addLiveIns(Deps[i].DefMI, Deps[i].DefOp, Stack);
1108 const MachineInstr *DefMI = MTM.MRI->getVRegDef(LIR.Reg);
1109 LIR.Height = Heights.lookup(DefMI);
1156 unsigned DepCycle = getInstrCycles(Dep.DefMI).Depth;
1157 // Add latency if DefMI is a real instruction. Transients get latency 0.
1158 if (!Dep.DefMI->isTransient())
1160 .computeOperandLatency(Dep.DefMI, Dep.DefOp, PHI, Dep.UseOp);
1247 bool MachineTraceMetrics::Trace::isDepInTrace(const MachineInstr *DefMI,
1249 if (DefMI->getParent() == UseMI->getParent())
1252 const TraceBlockInfo &DepTBI = TE.BlockInfo[DefMI->getParent()->getNumber()];