From 0a30b0c8909dca8764d994a748bd7d53c68d94f7 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 28 Jul 2026 08:03:04 +0200 Subject: [PATCH] AMDGPU: Declare FeatureDPP with AMDGPUSubtargetFeature (#212408) All other features were defined using the AMDGPUSubtargetFeature subclass of SubtargetFeature, so fix the odd one out. --- llvm/lib/Target/AMDGPU/AMDGPU.td | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.td b/llvm/lib/Target/AMDGPU/AMDGPU.td index b2e0c0df00dc..671b1e588bdb 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPU.td +++ b/llvm/lib/Target/AMDGPU/AMDGPU.td @@ -703,10 +703,9 @@ defm SDWAOutModsVOPC : AMDGPUSubtargetFeature<"sdwa-out-mods-vopc", /*GenPredicate=*/0 >; -def FeatureDPP : SubtargetFeature<"dpp", - "HasDPP", - "true", - "Support DPP (Data Parallel Primitives) extension" +defm DPP : AMDGPUSubtargetFeature<"dpp", + "Support DPP (Data Parallel Primitives) extension", + /*GenPredicate=*/0 >; // DPP8 allows arbitrary cross-lane swizzling within groups of 8 lanes.