forked from OSchip/llvm-project
SelectionDAGBuilder.h - remove unnecessary includes. NFCI.
Reduce to forward declarations and move implicit dependencies down to the cpp files.
This commit is contained in:
parent
cd4edf94cd
commit
bee79cdcc6
|
@ -23,6 +23,7 @@
|
||||||
#include "llvm/ADT/StringRef.h"
|
#include "llvm/ADT/StringRef.h"
|
||||||
#include "llvm/ADT/Triple.h"
|
#include "llvm/ADT/Triple.h"
|
||||||
#include "llvm/ADT/Twine.h"
|
#include "llvm/ADT/Twine.h"
|
||||||
|
#include "llvm/Analysis/AliasAnalysis.h"
|
||||||
#include "llvm/Analysis/BlockFrequencyInfo.h"
|
#include "llvm/Analysis/BlockFrequencyInfo.h"
|
||||||
#include "llvm/Analysis/BranchProbabilityInfo.h"
|
#include "llvm/Analysis/BranchProbabilityInfo.h"
|
||||||
#include "llvm/Analysis/ConstantFolding.h"
|
#include "llvm/Analysis/ConstantFolding.h"
|
||||||
|
@ -82,6 +83,7 @@
|
||||||
#include "llvm/IR/Module.h"
|
#include "llvm/IR/Module.h"
|
||||||
#include "llvm/IR/Operator.h"
|
#include "llvm/IR/Operator.h"
|
||||||
#include "llvm/IR/PatternMatch.h"
|
#include "llvm/IR/PatternMatch.h"
|
||||||
|
#include "llvm/IR/Statepoint.h"
|
||||||
#include "llvm/IR/Type.h"
|
#include "llvm/IR/Type.h"
|
||||||
#include "llvm/IR/User.h"
|
#include "llvm/IR/User.h"
|
||||||
#include "llvm/IR/Value.h"
|
#include "llvm/IR/Value.h"
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include "llvm/ADT/DenseMap.h"
|
#include "llvm/ADT/DenseMap.h"
|
||||||
#include "llvm/ADT/MapVector.h"
|
#include "llvm/ADT/MapVector.h"
|
||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
#include "llvm/Analysis/AliasAnalysis.h"
|
|
||||||
#include "llvm/CodeGen/ISDOpcodes.h"
|
#include "llvm/CodeGen/ISDOpcodes.h"
|
||||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||||
#include "llvm/CodeGen/SwitchLoweringUtils.h"
|
#include "llvm/CodeGen/SwitchLoweringUtils.h"
|
||||||
|
@ -26,7 +25,6 @@
|
||||||
#include "llvm/CodeGen/ValueTypes.h"
|
#include "llvm/CodeGen/ValueTypes.h"
|
||||||
#include "llvm/IR/DebugLoc.h"
|
#include "llvm/IR/DebugLoc.h"
|
||||||
#include "llvm/IR/Instruction.h"
|
#include "llvm/IR/Instruction.h"
|
||||||
#include "llvm/IR/Statepoint.h"
|
|
||||||
#include "llvm/Support/BranchProbability.h"
|
#include "llvm/Support/BranchProbability.h"
|
||||||
#include "llvm/Support/CodeGen.h"
|
#include "llvm/Support/CodeGen.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
|
@ -39,6 +37,7 @@
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
class AAResults;
|
||||||
class AllocaInst;
|
class AllocaInst;
|
||||||
class AtomicCmpXchgInst;
|
class AtomicCmpXchgInst;
|
||||||
class AtomicRMWInst;
|
class AtomicRMWInst;
|
||||||
|
@ -63,6 +62,7 @@ class FunctionLoweringInfo;
|
||||||
class GCFunctionInfo;
|
class GCFunctionInfo;
|
||||||
class GCRelocateInst;
|
class GCRelocateInst;
|
||||||
class GCResultInst;
|
class GCResultInst;
|
||||||
|
class GCStatepointInst;
|
||||||
class IndirectBrInst;
|
class IndirectBrInst;
|
||||||
class InvokeInst;
|
class InvokeInst;
|
||||||
class LandingPadInst;
|
class LandingPadInst;
|
||||||
|
@ -388,7 +388,7 @@ public:
|
||||||
|
|
||||||
SelectionDAG &DAG;
|
SelectionDAG &DAG;
|
||||||
const DataLayout *DL = nullptr;
|
const DataLayout *DL = nullptr;
|
||||||
AliasAnalysis *AA = nullptr;
|
AAResults *AA = nullptr;
|
||||||
const TargetLibraryInfo *LibInfo;
|
const TargetLibraryInfo *LibInfo;
|
||||||
|
|
||||||
class SDAGSwitchLowering : public SwitchCG::SwitchLowering {
|
class SDAGSwitchLowering : public SwitchCG::SwitchLowering {
|
||||||
|
@ -442,7 +442,7 @@ public:
|
||||||
SL(std::make_unique<SDAGSwitchLowering>(this, funcinfo)), FuncInfo(funcinfo),
|
SL(std::make_unique<SDAGSwitchLowering>(this, funcinfo)), FuncInfo(funcinfo),
|
||||||
SwiftError(swifterror) {}
|
SwiftError(swifterror) {}
|
||||||
|
|
||||||
void init(GCFunctionInfo *gfi, AliasAnalysis *AA,
|
void init(GCFunctionInfo *gfi, AAResults *AA,
|
||||||
const TargetLibraryInfo *li);
|
const TargetLibraryInfo *li);
|
||||||
|
|
||||||
/// Clear out the current SelectionDAG and the associated state and prepare
|
/// Clear out the current SelectionDAG and the associated state and prepare
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
#include "llvm/IR/Intrinsics.h"
|
#include "llvm/IR/Intrinsics.h"
|
||||||
#include "llvm/IR/IntrinsicsWebAssembly.h"
|
#include "llvm/IR/IntrinsicsWebAssembly.h"
|
||||||
#include "llvm/IR/Metadata.h"
|
#include "llvm/IR/Metadata.h"
|
||||||
|
#include "llvm/IR/Statepoint.h"
|
||||||
#include "llvm/IR/Type.h"
|
#include "llvm/IR/Type.h"
|
||||||
#include "llvm/IR/User.h"
|
#include "llvm/IR/User.h"
|
||||||
#include "llvm/IR/Value.h"
|
#include "llvm/IR/Value.h"
|
||||||
|
|
Loading…
Reference in New Issue