Bump up MAX_SUBTARGET_FEATURES
authorWeiming Zhao <weimingz@codeaurora.org>
Tue, 15 Dec 2015 04:42:49 +0000 (04:42 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Tue, 15 Dec 2015 04:42:49 +0000 (04:42 +0000)
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

include/llvm/MC/SubtargetFeature.h

index 8edd798f1530002fb9435b564da897588e3ea4b3..0d97b226d7283210fd10557518f32d88e57dedd0 100644 (file)
@@ -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<MAX_SUBTARGET_FEATURES> {
 public:
   // Cannot inherit constructors because it's not supported by VC++..