[PATCH] D153170: [RISCV] Sort the extensions in SupportedExtensions and SupportedExperimentalExtensions.

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 16 14:22:17 PDT 2023


craig.topper created this revision.
craig.topper added reviewers: jrtc27, asb, kito-cheng, wangpc, reames.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: cfe-commits, eopXD, MaskRay.
Herald added projects: clang, LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153170

Files:
  clang/test/Driver/riscv-march-mcpu-mtune.c
  llvm/lib/Support/RISCVISAInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153170.532292.patch
Type: text/x-patch
Size: 8860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230616/0614d39e/attachment-0001.bin>


More information about the cfe-commits mailing list