[llvm-branch-commits] [clang] [llvm] AMDGPU: Use module flags to control xnack and sramecc (PR #204595)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 18 20:20:59 PDT 2026


================
@@ -871,10 +871,48 @@ consumed by the AMDGPU backend during code generation.
      - Same as above, but for typed buffer instructions (``tbuffer_load`` /
        ``tbuffer_store``).
 
+   * - ``amdgpu.xnack``
+     - ``i32``
+     - Error
+     - Controls XNACK (page fault) replay mode. This is ignored on
+       targets which do not support xnack.
+
+       - absent: **any**. The module can be loaded and executed in a process
+         with XNACK replay either enabled or disabled. Code generation
+         assumes XNACK may be enabled.
----------------
shiltian wrote:

What will the backend actually do if it is absent?

https://github.com/llvm/llvm-project/pull/204595


More information about the llvm-branch-commits mailing list