mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
- Added MCSubtargetInfo to capture subtarget features and scheduling
itineraries. - Refactor TargetSubtarget to be based on MCSubtargetInfo. - Change tablegen generated subtarget info to initialize MCSubtargetInfo and hide more details from targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -223,7 +223,7 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
||||
OS << "#undef GET_INSTRINFO_HEADER\n";
|
||||
|
||||
std::string ClassName = TargetName + "GenInstrInfo";
|
||||
OS << "namespace llvm {\n\n";
|
||||
OS << "namespace llvm {\n";
|
||||
OS << "struct " << ClassName << " : public TargetInstrInfoImpl {\n"
|
||||
<< " explicit " << ClassName << "(int SO = -1, int DO = -1);\n"
|
||||
<< "};\n";
|
||||
@@ -234,7 +234,7 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
||||
OS << "\n#ifdef GET_INSTRINFO_CTOR\n";
|
||||
OS << "#undef GET_INSTRINFO_CTOR\n";
|
||||
|
||||
OS << "namespace llvm {\n\n";
|
||||
OS << "namespace llvm {\n";
|
||||
OS << ClassName << "::" << ClassName << "(int SO, int DO)\n"
|
||||
<< " : TargetInstrInfoImpl(SO, DO) {\n"
|
||||
<< " InitMCInstrInfo(" << TargetName << "Insts, "
|
||||
|
||||
Reference in New Issue
Block a user