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

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 11 17:31:46 PDT 2023


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:4236
+
+    // Use the -march=help flag as the dummy input to cc1.
+    Actions.clear();
----------------
craig.topper wrote:
> 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?
Yes, this should reuse some code with the `OPT_print_supported_cpus` handler.


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