diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-17 01:46:27 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-17 01:46:27 +0000 |
commit | fb1aab0673a699c39281e3bdc1091c0ed8fd1d1c (patch) | |
tree | 3a0d41a75884617a6391b8b0270fda91fe258c79 /utils | |
parent | a72ac422a22683b9ab872838be1a19445e3c1141 (diff) |
Add opcode to TargetInstrDescriptor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 07aaf91861..a1c808b070 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -197,7 +197,9 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, else MinOperands = 0; - OS << " { \""; + OS << " { "; + OS << Num << ",\t" << MinOperands << ",\t\""; + if (Inst.Name.empty()) OS << Inst.TheDef->getName(); else @@ -206,8 +208,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, unsigned ItinClass = !IsItineraries ? 0 : ItinClassNumber(Inst.TheDef->getValueAsDef("Itinerary")->getName()); - OS << "\",\t" << MinOperands << ", " << ItinClass - << ", 0"; + OS << "\",\t" << ItinClass << ", 0"; // Try to determine (from the pattern), if the instruction is a store. bool isStore = false; |