[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 1 00:43:56 PDT 2004
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.107 -> 1.108
---
Log message:
The tblgen'erated asmparser wants a way to print operands.
---
Diffs of the changes: (+6 -0)
Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.107 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.108
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.107 Sun Aug 1 01:02:08 2004
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp Sun Aug 1 02:43:46 2004
@@ -25,6 +25,7 @@
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/CodeGen/ValueTypes.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Mangler.h"
#include "Support/Statistic.h"
@@ -103,6 +104,11 @@
/// returns false.
bool printInstruction(const MachineInstr *MI);
+ // This method is used by the tablegen'erated instruction printer.
+ void printOperand(const MachineOperand &MO, MVT::ValueType VT) {
+ printOp(MO);
+ }
+
void printImplUsesBefore(const TargetInstrDescriptor &Desc);
bool printImplDefsBefore(const TargetInstrDescriptor &Desc);
bool printImplUsesAfter(const TargetInstrDescriptor &Desc, const bool LC);
More information about the llvm-commits
mailing list