[llvm] r255616 - Bump up MAX_SUBTARGET_FEATURES

Weiming Zhao via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 14 20:42:49 PST 2015


Author: weimingz
Date: Mon Dec 14 22:42:49 2015
New Revision: 255616

URL: http://llvm.org/viewvc/llvm-project?rev=255616&view=rev
Log:
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

Modified:
    llvm/trunk/include/llvm/MC/SubtargetFeature.h

Modified: llvm/trunk/include/llvm/MC/SubtargetFeature.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/SubtargetFeature.h?rev=255616&r1=255615&r2=255616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/SubtargetFeature.h (original)
+++ llvm/trunk/include/llvm/MC/SubtargetFeature.h Mon Dec 14 22:42:49 2015
@@ -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++..




More information about the llvm-commits mailing list