mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
Tablegen output formatting fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae1ae2c3a1
commit
e4d91ca81e
@ -587,14 +587,16 @@ void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
|
|||||||
for (const CodeGenInstruction *Inst : NumberedInstructions)
|
for (const CodeGenInstruction *Inst : NumberedInstructions)
|
||||||
OS << " " << Inst->TheDef->getName() << "\t= " << Num++ << ",\n";
|
OS << " " << Inst->TheDef->getName() << "\t= " << Num++ << ",\n";
|
||||||
OS << " INSTRUCTION_LIST_END = " << NumberedInstructions.size() << "\n";
|
OS << " INSTRUCTION_LIST_END = " << NumberedInstructions.size() << "\n";
|
||||||
OS << " };\n";
|
OS << " };\n\n";
|
||||||
OS << "namespace Sched {\n";
|
OS << "namespace Sched {\n";
|
||||||
OS << " enum {\n";
|
OS << " enum {\n";
|
||||||
Num = 0;
|
Num = 0;
|
||||||
for (const auto &Class : SchedModels.explicit_classes())
|
for (const auto &Class : SchedModels.explicit_classes())
|
||||||
OS << " " << Class.Name << "\t= " << Num++ << ",\n";
|
OS << " " << Class.Name << "\t= " << Num++ << ",\n";
|
||||||
OS << " SCHED_LIST_END = " << SchedModels.numInstrSchedClasses() << "\n";
|
OS << " SCHED_LIST_END = " << SchedModels.numInstrSchedClasses() << "\n";
|
||||||
OS << " };\n}\n}\n";
|
OS << " };\n";
|
||||||
|
OS << "} // End Sched namespace\n";
|
||||||
|
OS << "} // End " << Namespace << " namespace\n";
|
||||||
OS << "} // End llvm namespace \n";
|
OS << "} // End llvm namespace \n";
|
||||||
|
|
||||||
OS << "#endif // GET_INSTRINFO_ENUM\n\n";
|
OS << "#endif // GET_INSTRINFO_ENUM\n\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user