Skip to content

Commit d684d7f

Browse files
[SPIR-V] Add SPIRV to LLVM_ALL_TARGETS
This commit promotes the SPIR-V backend from experimental to official status. As a result, SPIR-V will be built by default, simplifying integration and increasing accessibility for downstream projects. Discussion and RFC on Discourse: https://discourse.llvm.org/t/rfc-promoting-spir-v-to-an-official-target/83614
1 parent 93220e7 commit d684d7f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/spirv-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
with:
2626
build_target: check-llvm-codegen-spirv
2727
projects:
28-
extra_cmake_args: '-DLLVM_TARGETS_TO_BUILD="" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
28+
extra_cmake_args: '-DLLVM_TARGETS_TO_BUILD="SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
2929
os_list: '["ubuntu-latest"]'

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ set(LLVM_ALL_TARGETS
486486
PowerPC
487487
RISCV
488488
Sparc
489+
SPIRV
489490
SystemZ
490491
VE
491492
WebAssembly
@@ -498,7 +499,6 @@ set(LLVM_ALL_EXPERIMENTAL_TARGETS
498499
CSKY
499500
DirectX
500501
M68k
501-
SPIRV
502502
Xtensa
503503
)
504504

llvm/docs/ReleaseNotes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ for adding a new subsection. -->
4747
same semantics. The normalizer makes it easier to spot semantic differences
4848
when diffing two modules which have undergone different passes.
4949

50+
* The SPIR-V backend is now an official LLVM target, providing OpenCL and SYCL
51+
conformance and establishing a foundation for broader applicability to other
52+
APIs, including Vulkan, GLSL, and HLSL. This backend aims to offer a unified
53+
approach for diverse compute and graphics workloads, providing a robust
54+
alternative to the Khronos SPIR-V LLVM Translator.
55+
5056
* ...
5157

5258
<!-- If you would like to document a larger change, then you can add a

0 commit comments

Comments
 (0)