Skip to content

Commit f58fc2a

Browse files
vmaksimosys-ce-bb
authored andcommitted
Move the version to supported (#2622)
Original commit: KhronosGroup/SPIRV-LLVM-Translator@d7870dfe082b5d1
1 parent 38949c3 commit f58fc2a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

llvm-spirv/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ the version of the SPIR-V file which is being generated/consumed.
203203
the input file and emit an error if the SPIR-V version in it is higher than
204204
one specified via this option.
205205
206-
Allowed values are `1.0`, `1.1`, `1.2`, `1.3`, `1.4`, and `1.5`.
206+
Allowed values are `1.0`, `1.1`, `1.2`, `1.3`, `1.4`, `1.5` and `1.6`.
207207
208208
More information can be found in
209209
[SPIR-V versions and extensions handling](docs/SPIRVVersionsAndExtensionsHandling.rst)

llvm-spirv/docs/SPIRVVersionsAndExtensionsHandling.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ the version of the SPIR-V file which is being generated/consumed.
6565
one exception: resulting SPIR-V version cannot be raised higher than
6666
specified by this option.
6767

68-
Allowed values are ``1.0``, ``1.1``, ``1.2``, ``1.3``, ``1.4``, and ``1.5``.
68+
Allowed values are ``1.0``, ``1.1``, ``1.2``, ``1.3``, ``1.4``, ``1.5`` and
69+
``1.6``.
6970

7071
.. warning::
7172
These two options are mutually exclusive and cannot be specified at the

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6779,6 +6779,8 @@ VersionNumber getVersionFromTriple(const Triple &TT, SPIRVErrorLog &ErrorLog) {
67796779
return VersionNumber::SPIRV_1_4;
67806780
case Triple::SPIRVSubArch_v15:
67816781
return VersionNumber::SPIRV_1_5;
6782+
case Triple::SPIRVSubArch_v16:
6783+
return VersionNumber::SPIRV_1_6;
67826784
default:
67836785
ErrorLog.checkError(false, SPIRVEC_InvalidSubArch, TT.getArchName().str());
67846786
return VersionNumber::MaximumVersion;

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVErrorEnum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
_SPIRV_OP(Success, "Success")
33
_SPIRV_OP(InvalidTargetTriple,
44
"Expects spir-unknown-unknown or spir64-unknown-unknown.")
5-
_SPIRV_OP(InvalidSubArch, "Expecting v1.0-v1.5.")
5+
_SPIRV_OP(InvalidSubArch, "Expecting v1.0-v1.6.")
66
_SPIRV_OP(TripleMaxVersionIncompatible,
77
"Triple version and maximum version are incompatible.")
88
_SPIRV_OP(InvalidAddressingModel, "Expects 0-2.")

llvm-spirv/tools/llvm-spirv/llvm-spirv.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ static cl::opt<VersionNumber> MaxSPIRVVersion(
113113
clEnumValN(VersionNumber::SPIRV_1_3, "1.3", "SPIR-V 1.3"),
114114
clEnumValN(VersionNumber::SPIRV_1_4, "1.4", "SPIR-V 1.4"),
115115
clEnumValN(VersionNumber::SPIRV_1_5, "1.5", "SPIR-V 1.5"),
116-
clEnumValN(VersionNumber::SPIRV_1_6, "1.6",
117-
"SPIR-V 1.6 (experimental)")),
116+
clEnumValN(VersionNumber::SPIRV_1_6, "1.6", "SPIR-V 1.6")),
118117
cl::init(VersionNumber::MaximumVersion));
119118

120119
static cl::list<std::string>

0 commit comments

Comments
 (0)