projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f172ecd
)
Print symbolic subreg indices on REG_SEQUENCE and INSERT_SUBREG.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Sun, 4 Jul 2010 23:24:23 +0000
(23:24 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Sun, 4 Jul 2010 23:24:23 +0000
(23:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107602
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineInstr.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineInstr.cpp
b/lib/CodeGen/MachineInstr.cpp
index 39ab43bb5eafb7af21fe77782a55f0af4823617a..6b2e98549c718318ee246a4546c1a3d179b84d09 100644
(file)
--- a/
lib/CodeGen/MachineInstr.cpp
+++ b/
lib/CodeGen/MachineInstr.cpp
@@
-1305,6
+1305,8
@@
void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
OS << "!\"" << MDS->getString() << '\"';
else
MO.print(OS, TM);
+ } else if (TM && (isInsertSubreg() || isRegSequence()) && MO.isImm()) {
+ OS << TM->getRegisterInfo()->getSubRegIndexName(MO.getImm());
} else
MO.print(OS, TM);
}