diff options
| author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2003-12-14 13:24:17 +0000 |
|---|---|---|
| committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2003-12-14 13:24:17 +0000 |
| commit | aaba4639f8b4e4b516b5d0534e726fe596c21081 (patch) | |
| tree | 1b5d6e541d3ff5c644c4a2e7b5534e5137499573 /llvm/lib/Target/X86/Printer.cpp | |
| parent | fbeb3b02c3d0012b3c56f166905cabd2e4b09706 (diff) | |
| download | bcm5719-llvm-aaba4639f8b4e4b516b5d0534e726fe596c21081.tar.gz bcm5719-llvm-aaba4639f8b4e4b516b5d0534e726fe596c21081.zip | |
Change interface of MachineOperand as follows:
a) remove opIsUse(), opIsDefOnly(), opIsDefAndUse()
b) add isUse(), isDef()
c) rename opHiBits32() to isHiBits32(),
opLoBits32() to isLoBits32(),
opHiBits64() to isHiBits64(),
opLoBits64() to isLoBits64().
This results to much more readable code, for example compare
"op.opIsDef() || op.opIsDefAndUse()" to "op.isDef()" a pattern used
very often in the code.
llvm-svn: 10461
Diffstat (limited to 'llvm/lib/Target/X86/Printer.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/Printer.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Target/X86/Printer.cpp b/llvm/lib/Target/X86/Printer.cpp index 289a68b7f7b..4d586c01f5c 100644 --- a/llvm/lib/Target/X86/Printer.cpp +++ b/llvm/lib/Target/X86/Printer.cpp @@ -551,8 +551,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) { } } else { unsigned i = 0; - if (MI->getNumOperands() && (MI->getOperand(0).opIsDefOnly() || - MI->getOperand(0).opIsDefAndUse())) { + if (MI->getNumOperands() && MI->getOperand(0).isDef()) { printOp(MI->getOperand(0)); O << " = "; ++i; @@ -561,11 +560,9 @@ void Printer::printMachineInstruction(const MachineInstr *MI) { for (unsigned e = MI->getNumOperands(); i != e; ++i) { O << " "; - if (MI->getOperand(i).opIsDefOnly() || - MI->getOperand(i).opIsDefAndUse()) O << "*"; + if (MI->getOperand(i).isDef()) O << "*"; printOp(MI->getOperand(i)); - if (MI->getOperand(i).opIsDefOnly() || - MI->getOperand(i).opIsDefAndUse()) O << "*"; + if (MI->getOperand(i).isDef()) O << "*"; } } O << "\n"; |

