[PATCH] D15514: Bump up MAX_SUBTARGET_FEATURES
    Weiming Zhao via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Dec 14 18:21:57 PST 2015
    
    
  
weimingz created this revision.
weimingz added a subscriber: llvm-commits.
weimingz set the repository for this revision to rL LLVM.
Herald added a subscriber: aemerson.
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. 
Repository:
  rL LLVM
http://reviews.llvm.org/D15514
Files:
  include/llvm/MC/SubtargetFeature.h
Index: include/llvm/MC/SubtargetFeature.h
===================================================================
--- include/llvm/MC/SubtargetFeature.h
+++ include/llvm/MC/SubtargetFeature.h
@@ -30,7 +30,7 @@
 // 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 = 104;
 class FeatureBitset : public std::bitset<MAX_SUBTARGET_FEATURES> {
 public:
   // Cannot inherit constructors because it's not supported by VC++..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15514.42809.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151215/2509d1dd/attachment.bin>
    
    
More information about the llvm-commits
mailing list