Sort the cpu and features table, so that the alpha backend doesn't fail EVERY
authorChris Lattner <sabre@nondot.org>
Sun, 2 Oct 2005 07:13:52 +0000 (07:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Oct 2005 07:13:52 +0000 (07:13 +0000)
compile with an assertion that the tables are not sorted!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23591 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaSubtarget.cpp

index 794ecb304ac84a86ede9b89fdb442154bf7205e5..15f51c4601474a49472ecb507fc9bc3dc138ae50 100644 (file)
@@ -30,8 +30,8 @@ static const SubtargetFeatureKV AlphaSubTypeKV[] = {
   { "ev56"    , "Select the Alpha EV56 processor", 0 },
   { "ev6"    , "Select the Alpha EV6 processor", AlphaFeatureFIX },
   { "ev67"    , "Select the Alpha EV67 processor", AlphaFeatureFIX | AlphaFeatureCIX },
+  { "generic", "Select instructions for a generic Alpha processor (EV56)", 0 },
   { "pca56"    , "Select the Alpha PCA56 processor", 0 },
-  { "generic", "Select instructions for a generic Alpha processor (EV56)", 0 }
 };
 
 /// Length of AlphaSubTypeKV.
@@ -40,8 +40,8 @@ static const unsigned AlphaSubTypeKVSize = sizeof(AlphaSubTypeKV)
 
 /// Sorted (by key) array of values for CPU features.
 static SubtargetFeatureKV AlphaFeatureKV[] = {
+  { "CIX", "Should CIX extentions be used" , AlphaFeatureCIX },
   { "FIX"  , "Should FIX extentions be used"  , AlphaFeatureFIX },
-  { "CIX", "Should CIX extentions be used" , AlphaFeatureCIX }
  };
 /// Length of AlphaFeatureKV.
 static const unsigned AlphaFeatureKVSize = sizeof(AlphaFeatureKV)