From: Weiming Zhao Date: Tue, 15 Dec 2015 04:42:49 +0000 (+0000) Subject: Bump up MAX_SUBTARGET_FEATURES X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=db01e41c24babb26e4980af564b1ba70bd3168aa Bump up MAX_SUBTARGET_FEATURES Summary: Currently, ARMGenSubtargetInfo (from ARM.td) is reaching the limit of 96: enum : uint64_t { ... XScale = 95 }; We need to bump the maximum value up to accommodate future changes and/or customized subtarget definitions. Reviewers: apazos, t.p.northover Subscribers: llvm-commits, aemerson Differential Revision: http://reviews.llvm.org/D15514 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255616 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/SubtargetFeature.h b/include/llvm/MC/SubtargetFeature.h index 8edd798f153..0d97b226d72 100644 --- a/include/llvm/MC/SubtargetFeature.h +++ b/include/llvm/MC/SubtargetFeature.h @@ -30,7 +30,7 @@ namespace llvm { // A container class for subtarget features. // This is convenient because std::bitset does not have a constructor // with an initializer list of set bits. -const unsigned MAX_SUBTARGET_FEATURES = 96; +const unsigned MAX_SUBTARGET_FEATURES = 128; class FeatureBitset : public std::bitset { public: // Cannot inherit constructors because it's not supported by VC++..