OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32ae3fe
)
Identify predicate and optional-def operands when printing machine
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 19 Jan 2010 22:08:34 +0000
(22:08 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 19 Jan 2010 22:08:34 +0000
(22:08 +0000)
instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93925
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
d58a0fb
..
ef2fcee
100644
(file)
--- a/
lib/CodeGen/MachineInstr.cpp
+++ b/
lib/CodeGen/MachineInstr.cpp
@@
-1162,6
+1162,13
@@
void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
if (FirstOp) FirstOp = false; else OS << ",";
OS << " ";
+ if (i < getDesc().NumOperands) {
+ const TargetOperandInfo &TOI = getDesc().OpInfo[i];
+ if (TOI.isPredicate())
+ OS << "pred:";
+ if (TOI.isOptionalDef())
+ OS << "opt:";
+ }
MO.print(OS, TM);
}