[RISCV] Sort the extensions in SupportedExtensions and SupportedExperimentalExtensions.
authorCraig Topper <craig.topper@sifive.com>
Thu, 22 Jun 2023 18:01:11 +0000 (11:01 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 22 Jun 2023 18:25:47 +0000 (11:25 -0700)
commite4a93d80f425114e4d943ba176b34590c8d0fece
treef0648bbc0f3382566ffaa3dfe1b5003c8fe4db77
parenta0509884d904e91eb18e1bd6b1e216b470b7e970
[RISCV] Sort the extensions in SupportedExtensions and SupportedExperimentalExtensions.

As the extension list continues to grow it probably makes sense
to use a binary search rather than linear search. Sorting the strings
will make this possible.

This also avoids any question about where to add new strings in
the tables.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D153170
clang/test/Driver/riscv-march-mcpu-mtune.c
llvm/lib/Support/RISCVISAInfo.cpp