projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a72ac42
)
Add opcode to TargetInstrDescriptor.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 17 Nov 2006 01:46:27 +0000
(
01:46
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 17 Nov 2006 01:46:27 +0000
(
01:46
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31804
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/InstrInfoEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/InstrInfoEmitter.cpp
b/utils/TableGen/InstrInfoEmitter.cpp
index 07aaf91861e25e5bd228f5da16f3b7d0d17cd544..a1c808b0704fdb3977a08c227b6a319b73e13f2f 100644
(file)
--- 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;