[llvm] [AMDGPU] Remove unused forward declaration of GCNSubtarget (PR #187695)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 20 05:52:39 PDT 2026


https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/187695

None

>From 6659d40929043860aacd21707274bc1feaba2152 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Fri, 20 Mar 2026 12:13:37 +0000
Subject: [PATCH] [AMDGPU] Remove unused forward declaration of GCNSubtarget

---
 llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.h b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.h
index bf7b40b1851da..96bd8f4cf3c13 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.h
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.h
@@ -15,7 +15,6 @@
 namespace llvm {
 
 class Function;
-class GCNSubtarget;
 
 enum class LitModifier { None, Lit, Lit64 };
 



More information about the llvm-commits mailing list