[llvm] AMDGPU: Remove "gws" feature from generic targets (PR #148122)
Changpeng Fang via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 00:01:42 PDT 2025
https://github.com/changpeng created https://github.com/llvm/llvm-project/pull/148122
Here "generic targets" means when no target is specified. This is because gfx12+ does not support this feature, and thus it is no longer universally available.
Fixes: SWDEV-541399
>From e47b12eb0b303808ba18c8973d54ccf95b095a5a Mon Sep 17 00:00:00 2001
From: Changpeng Fang <changpeng.fang at amd.com>
Date: Thu, 10 Jul 2025 23:33:09 -0700
Subject: [PATCH] AMDGPU: Remove "gws" feature from generic targets
Here "generic targets" means when no target is specified. This
is bexause gfx12 does not have this festure, and thus it is no longer
universally available.
Fixes: SWDEV-541399
---
llvm/lib/Target/AMDGPU/GCNProcessors.td | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/GCNProcessors.td b/llvm/lib/Target/AMDGPU/GCNProcessors.td
index b5ffa64c3a4b4..217942c7e539c 100644
--- a/llvm/lib/Target/AMDGPU/GCNProcessors.td
+++ b/llvm/lib/Target/AMDGPU/GCNProcessors.td
@@ -9,11 +9,11 @@
// The code produced for "generic" is only useful for tests and cannot
// reasonably be expected to execute on any particular target.
def : ProcessorModel<"generic", NoSchedModel,
- [FeatureGDS, FeatureGWS]
+ [FeatureGDS]
>;
def : ProcessorModel<"generic-hsa", NoSchedModel,
- [FeatureGDS, FeatureGWS, FeatureFlatAddressSpace]
+ [FeatureGDS, FeatureFlatAddressSpace]
>;
//===------------------------------------------------------------===//
More information about the llvm-commits
mailing list