Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/CodeGen/MIRPrinter.cpp
Show First 20 Lines • Show All 764 Lines • ▼ Show 20 Lines | void MIPrinter::print(const MachineInstr &MI) { | ||||
if (MDNode *HeapAllocMarker = MI.getHeapAllocMarker()) { | if (MDNode *HeapAllocMarker = MI.getHeapAllocMarker()) { | ||||
if (NeedComma) | if (NeedComma) | ||||
OS << ','; | OS << ','; | ||||
OS << " heap-alloc-marker "; | OS << " heap-alloc-marker "; | ||||
HeapAllocMarker->printAsOperand(OS, MST); | HeapAllocMarker->printAsOperand(OS, MST); | ||||
NeedComma = true; | NeedComma = true; | ||||
} | } | ||||
if (auto Num = MI.peekDebugInstrNum()) { | |||||
if (NeedComma) | |||||
OS << ','; | |||||
OS << " debug-instr-number " << Num; | |||||
NeedComma = true; | |||||
} | |||||
if (PrintLocations) { | if (PrintLocations) { | ||||
if (const DebugLoc &DL = MI.getDebugLoc()) { | if (const DebugLoc &DL = MI.getDebugLoc()) { | ||||
if (NeedComma) | if (NeedComma) | ||||
OS << ','; | OS << ','; | ||||
OS << " debug-location "; | OS << " debug-location "; | ||||
DL->printAsOperand(OS, MST); | DL->printAsOperand(OS, MST); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |