Skip to content

Commit af4abc4

Browse files
authored
[RISCV] Remove experimental- prefix for smaia and ssaia. (#71172)
Since smaia and ssaia are ratified now, we could remove their experimental- prefix.
1 parent ac798ea commit af4abc4

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

llvm/docs/RISCVUsage.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ on support follow.
9090
``F`` Supported
9191
``H`` Assembly Support
9292
``M`` Supported
93+
``Smaia`` Supported
94+
``Ssaia`` Supported
9395
``Svinval`` Assembly Support
9496
``Svnapot`` Assembly Support
9597
``Svpbmt`` Supported
@@ -188,12 +190,6 @@ LLVM supports (to various degrees) a number of experimental extensions. All exp
188190

189191
The primary goal of experimental support is to assist in the process of ratification by providing an existence proof of an implementation, and simplifying efforts to validate the value of a proposed extension against large code bases. Experimental extensions are expected to either transition to ratified status, or be eventually removed. The decision on whether to accept an experimental extension is currently done on an entirely case by case basis; if you want to propose one, attending the bi-weekly RISC-V sync-up call is strongly advised.
190192

191-
``experimental-smaia``
192-
LLVM implements the `Ratification candidate 3 <https://github.com/riscv/riscv-aia/releases/tag/1.0-RC3>`_.
193-
194-
``experimental-ssaia``
195-
LLVM implements the `Ratification candidate 3 <https://github.com/riscv/riscv-aia/releases/tag/1.0-RC3>`_.
196-
197193
``experimental-zacas``
198194
LLVM implements the `1.0-rc1 draft specification <https://github.com/riscv/riscv-zacas/releases/tag/v1.0-rc1>`_.
199195

llvm/lib/Support/RISCVISAInfo.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ static const RISCVSupportedExtension SupportedExtensions[] = {
5959
{"i", RISCVExtensionVersion{2, 1}},
6060
{"m", RISCVExtensionVersion{2, 0}},
6161

62+
{"smaia", RISCVExtensionVersion{1, 0}},
63+
{"ssaia", RISCVExtensionVersion{1, 0}},
6264
{"svinval", RISCVExtensionVersion{1, 0}},
6365
{"svnapot", RISCVExtensionVersion{1, 0}},
6466
{"svpbmt", RISCVExtensionVersion{1, 0}},
@@ -166,9 +168,6 @@ static const RISCVSupportedExtension SupportedExtensions[] = {
166168

167169
// NOTE: This table should be sorted alphabetically by extension name.
168170
static const RISCVSupportedExtension SupportedExperimentalExtensions[] = {
169-
{"smaia", RISCVExtensionVersion{1, 0}},
170-
{"ssaia", RISCVExtensionVersion{1, 0}},
171-
172171
{"zacas", RISCVExtensionVersion{1, 0}},
173172

174173
{"zfbfmin", RISCVExtensionVersion{0, 8}},

llvm/lib/Target/RISCV/RISCVFeatures.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,14 +688,14 @@ def HasStdExtZicond : Predicate<"Subtarget->hasStdExtZicond()">,
688688
"'Zicond' (Integer Conditional Operations)">;
689689

690690
def FeatureStdExtSmaia
691-
: SubtargetFeature<"experimental-smaia", "HasStdExtSmaia", "true",
691+
: SubtargetFeature<"smaia", "HasStdExtSmaia", "true",
692692
"'Smaia' (Smaia encompasses all added CSRs and all "
693693
"modifications to interrupt response behavior that the "
694694
"AIA specifies for a hart, over all privilege levels.)",
695695
[]>;
696696

697697
def FeatureStdExtSsaia
698-
: SubtargetFeature<"experimental-ssaia", "HasStdExtSsaia", "true",
698+
: SubtargetFeature<"ssaia", "HasStdExtSsaia", "true",
699699
"'Ssaia' (Ssaia is essentially the same as Smaia except "
700700
"excluding the machine-level CSRs and behavior not "
701701
"directly visible to supervisor level.)", []>;

llvm/test/CodeGen/RISCV/attributes.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
; RUN: llc -mtriple=riscv32 -mattr=+zve32x -mattr=+experimental-zvksh %s -o - | FileCheck --check-prefix=RV32ZVKSH %s
8282
; RUN: llc -mtriple=riscv32 -mattr=+zve32x -mattr=+experimental-zvkt %s -o - | FileCheck --check-prefix=RV32ZVKT %s
8383
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zicond %s -o - | FileCheck --check-prefix=RV32ZICOND %s
84-
; RUN: llc -mtriple=riscv32 -mattr=+experimental-smaia %s -o - | FileCheck --check-prefixes=CHECK,RV32SMAIA %s
85-
; RUN: llc -mtriple=riscv32 -mattr=+experimental-ssaia %s -o - | FileCheck --check-prefixes=CHECK,RV32SSAIA %s
84+
; RUN: llc -mtriple=riscv32 -mattr=+smaia %s -o - | FileCheck --check-prefixes=CHECK,RV32SMAIA %s
85+
; RUN: llc -mtriple=riscv32 -mattr=+ssaia %s -o - | FileCheck --check-prefixes=CHECK,RV32SSAIA %s
8686
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zfbfmin %s -o - | FileCheck --check-prefixes=CHECK,RV32ZFBFMIN %s
8787
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zvfbfmin %s -o - | FileCheck --check-prefixes=CHECK,RV32ZVFBFMIN %s
8888
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zvfbfwma %s -o - | FileCheck --check-prefixes=CHECK,RV32ZVFBFWMA %s
@@ -171,8 +171,8 @@
171171
; RUN: llc -mtriple=riscv64 -mattr=+zve32x -mattr=+experimental-zvksh %s -o - | FileCheck --check-prefix=RV64ZVKSH %s
172172
; RUN: llc -mtriple=riscv64 -mattr=+zve32x -mattr=+experimental-zvkt %s -o - | FileCheck --check-prefix=RV64ZVKT %s
173173
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zicond %s -o - | FileCheck --check-prefix=RV64ZICOND %s
174-
; RUN: llc -mtriple=riscv64 -mattr=+experimental-smaia %s -o - | FileCheck --check-prefixes=CHECK,RV64SMAIA %s
175-
; RUN: llc -mtriple=riscv64 -mattr=+experimental-ssaia %s -o - | FileCheck --check-prefixes=CHECK,RV64SSAIA %s
174+
; RUN: llc -mtriple=riscv64 -mattr=+smaia %s -o - | FileCheck --check-prefixes=CHECK,RV64SMAIA %s
175+
; RUN: llc -mtriple=riscv64 -mattr=+ssaia %s -o - | FileCheck --check-prefixes=CHECK,RV64SSAIA %s
176176
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zfbfmin %s -o - | FileCheck --check-prefixes=CHECK,RV64ZFBFMIN %s
177177
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zvfbfmin %s -o - | FileCheck --check-prefixes=CHECK,RV64ZVFBFMIN %s
178178
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zvfbfwma %s -o - | FileCheck --check-prefixes=CHECK,RV64ZVFBFWMA %s

llvm/unittests/Support/RISCVISAInfoTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ R"(All available -march extensions for RISC-V
704704
zvl8192b 1.0
705705
zhinx 1.0
706706
zhinxmin 1.0
707+
smaia 1.0
708+
ssaia 1.0
707709
svinval 1.0
708710
svnapot 1.0
709711
svpbmt 1.0
@@ -755,8 +757,6 @@ Experimental extensions
755757
zvksg 1.0
756758
zvksh 1.0
757759
zvkt 1.0
758-
smaia 1.0
759-
ssaia 1.0
760760
761761
Use -march to specify the target's extension.
762762
For example, clang -march=rv32i_v1p0)";

0 commit comments

Comments
 (0)