Sort the cpu and features table, so that the alpha backend doesn't fail EVERY
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
diff --git a/lib/Target/Alpha/AlphaSubtarget.cpp b/lib/Target/Alpha/AlphaSubtarget.cpp
index 794ecb3..15f51c4 100644
--- a/lib/Target/Alpha/AlphaSubtarget.cpp
+++ b/lib/Target/Alpha/AlphaSubtarget.cpp
@@ -30,8 +30,8 @@
{ "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 @@
/// 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)