[llvm] eda13c2 - LegacyDivergenceAnalysis.h - reduce DivergenceAnalysis.h include to forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 6 05:30:17 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-06T13:30:00+01:00
New Revision: eda13c2420030cbf9816484e2b7a6cdaaaba8281
URL: https://github.com/llvm/llvm-project/commit/eda13c2420030cbf9816484e2b7a6cdaaaba8281
DIFF: https://github.com/llvm/llvm-project/commit/eda13c2420030cbf9816484e2b7a6cdaaaba8281.diff
LOG: LegacyDivergenceAnalysis.h - reduce DivergenceAnalysis.h include to forward declaration. NFC.
Move implicit include dependencies down to source file.
Added:
Modified:
llvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h b/llvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h
index 0335599a976e..15400f5e07ff 100644
--- a/llvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h
+++ b/llvm/include/llvm/Analysis/LegacyDivergenceAnalysis.h
@@ -16,13 +16,18 @@
#define LLVM_ANALYSIS_LEGACY_DIVERGENCE_ANALYSIS_H
#include "llvm/ADT/DenseSet.h"
-#include "llvm/Analysis/DivergenceAnalysis.h"
#include "llvm/Pass.h"
+#include <memory>
namespace llvm {
-class Value;
class Function;
class GPUDivergenceAnalysis;
+class Module;
+class raw_ostream;
+class TargetTransformInfo;
+class Use;
+class Value;
+
class LegacyDivergenceAnalysis : public FunctionPass {
public:
static char ID;
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
index edd8ea39e0f4..1aa9ced387c0 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
@@ -28,6 +28,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Analysis/LegacyDivergenceAnalysis.h"
+#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/FunctionLoweringInfo.h"
#include "llvm/CodeGen/ISDOpcodes.h"
More information about the llvm-commits
mailing list