Fill in the numOperands field of the TargetInstrDescriptor struct from the

.td file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-08-18 19:45:37 +00:00
parent 8e083803cf
commit dcfa353d74

View File

@ -102,7 +102,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
OS << Inst.TheDef->getName();
else
OS << Inst.Name;
OS << "\",\t-1, -1, 0, false, 0, 0, 0, 0";
OS << "\",\t" << Inst.OperandList.size() << ", -1, 0, false, 0, 0, 0, 0";
// Emit all of the target indepedent flags...
if (Inst.isReturn) OS << "|M_RET_FLAG";