Renamed opIsDef to opIsDefOnly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2003-05-27 00:03:17 +00:00
parent 78a4f23a8e
commit 49cab03c81
2 changed files with 12 additions and 6 deletions

View File

@ -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";

View File

@ -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";