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

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 30 05:15:27 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.
----------------
arsenm wrote:

it's a target-feature, not an attribute. And the point is I'm trying to delete the target feature 

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


More information about the cfe-commits mailing list