PassManager.h - remove unnecessary Function.h/Module.h includes. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 24 Jul 2020 11:40:34 +0000 (12:40 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 24 Jul 2020 11:40:50 +0000 (12:40 +0100)
commit5dd566b7c7b78bd385418c72d63c79895be9ae97
tree18e1c8222c5427d1514a17e7e50b109778deaed5
parentcbb3571b0df5a0948602aa4d2b913b64270143ff
PassManager.h - remove unnecessary Function.h/Module.h includes. NFCI.

PassManager.h is one of the top headers in the ClangBuildAnalyzer frontend worst offenders list.

This exposes a large number of implicit dependencies on various forward declarations/includes in other headers that need addressing.
32 files changed:
llvm/include/llvm/Analysis/DemandedBits.h
llvm/include/llvm/Analysis/DominanceFrontier.h
llvm/include/llvm/Analysis/LazyValueInfo.h
llvm/include/llvm/Analysis/OptimizationRemarkEmitter.h
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/include/llvm/IR/PassManager.h
llvm/include/llvm/Transforms/IPO/HotColdSplitting.h
llvm/include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
llvm/include/llvm/Transforms/Scalar/ConstantHoisting.h
llvm/include/llvm/Transforms/Scalar/Reassociate.h
llvm/include/llvm/Transforms/Utils/Debugify.h
llvm/include/llvm/Transforms/Vectorize/LoopVectorize.h
llvm/lib/Analysis/CallPrinter.cpp
llvm/lib/Analysis/LoopPass.cpp
llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
llvm/lib/CodeGen/AsmPrinter/WinCFGuard.cpp
llvm/lib/CodeGen/CFGuardLongjmp.cpp
llvm/lib/CodeGen/MachineSizeOpts.cpp
llvm/lib/CodeGen/RegAllocBase.cpp
llvm/lib/CodeGen/WinEHPrepare.cpp
llvm/lib/IR/PassManager.cpp
llvm/lib/Linker/IRMover.cpp
llvm/lib/Target/BPF/BTFDebug.cpp
llvm/lib/Target/TargetMachine.cpp
llvm/lib/Transforms/Instrumentation/CGProfile.cpp
llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
llvm/lib/Transforms/Utils/Debugify.cpp
llvm/lib/Transforms/Utils/DemoteRegToStack.cpp
llvm/lib/Transforms/Utils/LowerSwitch.cpp
llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp