aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-05-27 00:03:17 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-05-27 00:03:17 +0000
commit49cab03c8149619b5c07e473b08d73b91aefb35c (patch)
tree02d99741cdc011746d2412530bd283b20b2639db
parent78a4f23a8e2c14d708899d1bd2011b64584fafa7 (diff)
Renamed opIsDef to opIsDefOnly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6340 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/Printer.cpp9
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp9
2 files changed, 12 insertions, 6 deletions
diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp
index 95e8642a0d..4a739d740e 100644
--- a/lib/Target/X86/Printer.cpp
+++ b/lib/Target/X86/Printer.cpp
@@ -221,7 +221,8 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
}
} else {
unsigned i = 0;
- if (MI->getNumOperands() && MI->getOperand(0).opIsDef()) {
+ if (MI->getNumOperands() && (MI->getOperand(0).opIsDefOnly() ||
+ MI->getOperand(0).opIsDefAndUse())) {
printOp(O, MI->getOperand(0), RI);
O << " = ";
++i;
@@ -230,9 +231,11 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
for (unsigned e = MI->getNumOperands(); i != e; ++i) {
O << " ";
- if (MI->getOperand(i).opIsDef()) O << "*";
+ if (MI->getOperand(i).opIsDefOnly() ||
+ MI->getOperand(i).opIsDefAndUse()) O << "*";
printOp(O, MI->getOperand(i), RI);
- if (MI->getOperand(i).opIsDef()) O << "*";
+ if (MI->getOperand(i).opIsDefOnly() ||
+ MI->getOperand(i).opIsDefAndUse()) O << "*";
}
}
O << "\n";
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 95e8642a0d..4a739d740e 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -221,7 +221,8 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
}
} else {
unsigned i = 0;
- if (MI->getNumOperands() && MI->getOperand(0).opIsDef()) {
+ if (MI->getNumOperands() && (MI->getOperand(0).opIsDefOnly() ||
+ MI->getOperand(0).opIsDefAndUse())) {
printOp(O, MI->getOperand(0), RI);
O << " = ";
++i;
@@ -230,9 +231,11 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
for (unsigned e = MI->getNumOperands(); i != e; ++i) {
O << " ";
- if (MI->getOperand(i).opIsDef()) O << "*";
+ if (MI->getOperand(i).opIsDefOnly() ||
+ MI->getOperand(i).opIsDefAndUse()) O << "*";
printOp(O, MI->getOperand(i), RI);
- if (MI->getOperand(i).opIsDef()) O << "*";
+ if (MI->getOperand(i).opIsDefOnly() ||
+ MI->getOperand(i).opIsDefAndUse()) O << "*";
}
}
O << "\n";