[TableGen] Refactor macro names (NFC)

Make the names for the macros for `TargetInstrInfo` uniform.

llvm-svn: 347706
This commit is contained in:
Evandro Menezes 2018-11-27 20:58:27 +00:00
parent a82303352a
commit 9ef79c884a
9 changed files with 18 additions and 18 deletions

View File

@ -5639,5 +5639,5 @@ bool AArch64InstrInfo::shouldOutlineFromFunctionByDefault(
return MF.getFunction().optForMinSize();
}
#define GET_TII_HELPERS
#define GET_INSTRINFO_HELPERS
#include "AArch64GenInstrInfo.inc"

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -7830,5 +7830,5 @@ X86InstrInfo::insertOutlinedCall(Module &M, MachineBasicBlock &MBB,
return It;
}
#define GET_TII_HELPERS
#define GET_INSTRINFO_HELPERS
#include "X86GenInstrInfo.inc"

View File

@ -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:

View File

@ -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";