[clang] [llvm] [AArch64] Add ability to list extensions enabled for a target (PR #95805)

Lucas Duarte Prates via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 06:03:14 PDT 2024


================
@@ -204,6 +238,10 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
   if (Clang->getFrontendOpts().PrintSupportedExtensions)
     return PrintSupportedExtensions(Clang->getTargetOpts().Triple);
 
+  // --print-enabled-extensions takes priority over the actual compilation.
----------------
pratlucas wrote:

Only one of them wins and is executed, depending on the order of their implementation in `cc1_main.cpp`. The same applies when using the two existing `--print-supported-extensions` and `--print-supported-cpus` together.
Ideally, we should make these three options mutually exclusive in the future.

https://github.com/llvm/llvm-project/pull/95805


More information about the llvm-commits mailing list