diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp index e5acb574b4f3..803e8081f6f2 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -5639,5 +5639,5 @@ bool AArch64InstrInfo::shouldOutlineFromFunctionByDefault( return MF.getFunction().optForMinSize(); } -#define GET_TII_HELPERS +#define GET_INSTRINFO_HELPERS #include "AArch64GenInstrInfo.inc" diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.h b/llvm/lib/Target/AArch64/AArch64InstrInfo.h index 75eb47253bf7..666a514c8301 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.h +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.h @@ -258,7 +258,7 @@ public: /// on Windows. static bool isSEHInstruction(const MachineInstr &MI); -#define GET_TII_HELPER_DECLS +#define GET_INSTRINFO_HELPER_DECLS #include "AArch64GenInstrInfo.inc" private: diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp index 4f56e9860c79..0f8198ba4e9b 100644 --- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp +++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp @@ -32,7 +32,7 @@ using namespace llvm; #define GET_INSTRINFO_MC_DESC -#define GET_GENINSTRINFO_MC_HELPERS +#define GET_INSTRINFO_MC_HELPERS #include "AArch64GenInstrInfo.inc" #define GET_SUBTARGETINFO_MC_DESC diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h index 0a9eaeb6e012..0f22f69bd5b0 100644 --- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h +++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h @@ -84,7 +84,7 @@ void initLLVMToCVRegMapping(MCRegisterInfo *MRI); // Defines symbolic names for the AArch64 instructions. // #define GET_INSTRINFO_ENUM -#define GET_GENINSTRINFO_MC_DECL +#define GET_INSTRINFO_MC_HELPER_DECLS #include "AArch64GenInstrInfo.inc" #define GET_SUBTARGETINFO_ENUM diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp index 362ca96ac093..ea4aaf14223d 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp @@ -39,7 +39,7 @@ using namespace llvm; #include "X86GenRegisterInfo.inc" #define GET_INSTRINFO_MC_DESC -#define GET_GENINSTRINFO_MC_HELPERS +#define GET_INSTRINFO_MC_HELPERS #include "X86GenInstrInfo.inc" #define GET_SUBTARGETINFO_MC_DESC diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h index 595c26d31e3f..4e9f5ba60d2e 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h +++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h @@ -134,7 +134,7 @@ unsigned getX86SubSuperRegisterOrZero(unsigned, unsigned, // Defines symbolic names for the X86 instructions. // #define GET_INSTRINFO_ENUM -#define GET_GENINSTRINFO_MC_DECL +#define GET_INSTRINFO_MC_HELPER_DECLS #include "X86GenInstrInfo.inc" #define GET_SUBTARGETINFO_ENUM diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index fe26389050c2..c2c0ec35b1c3 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -7830,5 +7830,5 @@ X86InstrInfo::insertOutlinedCall(Module &M, MachineBasicBlock &MBB, return It; } -#define GET_TII_HELPERS +#define GET_INSTRINFO_HELPERS #include "X86GenInstrInfo.inc" diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index f3965db4fe7c..80834d15adfa 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -558,7 +558,7 @@ public: MachineBasicBlock::iterator &It, MachineFunction &MF, const outliner::Candidate &C) const override; -#define GET_TII_HELPER_DECLS +#define GET_INSTRINFO_HELPER_DECLS #include "X86GenInstrInfo.inc" protected: diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index 55b6f192c2f0..33711b64a5d3 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -358,8 +358,8 @@ void InstrInfoEmitter::emitMCIIHelperMethods(raw_ostream &OS, if (TIIPredicates.empty()) return; - OS << "#ifdef GET_GENINSTRINFO_MC_DECL\n"; - OS << "#undef GET_GENINSTRINFO_MC_DECL\n\n"; + OS << "#ifdef GET_INSTRINFO_MC_HELPER_DECLS\n"; + OS << "#undef GET_INSTRINFO_MC_HELPER_DECLS\n\n"; OS << "namespace llvm {\n"; OS << "class MCInst;\n\n"; @@ -374,10 +374,10 @@ void InstrInfoEmitter::emitMCIIHelperMethods(raw_ostream &OS, OS << "\n} // end " << TargetName << "_MC namespace\n"; OS << "} // end llvm namespace\n\n"; - OS << "#endif // GET_GENINSTRINFO_MC_DECL\n\n"; + OS << "#endif // GET_INSTRINFO_MC_HELPER_DECLS\n\n"; - OS << "#ifdef GET_GENINSTRINFO_MC_HELPERS\n"; - OS << "#undef GET_GENINSTRINFO_MC_HELPERS\n\n"; + OS << "#ifdef GET_INSTRINFO_MC_HELPERS\n"; + OS << "#undef GET_INSTRINFO_MC_HELPERS\n\n"; OS << "namespace llvm {\n"; OS << "namespace " << TargetName << "_MC {\n\n"; @@ -533,13 +533,13 @@ void InstrInfoEmitter::run(raw_ostream &OS) { OS << "#endif // GET_INSTRINFO_HEADER\n\n"; - OS << "#ifdef GET_TII_HELPER_DECLS\n"; - OS << "#undef GET_TII_HELPER_DECLS\n"; + OS << "#ifdef GET_INSTRINFO_HELPER_DECLS\n"; + OS << "#undef GET_INSTRINFO_HELPER_DECLS\n"; emitTIIHelperMethods(OS, TargetName, /* ExpandDefintion = */false); - OS << "#endif // GET_TII_HELPER_DECLS\n\n"; + OS << "#endif // GET_INSTRINFO_HELPER_DECLS\n\n"; - OS << "#ifdef GET_TII_HELPERS\n"; - OS << "#undef GET_TII_HELPERS\n"; + OS << "#ifdef GET_INSTRINFO_HELPERS\n"; + OS << "#undef GET_INSTRINFO_HELPERS\n"; emitTIIHelperMethods(OS, TargetName, /* ExpandDefintion = */true); OS << "#endif // GET_TTI_HELPERS\n\n";