aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-01 07:43:46 +0000
committerChris Lattner <sabre@nondot.org>2004-08-01 07:43:46 +0000
commitb12ee503f7c91542ed8de3f38b309b860a274679 (patch)
tree91de2828a007b20034b864383dc6a6129ee98b65 /lib/Target/X86
parent076efa771aa634801202f7b8189e33ee79dfc4ed (diff)
downloadexternal_llvm-b12ee503f7c91542ed8de3f38b309b860a274679.zip
external_llvm-b12ee503f7c91542ed8de3f38b309b860a274679.tar.gz
external_llvm-b12ee503f7c91542ed8de3f38b309b860a274679.tar.bz2
The tblgen'erated asmparser wants a way to print operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 89d0ad6..70eae63 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -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 @@ namespace {
/// 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);