summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-17 01:46:27 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-17 01:46:27 +0000
commit71adba6dce685db4a67597174aa425a838481687 (patch)
tree080969b15c100c08b650901d0e7a2bc937070224 /llvm/utils
parentca6f6a43e0d39f5bf9f0178552abb951a189034f (diff)
downloadbcm5719-llvm-71adba6dce685db4a67597174aa425a838481687.tar.gz
bcm5719-llvm-71adba6dce685db4a67597174aa425a838481687.zip
Add opcode to TargetInstrDescriptor.
llvm-svn: 31804
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/InstrInfoEmitter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp
index 07aaf91861e..a1c808b0704 100644
--- a/llvm/utils/TableGen/InstrInfoEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud