[llvm] r294704 - SubtargetFeature: Increase MAX_SUBTARGET_FEATURES

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 19:48:50 PST 2017


Author: matze
Date: Thu Feb  9 21:48:50 2017
New Revision: 294704

URL: http://llvm.org/viewvc/llvm-project?rev=294704&view=rev
Log:
SubtargetFeature: Increase MAX_SUBTARGET_FEATURES

The ARM target is getting really close to the current limit of 128
subtarget features already breaking out of tree enhancements. Increase
the size once more to 196.

I filed http://llvm.org/PR31926 to request a proper solution.

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=294704&r1=294703&r2=294704&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/SubtargetFeature.h (original)
+++ llvm/trunk/include/llvm/MC/SubtargetFeature.h Thu Feb  9 21:48:50 2017
@@ -33,7 +33,7 @@ class Triple;
 // 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 = 128;
+const unsigned MAX_SUBTARGET_FEATURES = 192;
 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