Skip to content

Commit 884a07f

Browse files
authored
[RISCV][doc] Document profiles in RISCVUsage (#98326)
Just like we do for extensions, list those which are supported and those that can be enabled with additional flags.
1 parent b5657d6 commit 884a07f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

llvm/docs/RISCVUsage.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,33 @@ To specify the target triple:
7070
To select an E variant ISA (e.g. RV32E instead of RV32I), use the base
7171
architecture string (e.g. ``riscv32``) with the extension ``e``.
7272

73+
Profiles
74+
========
75+
76+
Supported profile names can be passed using ``-march`` instead of a standard
77+
ISA naming string. Currently supported profiles:
78+
79+
* ``rvi20u32``
80+
* ``rvi20u64``
81+
* ``rva20u64``
82+
* ``rva20s64``
83+
* ``rva22u64``
84+
* ``rva22s64``
85+
86+
Note that you can also append additional extension names to be enable, e.g.
87+
``rva20u64_zicond`` will enable the ``zicond`` extension in addition to those
88+
in the ``rva20u64`` profile.
89+
90+
Profiles that are not yet ratified cannot be used unless
91+
``-menable-experimental-extensions`` (or equivalent for other tools) is
92+
specified. This applies to the following profiles:
93+
94+
* ``rva23u64``
95+
* ``rva23s64``
96+
* ``rvb23u64``
97+
* ``rvb23s64``
98+
* ``rvm23u32``
99+
73100
.. _riscv-extensions:
74101

75102
Extensions

0 commit comments

Comments
 (0)