diff options
| author | Michael Maitland <michaeltmaitland@gmail.com> | 2024-07-10 15:39:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 15:39:08 -0400 |
| commit | eee5d2d37c761e71d7a406acc112be0c71f4c3af (patch) | |
| tree | 35bef2c1c937b90ff646d9dc60185a11361e9e78 /clang/docs/CommandGuide | |
| parent | 9f5756abefc622de543833584e4a25ffa3e9ff02 (diff) | |
[RISCV] Add ability to list extensions enabled for a target (#98207)
bb83a3d introduced `--print-enabled-extensions` command line option for
AArch64. This patch introduces RISC-V support for this option. This patch
adds documentation for this option.
`riscvExtensionsHelp` is renamed to `printSupportedExtensions` to by
synonymous with AArch64 and so it is clear what that function does.
Diffstat (limited to 'clang/docs/CommandGuide')
| -rw-r--r-- | clang/docs/CommandGuide/clang.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst index 14400c39e919..a348f3640c5e 100644 --- a/clang/docs/CommandGuide/clang.rst +++ b/clang/docs/CommandGuide/clang.rst @@ -393,6 +393,12 @@ number of cross compilers, or may only support a native target. allowed to generate instructions that are valid on i486 and later processors, but which may not exist on earlier ones. +.. option:: --print-enabled-extensions + + Prints the list of extensions that are enabled for the target specified by the + combination of `--target`, `-march`, and `-mcpu` values. Currently, this + option is only supported on AArch64 and RISC-V. On RISC-V, this option also + prints out the ISA string of enabled extensions. Code Generation Options ~~~~~~~~~~~~~~~~~~~~~~~ |
