llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Dmitry Sidorov (MrSidims)

<details>
<summary>Changes</summary>

SPIR-V backend now is the default path.

---
Full diff: https://github.com/llvm/llvm-project/pull/211542.diff


1 Files Affected:

- (modified) clang/docs/HIPSupport.md (+9-4) 


``````````diff
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`.
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/211542
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to