[PATCH] D146054: [RISCV] Add -print-supported-marchs and -march=help support

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 7 12:57:01 PDT 2023


craig.topper added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:4236
+
+    // Use the -march=help flag as the dummy input to cc1.
+    Actions.clear();
----------------
MaskRay wrote:
> Why is the code needed? Can --print-supported-extensions reuse the approach of `OPT_print_supported_cpus`?
@MaskRay are you just asking to use the same block of code for both cases?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146054/new/

https://reviews.llvm.org/D146054



More information about the cfe-commits mailing list