[llvm] 1c2d2c8 - AlignmentFromAssumptions.h - reduce includes to forward declarations. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 7 06:07:58 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-07T13:51:48+01:00
New Revision: 1c2d2c88b4d9f5940f67aaec5490a3f9951f15b3
URL: https://github.com/llvm/llvm-project/commit/1c2d2c88b4d9f5940f67aaec5490a3f9951f15b3
DIFF: https://github.com/llvm/llvm-project/commit/1c2d2c88b4d9f5940f67aaec5490a3f9951f15b3.diff
LOG: AlignmentFromAssumptions.h - reduce includes to forward declarations. NFC.
Added:
Modified:
llvm/include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h b/llvm/include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
index fb1687e1ac5d..be119b8ab855 100644
--- a/llvm/include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
+++ b/llvm/include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
@@ -17,13 +17,15 @@
#ifndef LLVM_TRANSFORMS_SCALAR_ALIGNMENTFROMASSUMPTIONS_H
#define LLVM_TRANSFORMS_SCALAR_ALIGNMENTFROMASSUMPTIONS_H
-#include "llvm/Analysis/ScalarEvolution.h"
-#include "llvm/IR/Function.h"
-#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/PassManager.h"
namespace llvm {
+class AssumptionCache;
+class DominatorTree;
+class ScalarEvolution;
+class SCEV;
+
struct AlignmentFromAssumptionsPass
: public PassInfoMixin<AlignmentFromAssumptionsPass> {
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
diff --git a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
index 6f5963880931..5c008585869c 100644
--- a/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
+++ b/llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
@@ -30,6 +30,7 @@
#include "llvm/IR/Constant.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instruction.h"
+#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
More information about the llvm-commits
mailing list