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

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 16 07:32:46 PDT 2026


================
@@ -137,10 +137,8 @@ class AMDGPUTargetStreamer : public MCTargetStreamer {
     return TargetID;
   }
   std::optional<AMDGPU::TargetID> &getTargetID() { return TargetID; }
-  void initializeTargetID(const MCSubtargetInfo &STI, StringRef FeatureString) {
-    assert(TargetID == std::nullopt && "TargetID can only be initialized once");
-    TargetID = AMDGPU::createAMDGPUTargetID(STI, FeatureString);
-  }
+  void initializeTargetID(const MCSubtargetInfo &STI,
+                          bool ApplyFeatureString = false);
----------------
shiltian wrote:

In what cases do we want not to apply feature string?

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


More information about the cfe-commits mailing list