summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/MCTargetDesc
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-12-13 07:26:17 +0000
committerCraig Topper <craig.topper@intel.com>2017-12-13 07:26:17 +0000
commitac59db2efe7c5eeb42f4227814c4ccab55208535 (patch)
treef0ee702fadfdbb65f69fb3589626edb1283109bc /llvm/lib/Target/PowerPC/MCTargetDesc
parentb8cb5da28df4ee95e83605c2a4490878e39ab220 (diff)
downloadbcm5719-llvm-ac59db2efe7c5eeb42f4227814c4ccab55208535.tar.gz
bcm5719-llvm-ac59db2efe7c5eeb42f4227814c4ccab55208535.zip
[Targets] Don't automatically include the scheduler class enum from *GenInstrInfo.inc with GET_INSTRINFO_ENUM. Make targets request is separately.
Most of the targets don't need the scheduler class enum. I have an X86 scheduler model change that causes some names in the enum to become about 18000 characters long. This is because using instregex in scheduler models causes the scheduler class to get named with every instruction that matches the regex concatenated together. MSVC has a limit of 4096 characters for an identifier name. Rather than trying to come up with way to reduce the name length, I'm just going to sidestep the problem by not including the enum in X86. llvm-svn: 320552
Diffstat (limited to 'llvm/lib/Target/PowerPC/MCTargetDesc')
-rw-r--r--llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h
index 99fec6c554b..80a74c09a59 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h
@@ -101,6 +101,7 @@ static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) {
// Defines symbolic names for the PowerPC instructions.
//
#define GET_INSTRINFO_ENUM
+#define GET_INSTRINFO_SCHED_ENUM
#include "PPCGenInstrInfo.inc"
#define GET_SUBTARGETINFO_ENUM
OpenPOWER on IntegriCloud