From: Simon Pilgrim Date: Sun, 26 Apr 2020 11:06:28 +0000 (+0100) Subject: AMDGPU/Utils - cleanup include and forward declarations. NFC. X-Git-Tag: llvmorg-12-init~7802 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43d6f9a87678bde0ba662c6486f2e1a67c28681a;p=platform%2Fupstream%2Fllvm.git AMDGPU/Utils - cleanup include and forward declarations. NFC. Remove unused includes + forward declarations. Reduce unnecessary StringRef.h includes to StringRef forward declaration. --- diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h index 9cca736..635dd7a3 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h @@ -12,7 +12,6 @@ #include "AMDGPU.h" #include "AMDKernelCodeT.h" #include "SIDefines.h" -#include "llvm/ADT/StringRef.h" #include "llvm/IR/CallingConv.h" #include "llvm/MC/MCInstrDesc.h" #include "llvm/Support/AMDHSAKernelDescriptor.h" @@ -26,17 +25,13 @@ namespace llvm { class Argument; -class AMDGPUSubtarget; -class FeatureBitset; class Function; class GCNSubtarget; class GlobalValue; -class MCContext; class MCRegisterClass; class MCRegisterInfo; -class MCSection; class MCSubtargetInfo; -class MachineMemOperand; +class StringRef; class Triple; namespace AMDGPU { diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h index 0f17c15..544ab66 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h @@ -14,16 +14,12 @@ #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUPALMETADATA_H #define LLVM_LIB_TARGET_AMDGPU_AMDGPUPALMETADATA_H -#include "llvm/ADT/StringRef.h" #include "llvm/BinaryFormat/MsgPackDocument.h" -#include namespace llvm { -class AMDGPUTargetStreamer; -class formatted_raw_ostream; -class MCStreamer; class Module; +class StringRef; class AMDGPUPALMetadata { unsigned BlobType = 0;