MI: Print ranges on MMO

llvm-svn: 318020
This commit is contained in:
Matt Arsenault 2017-11-13 07:09:20 +00:00
parent ca8abedb2a
commit 88efb9ff8e
1 changed files with 15 additions and 0 deletions

View File

@ -765,6 +765,21 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST) const {
OS << ")";
}
if (const MDNode *Ranges = getRanges()) {
unsigned NumRanges = Ranges->getNumOperands();
if (NumRanges != 0) {
OS << "(ranges=";
for (unsigned I = 0; I != NumRanges; ++I) {
Ranges->getOperand(I)->printAsOperand(OS, MST);
if (I != NumRanges - 1)
OS << ',';
}
OS << ')';
}
}
if (isNonTemporal())
OS << "(nontemporal)";
if (isDereferenceable())