[clang] [DOC] Update SPIR-V Support on HIPAMD ToolChain (PR #211542)
Dmitry Sidorov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 05:58:41 PDT 2026
https://github.com/MrSidims created https://github.com/llvm/llvm-project/pull/211542
SPIR-V backend now is the default path.
>From 853334164f383f7df228cbe3666980e8153e14f5 Mon Sep 17 00:00:00 2001
From: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
Date: Thu, 23 Jul 2026 07:56:02 -0500
Subject: [PATCH] [DOC] Update SPIR-V Support on HIPAMD ToolChain
SPIR-V backend now is the default path.
---
clang/docs/HIPSupport.md | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/clang/docs/HIPSupport.md b/clang/docs/HIPSupport.md
index bf6f2268c34b9..8980a27c55474 100644
--- a/clang/docs/HIPSupport.md
+++ b/clang/docs/HIPSupport.md
@@ -1085,10 +1085,15 @@ diverges from the traditional compilation flow:
generates generic AMDGCN SPIR-V which retains architecture specific elements
without hardcoding them, thus allowing for optimal target specific code to be
generated at run time, when the concrete target is known.
-- **LLVM IR Translation**: The program is compiled to LLVM Intermediate
- Representation (IR), which is subsequently translated into SPIR-V. In the
- future, this translation step will be replaced by direct SPIR-V emission via
- the SPIR-V Back-end.
+- **SPIR-V emission**: The program is compiled to LLVM Intermediate
+ Representation (IR), which is subsequently lowered into SPIR-V via the SPIR-V
+ backend.
+
+ :::{note}
+ The SPIR-V backend does not currently preserve debug information. Pass
+ `-no-use-spirv-backend` on the command line to fall back to the legacy
+ translation path, which retains debug information.
+ :::
- **Clang Offload Bundler**: The resulting SPIR-V is embedded in the Clang
offload bundler with the bundle ID `hip-spirv64-amd-amdhsa--amdgcnspirv`.
More information about the cfe-commits
mailing list