Lines Matching refs:MI
771 // Get .debug_loc entry for the instruction range starting at MI.
772 static DebugLocEntry::Value getDebugLocValue(const MachineInstr *MI) {
773 const DIExpression *Expr = MI->getDebugExpression();
775 assert(MI->getNumOperands() == 4);
776 if (MI->getOperand(0).isReg()) {
780 if (!MI->getOperand(1).isImm())
781 MLoc.set(MI->getOperand(0).getReg());
783 MLoc.set(MI->getOperand(0).getReg(), MI->getOperand(1).getImm());
786 if (MI->getOperand(0).isImm())
787 return DebugLocEntry::Value(Expr, MI->getOperand(0).getImm());
788 if (MI->getOperand(0).isFPImm())
789 return DebugLocEntry::Value(Expr, MI->getOperand(0).getFPImm());
790 if (MI->getOperand(0).isCImm())
791 return DebugLocEntry::Value(Expr, MI->getOperand(0).getCImm());
1031 MCSymbol *DwarfDebug::getLabelBeforeInsn(const MachineInstr *MI) {
1032 MCSymbol *Label = LabelsBeforeInsn.lookup(MI);
1038 MCSymbol *DwarfDebug::getLabelAfterInsn(const MachineInstr *MI) {
1039 return LabelsAfterInsn.lookup(MI);
1043 void DwarfDebug::beginInstruction(const MachineInstr *MI) {
1045 CurMI = MI;
1047 if (!MI->isDebugValue()) {
1048 DebugLoc DL = MI->getDebugLoc();
1073 LabelsBeforeInsn.find(MI);
1148 for (const auto &MI : MBB)
1149 if (!MI.isDebugValue() && !MI.getFlag(MachineInstr::FrameSetup) &&
1150 MI.getDebugLoc())
1151 return MI.getDebugLoc();