[llvm] [RISCV][doc] Document profiles in RISCVUsage (PR #98326)

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 07:38:08 PDT 2024


https://github.com/asb updated https://github.com/llvm/llvm-project/pull/98326

>From d7044476eef23596df90c025872194bd7c7c67fe Mon Sep 17 00:00:00 2001
From: Alex Bradbury <asb at igalia.com>
Date: Wed, 10 Jul 2024 15:10:22 +0100
Subject: [PATCH 1/2] [RISCV][doc] Document profiles in RISCVUsage

Just like we do for extensions, list those which are supported and those
that can be enabled with additional flags.
---
 llvm/docs/RISCVUsage.rst | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/llvm/docs/RISCVUsage.rst b/llvm/docs/RISCVUsage.rst
index 41b22020670d8..a78e57cf9621c 100644
--- a/llvm/docs/RISCVUsage.rst
+++ b/llvm/docs/RISCVUsage.rst
@@ -70,6 +70,30 @@ To specify the target triple:
 To select an E variant ISA (e.g. RV32E instead of RV32I), use the base
 architecture string (e.g. ``riscv32``) with the extension ``e``.
 
+Profiles
+========
+
+Supported profile names can be passed using ``-march`` instead of a standard
+ISA naming string. Currently supported profiles:
+
+* ``rvi20u32``
+* ``rvi20u64``
+* ``rva20u64``
+* ``rva20s64``
+* ``rva22u64``
+* ``rva22s64``
+
+
+Profiles that are not yet ratified cannot be used unless
+``-menable-experimental-extensions`` (or equivalent for other tools) is
+specified. This applies to the following profiles:
+
+* ``rva23u64``
+* ``rva23s64``
+* ``rvb23u64``
+* ``rvb23s64``
+* ``rvm23u32``
+
 .. _riscv-extensions:
 
 Extensions

>From 878430664fe454d60e9afaa9ff5d05baab3858f0 Mon Sep 17 00:00:00 2001
From: Alex Bradbury <asb at igalia.com>
Date: Wed, 10 Jul 2024 15:37:51 +0100
Subject: [PATCH 2/2] Add note about appending extension names

---
 llvm/docs/RISCVUsage.rst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/llvm/docs/RISCVUsage.rst b/llvm/docs/RISCVUsage.rst
index a78e57cf9621c..ebe0d52b2b84d 100644
--- a/llvm/docs/RISCVUsage.rst
+++ b/llvm/docs/RISCVUsage.rst
@@ -83,6 +83,9 @@ ISA naming string. Currently supported profiles:
 * ``rva22u64``
 * ``rva22s64``
 
+Note that you can also append additional extension names to be enable, e.g.
+``rva20u64_zicond`` will enable the ``zicond`` extension in addition to those
+in the ``rva20u64`` profile.
 
 Profiles that are not yet ratified cannot be used unless
 ``-menable-experimental-extensions`` (or equivalent for other tools) is



More information about the llvm-commits mailing list