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:
ecd5813
)
Small changed to printing a machine operand - It the operand is a def, it prints
author
Ruchira Sasanka
<sasanka@students.uiuc.edu>
Wed, 14 Nov 2001 20:05:23 +0000
(20:05 +0000)
committer
Ruchira Sasanka
<sasanka@students.uiuc.edu>
Wed, 14 Nov 2001 20:05:23 +0000
(20:05 +0000)
a star after it - only for debugging
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1309
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 3ce7a2a7f1ba33b2fc3797162a003e803e4be803..5993daf65a0ab46410865d180b682e5276ad97b3 100644
(file)
--- a/
lib/CodeGen/MachineInstr.cpp
+++ b/
lib/CodeGen/MachineInstr.cpp
@@
-92,8
+92,11
@@
operator<< (ostream& os, const MachineInstr& minstr)
{
os << TargetInstrDescriptors[minstr.opCode].opCodeString;
- for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++)
+ for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++)
{
os << "\t" << minstr.getOperand(i);
+ if( minstr.getOperand(i).opIsDef() ) os << "*";
+
+ }
#undef DEBUG_VAL_OP_ITERATOR
#ifdef DEBUG_VAL_OP_ITERATOR
@@
-117,7
+120,8
@@
operator<< (ostream& os, const MachineInstr& minstr)
for(unsigned z=0; z < NumOfImpRefs; z++) {
os << minstr.getImplicitRef(z);
- cout << "\t";
+ if( minstr.implicitRefIsDefined(z)) os << "*";
+ cout << "\t";
}
}