Changes in directory llvm/utils/TableGen:
AsmWriterEmitter.cpp updated: 1.22 -> 1.23 --- Log message: No longer track value types for asm printer operands, and remove them as an argument to every operand printing function. Requires some slight tweaks to x86, the only user. --- Diffs of the changes: (+6 -12) AsmWriterEmitter.cpp | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) Index: llvm/utils/TableGen/AsmWriterEmitter.cpp diff -u llvm/utils/TableGen/AsmWriterEmitter.cpp:1.22 llvm/utils/TableGen/AsmWriterEmitter.cpp:1.23 --- llvm/utils/TableGen/AsmWriterEmitter.cpp:1.22 Wed Jul 27 01:12:35 2005 +++ llvm/utils/TableGen/AsmWriterEmitter.cpp Wed Nov 30 12:54:35 2005 @@ -38,21 +38,16 @@ /// machine instruction. unsigned MIOpNo; - /// OpVT - For isMachineInstrOperand, this is the value type for the - /// operand. - MVT::ValueType OpVT; - AsmWriterOperand(const std::string &LitStr) - : OperandType(isLiteralTextOperand), Str(LitStr) {} + : OperandType(isLiteralTextOperand), Str(LitStr) {} - AsmWriterOperand(const std::string &Printer, unsigned OpNo, - MVT::ValueType VT) : OperandType(isMachineInstrOperand), - Str(Printer), MIOpNo(OpNo), OpVT(VT){} + AsmWriterOperand(const std::string &Printer, unsigned OpNo) + : OperandType(isMachineInstrOperand), Str(Printer), MIOpNo(OpNo) {} bool operator!=(const AsmWriterOperand &Other) const { if (OperandType != Other.OperandType || Str != Other.Str) return true; if (OperandType == isMachineInstrOperand) - return MIOpNo != Other.MIOpNo || OpVT != Other.OpVT; + return MIOpNo != Other.MIOpNo; return false; } bool operator==(const AsmWriterOperand &Other) const { @@ -90,7 +85,7 @@ if (OperandType == isLiteralTextOperand) OS << "O << \"" << Str << "\"; "; else - OS << Str << "(MI, " << MIOpNo << ", MVT::" << getEnumName(OpVT) << "); "; + OS << Str << "(MI, " << MIOpNo << "); "; } @@ -204,8 +199,7 @@ --MIOp; } - Operands.push_back(AsmWriterOperand(OpInfo.PrinterMethodName, - MIOp, OpInfo.Ty)); + Operands.push_back(AsmWriterOperand(OpInfo.PrinterMethodName, MIOp)); LastEmitted = VarEnd; } } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits