mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Add MCInstrInfo registeration machinery.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -206,7 +206,15 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
||||
for (unsigned i = 0, e = NumberedInstructions.size(); i != e; ++i)
|
||||
emitRecord(*NumberedInstructions[i], i, InstrInfo, EmittedLists,
|
||||
OperandInfoIDs, OS);
|
||||
OS << "};\n";
|
||||
OS << "};\n\n";
|
||||
|
||||
|
||||
// MCInstrInfo initialization routine.
|
||||
OS << "static inline void Init" << TargetName
|
||||
<< "MCInstrInfo(MCInstrInfo *II) {\n";
|
||||
OS << " II->InitMCInstrInfo(" << TargetName << "Insts, "
|
||||
<< NumberedInstructions.size() << ");\n}\n\n";
|
||||
|
||||
OS << "} // End llvm namespace \n";
|
||||
|
||||
OS << "#endif // GET_INSTRINFO_MC_DESC\n\n";
|
||||
|
Reference in New Issue
Block a user