[AMDGPU] Forward-declare AMDGPUTargetMachine (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 30 Jan 2021 17:53:40 +0000 (09:53 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 30 Jan 2021 17:53:40 +0000 (09:53 -0800)
AMDGPUTargetTransformInfo.h needs AMDGPUTargetMachine but relies on a
forward declaration of AMDGPUTargetMachine in AMDGPU.h.  This patch
adds a forward declaration right in AMDGPUTargetTransformInfo.h.

While we are at it, this patch removes the one in
AMDGPU.h, where it is unnecessary.

llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h

index 677c493..79846b8 100644 (file)
@@ -15,7 +15,6 @@
 
 namespace llvm {
 
-class AMDGPUTargetMachine;
 class FunctionPass;
 class GCNTargetMachine;
 class ImmutablePass;
index b29c941..9eaad39 100644 (file)
@@ -25,6 +25,7 @@
 namespace llvm {
 
 class AMDGPUTargetLowering;
+class AMDGPUTargetMachine;
 class GCNSubtarget;
 class InstCombiner;
 class Loop;