[clang] clang/AMDGPU: Forward xnack/sramecc mode to the assembler (PR #212955)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 30 05:11:23 PDT 2026


================
@@ -670,6 +671,22 @@ void amdgpu::getAMDGPUTargetFeatures(const Driver &D,
                    options::OPT_mno_amdgpu_precise_memory_op, false))
     Features.push_back("+precise-memory");
 
+  // When assembling, the xnack/sramecc mode cannot come from a module flag
+  // (there is no module), so forward it to the assembler as a feature.
----------------
jhuber6 wrote:

I figured this would just show up as an LLVM `+xnack` attribute or something.

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


More information about the cfe-commits mailing list