llvm.org GIT mirror llvm / d04a8d4
Use the new script to sort the includes of every file under lib. Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
590 changed file(s) with 2720 addition(s) and 2739 deletion(s). Raw diff Collapse all Expand all
1515 #ifndef LLVM_ANALYSIS_PROFILEDATALOADER_H
1616 #define LLVM_ANALYSIS_PROFILEDATALOADER_H
1717
18 #include "llvm/ADT/ArrayRef.h"
1819 #include "llvm/ADT/DenseMap.h"
1920 #include "llvm/ADT/SmallVector.h"
2021 #include "llvm/Support/Debug.h"
1515 #define LLVM_CODEGEN_PBQP_GRAPH_H
1616
1717 #include "Math.h"
18
18 #include "llvm/ADT/ilist.h"
19 #include "llvm/ADT/ilist_node.h"
1920 #include
2021 #include
21 #include
2222
2323 namespace PBQP {
2424
2828 class LiveIntervals;
2929 class MachineFunction;
3030 class MachineLoopInfo;
31 class TargetRegisterInfo;
3132
3233 /// This class wraps up a PBQP instance representing a register allocation
3334 /// problem, plus the structures necessary to map back from the PBQP solution
1010 #define LLVM_MC_MCWINCOFFOBJECTWRITER_H
1111
1212 namespace llvm {
13 class MCObjectWriter;
14 class raw_ostream;
15
1316 class MCWinCOFFObjectTargetWriter {
1417 const unsigned Machine;
1518
1717 #ifndef TRANSFORMS_UTILS_BYPASSSLOWDIVISION_H
1818 #define TRANSFORMS_UTILS_BYPASSSLOWDIVISION_H
1919
20 #include "llvm/ADT/DenseMap.h"
2021 #include "llvm/Function.h"
2122
2223 namespace llvm {
1414 #define LLVM_TRANSFORMS_UTILS_SSAUPDATER_H
1515
1616 #include "llvm/ADT/StringRef.h"
17 #include "llvm/Support/Compiler.h"
1718
1819 namespace llvm {
1920 class BasicBlock;
1717 namespace llvm {
1818 class BasicBlock;
1919 class BasicBlockPass;
20 class Pass;
2021
2122 //===----------------------------------------------------------------------===//
2223 /// @brief Vectorize configuration.
1919 #define LLVM_C_TARGETMACHINE_H
2020
2121 #include "llvm-c/Core.h"
22 #include "llvm-c/Target.h"
2223
2324 #ifdef __cplusplus
2425 extern "C" {
2727 #include "llvm/Analysis/CaptureTracking.h"
2828 #include "llvm/Analysis/Dominators.h"
2929 #include "llvm/Analysis/ValueTracking.h"
30 #include "llvm/BasicBlock.h"
31 #include "llvm/DataLayout.h"
32 #include "llvm/Function.h"
33 #include "llvm/Instructions.h"
34 #include "llvm/IntrinsicInst.h"
35 #include "llvm/LLVMContext.h"
3036 #include "llvm/Pass.h"
31 #include "llvm/BasicBlock.h"
32 #include "llvm/Function.h"
33 #include "llvm/IntrinsicInst.h"
34 #include "llvm/Instructions.h"
35 #include "llvm/LLVMContext.h"
37 #include "llvm/Target/TargetLibraryInfo.h"
3638 #include "llvm/Type.h"
37 #include "llvm/DataLayout.h"
38 #include "llvm/Target/TargetLibraryInfo.h"
3939 using namespace llvm;
4040
4141 // Register the AliasAnalysis interface, providing a nice name to refer to.
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Pass.h"
1615 #include "llvm/Analysis/AliasAnalysis.h"
1716 #include "llvm/Assembly/Writer.h"
17 #include "llvm/Pass.h"
1818 #include "llvm/Support/CommandLine.h"
1919 #include "llvm/Support/Debug.h"
2020 #include "llvm/Support/ErrorHandling.h"
1616 //
1717 //===----------------------------------------------------------------------===//
1818
19 #include "llvm/Analysis/Passes.h"
20 #include "llvm/ADT/SetVector.h"
21 #include "llvm/Analysis/AliasAnalysis.h"
22 #include "llvm/Assembly/Writer.h"
1923 #include "llvm/Constants.h"
2024 #include "llvm/DerivedTypes.h"
2125 #include "llvm/Function.h"
2226 #include "llvm/Instructions.h"
2327 #include "llvm/Pass.h"
24 #include "llvm/Analysis/Passes.h"
25 #include "llvm/Analysis/AliasAnalysis.h"
26 #include "llvm/Assembly/Writer.h"
28 #include "llvm/Support/CommandLine.h"
2729 #include "llvm/Support/Debug.h"
2830 #include "llvm/Support/InstIterator.h"
29 #include "llvm/Support/CommandLine.h"
3031 #include "llvm/Support/raw_ostream.h"
31 #include "llvm/ADT/SetVector.h"
3232 using namespace llvm;
3333
3434 static cl::opt PrintAll("print-all-alias-modref-info", cl::ReallyHidden);
1616 //===----------------------------------------------------------------------===//
1717
1818 #include "llvm/Analysis/Passes.h"
19 #include "llvm/Analysis/AliasAnalysis.h"
20 #include "llvm/Constants.h"
21 #include "llvm/DerivedTypes.h"
22 #include "llvm/Instructions.h"
1923 #include "llvm/Module.h"
2024 #include "llvm/Pass.h"
21 #include "llvm/Instructions.h"
22 #include "llvm/Constants.h"
23 #include "llvm/DerivedTypes.h"
24 #include "llvm/Analysis/AliasAnalysis.h"
2525 #include
2626 using namespace llvm;
2727
1212
1313 #include "llvm/Analysis/AliasSetTracker.h"
1414 #include "llvm/Analysis/AliasAnalysis.h"
15 #include "llvm/Assembly/Writer.h"
16 #include "llvm/DataLayout.h"
1517 #include "llvm/Instructions.h"
1618 #include "llvm/IntrinsicInst.h"
1719 #include "llvm/LLVMContext.h"
1820 #include "llvm/Pass.h"
19 #include "llvm/Type.h"
20 #include "llvm/DataLayout.h"
21 #include "llvm/Assembly/Writer.h"
2221 #include "llvm/Support/Debug.h"
2322 #include "llvm/Support/ErrorHandling.h"
2423 #include "llvm/Support/InstIterator.h"
2524 #include "llvm/Support/raw_ostream.h"
25 #include "llvm/Type.h"
2626 using namespace llvm;
2727
2828 /// mergeSetIn - Merge the specified alias set into this alias set.
88
99 #include "llvm-c/Analysis.h"
1010 #include "llvm-c/Initialization.h"
11 #include "llvm/Analysis/Verifier.h"
1112 #include "llvm/InitializePasses.h"
12 #include "llvm/Analysis/Verifier.h"
1313 #include
1414
1515 using namespace llvm;
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #include "llvm/Analysis/Passes.h"
16 #include "llvm/ADT/SmallPtrSet.h"
17 #include "llvm/ADT/SmallVector.h"
1518 #include "llvm/Analysis/AliasAnalysis.h"
16 #include "llvm/Analysis/Passes.h"
19 #include "llvm/Analysis/CaptureTracking.h"
20 #include "llvm/Analysis/InstructionSimplify.h"
21 #include "llvm/Analysis/MemoryBuiltins.h"
22 #include "llvm/Analysis/ValueTracking.h"
1723 #include "llvm/Constants.h"
24 #include "llvm/DataLayout.h"
1825 #include "llvm/DerivedTypes.h"
1926 #include "llvm/Function.h"
2027 #include "llvm/GlobalAlias.h"
2431 #include "llvm/LLVMContext.h"
2532 #include "llvm/Operator.h"
2633 #include "llvm/Pass.h"
27 #include "llvm/Analysis/CaptureTracking.h"
28 #include "llvm/Analysis/MemoryBuiltins.h"
29 #include "llvm/Analysis/InstructionSimplify.h"
30 #include "llvm/Analysis/ValueTracking.h"
31 #include "llvm/DataLayout.h"
32 #include "llvm/Target/TargetLibraryInfo.h"
33 #include "llvm/ADT/SmallPtrSet.h"
34 #include "llvm/ADT/SmallVector.h"
3534 #include "llvm/Support/ErrorHandling.h"
3635 #include "llvm/Support/GetElementPtrTypeIterator.h"
36 #include "llvm/Target/TargetLibraryInfo.h"
3737 #include
3838 using namespace llvm;
3939
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/InitializePasses.h"
13 #include "llvm/Analysis/BlockFrequencyInfo.h"
1414 #include "llvm/Analysis/BlockFrequencyImpl.h"
15 #include "llvm/Analysis/BlockFrequencyInfo.h"
15 #include "llvm/Analysis/BranchProbabilityInfo.h"
1616 #include "llvm/Analysis/LoopInfo.h"
1717 #include "llvm/Analysis/Passes.h"
18 #include "llvm/Analysis/BranchProbabilityInfo.h"
18 #include "llvm/InitializePasses.h"
1919
2020 using namespace llvm;
2121
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Analysis/BranchProbabilityInfo.h"
14 #include "llvm/ADT/PostOrderIterator.h"
15 #include "llvm/Analysis/LoopInfo.h"
1316 #include "llvm/Constants.h"
1417 #include "llvm/Function.h"
1518 #include "llvm/Instructions.h"
1619 #include "llvm/LLVMContext.h"
1720 #include "llvm/Metadata.h"
18 #include "llvm/Analysis/BranchProbabilityInfo.h"
19 #include "llvm/Analysis/LoopInfo.h"
20 #include "llvm/ADT/PostOrderIterator.h"
2121 #include "llvm/Support/CFG.h"
2222 #include "llvm/Support/Debug.h"
2323
1717 //===----------------------------------------------------------------------===//
1818
1919 #include "llvm/Analysis/CFGPrinter.h"
20
2120 #include "llvm/Pass.h"
2221 using namespace llvm;
2322
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Analysis/CodeMetrics.h"
14 #include "llvm/DataLayout.h"
1415 #include "llvm/Function.h"
16 #include "llvm/IntrinsicInst.h"
1517 #include "llvm/Support/CallSite.h"
16 #include "llvm/IntrinsicInst.h"
17 #include "llvm/DataLayout.h"
1818
1919 using namespace llvm;
2020
1616 //===----------------------------------------------------------------------===//
1717
1818 #include "llvm/Analysis/ConstantFolding.h"
19 #include "llvm/ADT/SmallVector.h"
20 #include "llvm/ADT/StringMap.h"
21 #include "llvm/Analysis/ValueTracking.h"
1922 #include "llvm/Constants.h"
23 #include "llvm/DataLayout.h"
2024 #include "llvm/DerivedTypes.h"
2125 #include "llvm/Function.h"
2226 #include "llvm/GlobalVariable.h"
2327 #include "llvm/Instructions.h"
2428 #include "llvm/Intrinsics.h"
2529 #include "llvm/Operator.h"
26 #include "llvm/Analysis/ValueTracking.h"
27 #include "llvm/DataLayout.h"
28 #include "llvm/Target/TargetLibraryInfo.h"
29 #include "llvm/ADT/SmallVector.h"
30 #include "llvm/ADT/StringMap.h"
3130 #include "llvm/Support/ErrorHandling.h"
31 #include "llvm/Support/FEnv.h"
3232 #include "llvm/Support/GetElementPtrTypeIterator.h"
3333 #include "llvm/Support/MathExtras.h"
34 #include "llvm/Support/FEnv.h"
34 #include "llvm/Target/TargetLibraryInfo.h"
3535 #include
3636 #include
3737 using namespace llvm;
1919 #include "llvm/Function.h"
2020 #include "llvm/Instructions.h"
2121 #include "llvm/Pass.h"
22 #include "llvm/Support/Debug.h"
23 #include "llvm/Support/raw_ostream.h"
2224 #include "llvm/TargetTransformInfo.h"
2325 #include "llvm/Value.h"
24 #include "llvm/Support/Debug.h"
25 #include "llvm/Support/raw_ostream.h"
2626 using namespace llvm;
2727
2828 namespace {
1515 //
1616 //===----------------------------------------------------------------------===//
1717
18 #include "llvm/Analysis/Passes.h"
19 #include "llvm/Assembly/Writer.h"
1820 #include "llvm/DebugInfo.h"
1921 #include "llvm/Function.h"
2022 #include "llvm/IntrinsicInst.h"
2123 #include "llvm/Metadata.h"
2224 #include "llvm/Module.h"
2325 #include "llvm/Pass.h"
24 #include "llvm/Analysis/Passes.h"
25 #include "llvm/Assembly/Writer.h"
2626 #include "llvm/Support/CFG.h"
2727 #include "llvm/Support/CommandLine.h"
2828 #include "llvm/Support/raw_ostream.h"
5454
5555 #include "llvm/Analysis/DependenceAnalysis.h"
5656 #include "llvm/ADT/Statistic.h"
57 #include "llvm/Operator.h"
5857 #include "llvm/Analysis/AliasAnalysis.h"
5958 #include "llvm/Analysis/LoopInfo.h"
60 #include "llvm/Analysis/ValueTracking.h"
6159 #include "llvm/Analysis/ScalarEvolution.h"
6260 #include "llvm/Analysis/ScalarEvolutionExpressions.h"
61 #include "llvm/Analysis/ValueTracking.h"
62 #include "llvm/Operator.h"
6363 #include "llvm/Support/Debug.h"
6464 #include "llvm/Support/ErrorHandling.h"
6565 #include "llvm/Support/InstIterator.h"
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/Analysis/DominanceFrontier.h"
10 #include "llvm/Support/Debug.h"
1110 #include "llvm/ADT/SmallPtrSet.h"
1211 #include "llvm/Assembly/Writer.h"
12 #include "llvm/Support/Debug.h"
1313 #include "llvm/Support/raw_ostream.h"
1414 using namespace llvm;
1515
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/Analysis/CallGraph.h"
15 #include "llvm/Module.h"
1615 #include "llvm/Instructions.h"
1716 #include "llvm/IntrinsicInst.h"
17 #include "llvm/Module.h"
1818 #include "llvm/Support/CallSite.h"
1919 #include "llvm/Support/Debug.h"
2020 #include "llvm/Support/raw_ostream.h"
1616
1717 #define DEBUG_TYPE "cgscc-passmgr"
1818 #include "llvm/CallGraphSCCPass.h"
19 #include "llvm/IntrinsicInst.h"
20 #include "llvm/Function.h"
21 #include "llvm/PassManagers.h"
22 #include "llvm/Analysis/CallGraph.h"
2319 #include "llvm/ADT/SCCIterator.h"
2420 #include "llvm/ADT/Statistic.h"
21 #include "llvm/Analysis/CallGraph.h"
22 #include "llvm/Function.h"
23 #include "llvm/IntrinsicInst.h"
24 #include "llvm/PassManagers.h"
2525 #include "llvm/Support/CommandLine.h"
2626 #include "llvm/Support/Debug.h"
2727 #include "llvm/Support/Timer.h"
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/Analysis/FindUsedTypes.h"
16 #include "llvm/Assembly/Writer.h"
1617 #include "llvm/Constants.h"
1718 #include "llvm/DerivedTypes.h"
1819 #include "llvm/Module.h"
19 #include "llvm/Assembly/Writer.h"
2020 #include "llvm/Support/InstIterator.h"
2121 #include "llvm/Support/raw_ostream.h"
2222 using namespace llvm;
1515
1616 #define DEBUG_TYPE "globalsmodref-aa"
1717 #include "llvm/Analysis/Passes.h"
18 #include "llvm/Module.h"
19 #include "llvm/Pass.h"
20 #include "llvm/Instructions.h"
21 #include "llvm/Constants.h"
22 #include "llvm/DerivedTypes.h"
23 #include "llvm/IntrinsicInst.h"
18 #include "llvm/ADT/SCCIterator.h"
19 #include "llvm/ADT/Statistic.h"
2420 #include "llvm/Analysis/AliasAnalysis.h"
2521 #include "llvm/Analysis/CallGraph.h"
2622 #include "llvm/Analysis/MemoryBuiltins.h"
2723 #include "llvm/Analysis/ValueTracking.h"
24 #include "llvm/Constants.h"
25 #include "llvm/DerivedTypes.h"
26 #include "llvm/Instructions.h"
27 #include "llvm/IntrinsicInst.h"
28 #include "llvm/Module.h"
29 #include "llvm/Pass.h"
2830 #include "llvm/Support/CommandLine.h"
2931 #include "llvm/Support/InstIterator.h"
30 #include "llvm/ADT/Statistic.h"
31 #include "llvm/ADT/SCCIterator.h"
3232 #include
3333 using namespace llvm;
3434
1313
1414 #define DEBUG_TYPE "iv-users"
1515 #include "llvm/Analysis/IVUsers.h"
16 #include "llvm/Constants.h"
17 #include "llvm/Instructions.h"
18 #include "llvm/Type.h"
19 #include "llvm/DerivedTypes.h"
16 #include "llvm/ADT/STLExtras.h"
2017 #include "llvm/Analysis/Dominators.h"
2118 #include "llvm/Analysis/LoopPass.h"
2219 #include "llvm/Analysis/ScalarEvolutionExpressions.h"
2320 #include "llvm/Analysis/ValueTracking.h"
21 #include "llvm/Assembly/Writer.h"
22 #include "llvm/Constants.h"
2423 #include "llvm/DataLayout.h"
25 #include "llvm/Assembly/Writer.h"
26 #include "llvm/ADT/STLExtras.h"
24 #include "llvm/DerivedTypes.h"
25 #include "llvm/Instructions.h"
2726 #include "llvm/Support/Debug.h"
2827 #include "llvm/Support/raw_ostream.h"
28 #include "llvm/Type.h"
2929 #include
3030 using namespace llvm;
3131
1212
1313 #define DEBUG_TYPE "inline-cost"
1414 #include "llvm/Analysis/InlineCost.h"
15 #include "llvm/ADT/STLExtras.h"
16 #include "llvm/ADT/SetVector.h"
17 #include "llvm/ADT/SmallPtrSet.h"
18 #include "llvm/ADT/SmallVector.h"
19 #include "llvm/ADT/Statistic.h"
1520 #include "llvm/Analysis/ConstantFolding.h"
1621 #include "llvm/Analysis/InstructionSimplify.h"
22 #include "llvm/CallingConv.h"
23 #include "llvm/DataLayout.h"
24 #include "llvm/GlobalAlias.h"
25 #include "llvm/InstVisitor.h"
26 #include "llvm/IntrinsicInst.h"
27 #include "llvm/Operator.h"
1728 #include "llvm/Support/CallSite.h"
1829 #include "llvm/Support/Debug.h"
1930 #include "llvm/Support/GetElementPtrTypeIterator.h"
2031 #include "llvm/Support/raw_ostream.h"
21 #include "llvm/CallingConv.h"
22 #include "llvm/InstVisitor.h"
23 #include "llvm/IntrinsicInst.h"
24 #include "llvm/Operator.h"
25 #include "llvm/GlobalAlias.h"
26 #include "llvm/DataLayout.h"
27 #include "llvm/ADT/STLExtras.h"
28 #include "llvm/ADT/SetVector.h"
29 #include "llvm/ADT/SmallVector.h"
30 #include "llvm/ADT/SmallPtrSet.h"
31 #include "llvm/ADT/Statistic.h"
3232
3333 using namespace llvm;
3434
1212
1313 #define DEBUG_TYPE "instcount"
1414 #include "llvm/Analysis/Passes.h"
15 #include "llvm/ADT/Statistic.h"
16 #include "llvm/Function.h"
1517 #include "llvm/InstVisitor.h"
1618 #include "llvm/Pass.h"
17 #include "llvm/Function.h"
1819 #include "llvm/Support/Debug.h"
1920 #include "llvm/Support/ErrorHandling.h"
2021 #include "llvm/Support/raw_ostream.h"
21 #include "llvm/ADT/Statistic.h"
2222 using namespace llvm;
2323
2424 STATISTIC(TotalInsts , "Number of instructions (of all types)");
1717 //===----------------------------------------------------------------------===//
1818
1919 #define DEBUG_TYPE "instsimplify"
20 #include "llvm/GlobalAlias.h"
21 #include "llvm/Operator.h"
20 #include "llvm/Analysis/InstructionSimplify.h"
21 #include "llvm/ADT/SetVector.h"
2222 #include "llvm/ADT/Statistic.h"
23 #include "llvm/ADT/SetVector.h"
24 #include "llvm/Analysis/InstructionSimplify.h"
2523 #include "llvm/Analysis/AliasAnalysis.h"
2624 #include "llvm/Analysis/ConstantFolding.h"
2725 #include "llvm/Analysis/Dominators.h"
2826 #include "llvm/Analysis/ValueTracking.h"
27 #include "llvm/DataLayout.h"
28 #include "llvm/GlobalAlias.h"
29 #include "llvm/Operator.h"
2930 #include "llvm/Support/ConstantRange.h"
3031 #include "llvm/Support/GetElementPtrTypeIterator.h"
3132 #include "llvm/Support/PatternMatch.h"
3233 #include "llvm/Support/ValueHandle.h"
33 #include "llvm/DataLayout.h"
3434 using namespace llvm;
3535 using namespace llvm::PatternMatch;
3636
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "lazy-value-info"
15 #include "llvm/Analysis/LazyValueInfo.h"
16 #include "llvm/ADT/DenseSet.h"
17 #include "llvm/ADT/STLExtras.h"
1518 #include "llvm/Analysis/AliasAnalysis.h"
16 #include "llvm/Analysis/LazyValueInfo.h"
19 #include "llvm/Analysis/ConstantFolding.h"
1720 #include "llvm/Analysis/ValueTracking.h"
1821 #include "llvm/Constants.h"
22 #include "llvm/DataLayout.h"
1923 #include "llvm/Instructions.h"
2024 #include "llvm/IntrinsicInst.h"
21 #include "llvm/Analysis/ConstantFolding.h"
22 #include "llvm/DataLayout.h"
23 #include "llvm/Target/TargetLibraryInfo.h"
2425 #include "llvm/Support/CFG.h"
2526 #include "llvm/Support/ConstantRange.h"
2627 #include "llvm/Support/Debug.h"
2728 #include "llvm/Support/PatternMatch.h"
29 #include "llvm/Support/ValueHandle.h"
2830 #include "llvm/Support/raw_ostream.h"
29 #include "llvm/Support/ValueHandle.h"
30 #include "llvm/ADT/DenseSet.h"
31 #include "llvm/ADT/STLExtras.h"
31 #include "llvm/Target/TargetLibraryInfo.h"
3232 #include
3333 #include
3434 using namespace llvm;
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Analysis/LibCallAliasAnalysis.h"
14 #include "llvm/Analysis/LibCallSemantics.h"
1415 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Analysis/LibCallSemantics.h"
1616 #include "llvm/Function.h"
1717 #include "llvm/Pass.h"
1818 using namespace llvm;
3333 //
3434 //===----------------------------------------------------------------------===//
3535
36 #include "llvm/Analysis/Passes.h"
36 #include "llvm/Analysis/Lint.h"
37 #include "llvm/ADT/STLExtras.h"
3738 #include "llvm/Analysis/AliasAnalysis.h"
38 #include "llvm/Analysis/InstructionSimplify.h"
3939 #include "llvm/Analysis/ConstantFolding.h"
4040 #include "llvm/Analysis/Dominators.h"
41 #include "llvm/Analysis/Lint.h"
41 #include "llvm/Analysis/InstructionSimplify.h"
4242 #include "llvm/Analysis/Loads.h"
43 #include "llvm/Analysis/Passes.h"
4344 #include "llvm/Analysis/ValueTracking.h"
4445 #include "llvm/Assembly/Writer.h"
4546 #include "llvm/DataLayout.h"
46 #include "llvm/Target/TargetLibraryInfo.h"
47 #include "llvm/Function.h"
48 #include "llvm/InstVisitor.h"
49 #include "llvm/IntrinsicInst.h"
4750 #include "llvm/Pass.h"
4851 #include "llvm/PassManager.h"
49 #include "llvm/InstVisitor.h"
50 #include "llvm/IntrinsicInst.h"
51 #include "llvm/Function.h"
5252 #include "llvm/Support/CallSite.h"
5353 #include "llvm/Support/Debug.h"
5454 #include "llvm/Support/raw_ostream.h"
55 #include "llvm/ADT/STLExtras.h"
55 #include "llvm/Target/TargetLibraryInfo.h"
5656 using namespace llvm;
5757
5858 namespace {
1414 //===----------------------------------------------------------------------===//
1515
1616 #include "llvm/Analysis/LoopInfo.h"
17 #include "llvm/Constants.h"
18 #include "llvm/Instructions.h"
17 #include "llvm/ADT/DepthFirstIterator.h"
18 #include "llvm/ADT/SmallPtrSet.h"
1919 #include "llvm/Analysis/Dominators.h"
2020 #include "llvm/Analysis/LoopInfoImpl.h"
2121 #include "llvm/Analysis/LoopIterator.h"
2222 #include "llvm/Analysis/ValueTracking.h"
2323 #include "llvm/Assembly/Writer.h"
24 #include "llvm/Constants.h"
25 #include "llvm/Instructions.h"
2426 #include "llvm/Support/CFG.h"
2527 #include "llvm/Support/CommandLine.h"
2628 #include "llvm/Support/Debug.h"
27 #include "llvm/ADT/DepthFirstIterator.h"
28 #include "llvm/ADT/SmallPtrSet.h"
2929 #include
3030 using namespace llvm;
3131
99 //
1010 //===----------------------------------------------------------------------===//
1111
12 #include "llvm/Analysis/Passes.h"
13 #include "llvm/ADT/SetVector.h"
1214 #include "llvm/Analysis/MemoryDependenceAnalysis.h"
15 #include "llvm/Assembly/Writer.h"
1316 #include "llvm/LLVMContext.h"
14 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Assembly/Writer.h"
1617 #include "llvm/Support/CallSite.h"
18 #include "llvm/Support/ErrorHandling.h"
1719 #include "llvm/Support/InstIterator.h"
18 #include "llvm/Support/ErrorHandling.h"
1920 #include "llvm/Support/raw_ostream.h"
20 #include "llvm/ADT/SetVector.h"
2121 using namespace llvm;
2222
2323 namespace {
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "memory-builtins"
15 #include "llvm/Analysis/MemoryBuiltins.h"
16 #include "llvm/ADT/STLExtras.h"
1517 #include "llvm/ADT/Statistic.h"
16 #include "llvm/ADT/STLExtras.h"
17 #include "llvm/Analysis/MemoryBuiltins.h"
18 #include "llvm/Analysis/ValueTracking.h"
19 #include "llvm/DataLayout.h"
1820 #include "llvm/GlobalVariable.h"
1921 #include "llvm/Instructions.h"
2022 #include "llvm/Intrinsics.h"
2123 #include "llvm/Metadata.h"
2224 #include "llvm/Module.h"
23 #include "llvm/Analysis/ValueTracking.h"
2425 #include "llvm/Support/Debug.h"
2526 #include "llvm/Support/MathExtras.h"
2627 #include "llvm/Support/raw_ostream.h"
27 #include "llvm/DataLayout.h"
2828 #include "llvm/Target/TargetLibraryInfo.h"
2929 #include "llvm/Transforms/Utils/Local.h"
3030 using namespace llvm;
1515
1616 #define DEBUG_TYPE "memdep"
1717 #include "llvm/Analysis/MemoryDependenceAnalysis.h"
18 #include "llvm/Instructions.h"
19 #include "llvm/IntrinsicInst.h"
20 #include "llvm/Function.h"
21 #include "llvm/LLVMContext.h"
18 #include "llvm/ADT/STLExtras.h"
19 #include "llvm/ADT/Statistic.h"
2220 #include "llvm/Analysis/AliasAnalysis.h"
2321 #include "llvm/Analysis/Dominators.h"
2422 #include "llvm/Analysis/InstructionSimplify.h"
2523 #include "llvm/Analysis/MemoryBuiltins.h"
2624 #include "llvm/Analysis/PHITransAddr.h"
2725 #include "llvm/Analysis/ValueTracking.h"
28 #include "llvm/ADT/Statistic.h"
29 #include "llvm/ADT/STLExtras.h"
26 #include "llvm/DataLayout.h"
27 #include "llvm/Function.h"
28 #include "llvm/Instructions.h"
29 #include "llvm/IntrinsicInst.h"
30 #include "llvm/LLVMContext.h"
31 #include "llvm/Support/Debug.h"
3032 #include "llvm/Support/PredIteratorCache.h"
31 #include "llvm/Support/Debug.h"
32 #include "llvm/DataLayout.h"
3333 using namespace llvm;
3434
3535 STATISTIC(NumCacheNonLocal, "Number of fully cached non-local responses");
1515 //===----------------------------------------------------------------------===//
1616
1717 #include "llvm/Analysis/Passes.h"
18 #include "llvm/ADT/Statistic.h"
1819 #include "llvm/Assembly/Writer.h"
1920 #include "llvm/DebugInfo.h"
2021 #include "llvm/Function.h"
2122 #include "llvm/Pass.h"
2223 #include "llvm/Support/ErrorHandling.h"
2324 #include "llvm/Support/raw_ostream.h"
24 #include "llvm/ADT/Statistic.h"
2525 using namespace llvm;
2626
2727 namespace {
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "llvm/Analysis/Passes.h"
1415 #include "llvm/Analysis/AliasAnalysis.h"
15 #include "llvm/Analysis/Passes.h"
16 #include "llvm/DataLayout.h"
1617 #include "llvm/Pass.h"
17 #include "llvm/DataLayout.h"
1818 using namespace llvm;
1919
2020 namespace {
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Analysis/PHITransAddr.h"
14 #include "llvm/Analysis/Dominators.h"
15 #include "llvm/Analysis/InstructionSimplify.h"
1416 #include "llvm/Analysis/ValueTracking.h"
1517 #include "llvm/Constants.h"
1618 #include "llvm/Instructions.h"
17 #include "llvm/Analysis/Dominators.h"
18 #include "llvm/Analysis/InstructionSimplify.h"
1919 #include "llvm/Support/Debug.h"
2020 #include "llvm/Support/ErrorHandling.h"
2121 #include "llvm/Support/raw_ostream.h"
3030 #include "llvm/Instructions.h"
3131 #include "llvm/Module.h"
3232 #include "llvm/Pass.h"
33 #include "llvm/TypeBuilder.h"
3433 #include "llvm/Support/CFG.h"
3534 #include "llvm/Support/CommandLine.h"
3635 #include "llvm/Support/Compiler.h"
3736 #include "llvm/Support/Debug.h"
3837 #include "llvm/Support/raw_ostream.h"
39
38 #include "llvm/TypeBuilder.h"
4039 #include
40 #include
4141 #include
4242 #include
4343 #include
44 #include
4544
4645 using namespace llvm;
4746
1212 //===----------------------------------------------------------------------===//
1313 #define DEBUG_TYPE "path-profile-info"
1414
15 #include "llvm/Analysis/PathProfileInfo.h"
16 #include "llvm/Analysis/Passes.h"
17 #include "llvm/Analysis/ProfileInfoTypes.h"
1518 #include "llvm/Module.h"
1619 #include "llvm/Pass.h"
17 #include "llvm/Analysis/Passes.h"
18 #include "llvm/Analysis/ProfileInfoTypes.h"
19 #include "llvm/Analysis/PathProfileInfo.h"
2020 #include "llvm/Support/CommandLine.h"
2121 #include "llvm/Support/Debug.h"
2222 #include "llvm/Support/raw_ostream.h"
23
2423 #include
2524
2625 using namespace llvm;
1212 //===----------------------------------------------------------------------===//
1313 #define DEBUG_TYPE "path-profile-verifier"
1414
15 #include "llvm/Analysis/Passes.h"
16 #include "llvm/Analysis/PathProfileInfo.h"
17 #include "llvm/Analysis/ProfileInfoTypes.h"
1518 #include "llvm/Module.h"
1619 #include "llvm/Pass.h"
17 #include "llvm/Analysis/Passes.h"
18 #include "llvm/Analysis/ProfileInfoTypes.h"
19 #include "llvm/Analysis/PathProfileInfo.h"
20 #include "llvm/Support/CommandLine.h"
2021 #include "llvm/Support/Debug.h"
21 #include "llvm/Support/CommandLine.h"
2222 #include "llvm/Support/raw_ostream.h"
23
2423 #include
2524
2625 using namespace llvm;
1313 #define DEBUG_TYPE "postdomtree"
1414
1515 #include "llvm/Analysis/PostDominators.h"
16 #include "llvm/ADT/DepthFirstIterator.h"
17 #include "llvm/ADT/SetOperations.h"
18 #include "llvm/Analysis/DominatorInternals.h"
19 #include "llvm/Assembly/Writer.h"
1620 #include "llvm/Instructions.h"
1721 #include "llvm/Support/CFG.h"
1822 #include "llvm/Support/Debug.h"
19 #include "llvm/ADT/DepthFirstIterator.h"
20 #include "llvm/ADT/SetOperations.h"
21 #include "llvm/Assembly/Writer.h"
22 #include "llvm/Analysis/DominatorInternals.h"
2323 using namespace llvm;
2424
2525 //===----------------------------------------------------------------------===//
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "llvm/Analysis/ProfileDataLoader.h"
1415 #include "llvm/ADT/ArrayRef.h"
1516 #include "llvm/ADT/OwningPtr.h"
17 #include "llvm/Analysis/ProfileDataTypes.h"
18 #include "llvm/InstrTypes.h"
1619 #include "llvm/Module.h"
17 #include "llvm/InstrTypes.h"
18 #include "llvm/Analysis/ProfileDataLoader.h"
19 #include "llvm/Analysis/ProfileDataTypes.h"
2020 #include "llvm/Support/raw_ostream.h"
2121 #include "llvm/Support/system_error.h"
2222 #include
1414 //
1515 //===----------------------------------------------------------------------===//
1616 #define DEBUG_TYPE "profile-metadata-loader"
17 #include "llvm/Analysis/Passes.h"
1718 #include "llvm/ADT/ArrayRef.h"
19 #include "llvm/ADT/Statistic.h"
20 #include "llvm/Analysis/ProfileDataLoader.h"
1821 #include "llvm/BasicBlock.h"
1922 #include "llvm/InstrTypes.h"
20 #include "llvm/Module.h"
2123 #include "llvm/LLVMContext.h"
2224 #include "llvm/MDBuilder.h"
2325 #include "llvm/Metadata.h"
26 #include "llvm/Module.h"
2427 #include "llvm/Pass.h"
25 #include "llvm/Analysis/Passes.h"
26 #include "llvm/Analysis/ProfileDataLoader.h"
28 #include "llvm/Support/CFG.h"
2729 #include "llvm/Support/CommandLine.h"
28 #include "llvm/Support/CFG.h"
2930 #include "llvm/Support/Debug.h"
31 #include "llvm/Support/Format.h"
3032 #include "llvm/Support/raw_ostream.h"
31 #include "llvm/Support/Format.h"
32 #include "llvm/ADT/Statistic.h"
3333 using namespace llvm;
3434
3535 STATISTIC(NumEdgesRead, "The # of edges read.");
1111 //
1212 //===----------------------------------------------------------------------===//
1313 #define DEBUG_TYPE "profile-estimator"
14 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Analysis/LoopInfo.h"
16 #include "llvm/Analysis/ProfileInfo.h"
1417 #include "llvm/Pass.h"
15 #include "llvm/Analysis/Passes.h"
16 #include "llvm/Analysis/ProfileInfo.h"
17 #include "llvm/Analysis/LoopInfo.h"
1818 #include "llvm/Support/CommandLine.h"
1919 #include "llvm/Support/Debug.h"
20 #include "llvm/Support/Format.h"
2021 #include "llvm/Support/raw_ostream.h"
21 #include "llvm/Support/Format.h"
2222 using namespace llvm;
2323
2424 static cl::opt
1111 //
1212 //===----------------------------------------------------------------------===//
1313 #define DEBUG_TYPE "profile-info"
14 #include "llvm/Analysis/ProfileInfo.h"
15 #include "llvm/ADT/SmallSet.h"
1416 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Analysis/ProfileInfo.h"
1617 #include "llvm/CodeGen/MachineBasicBlock.h"
1718 #include "llvm/CodeGen/MachineFunction.h"
1819 #include "llvm/Pass.h"
1920 #include "llvm/Support/CFG.h"
20 #include "llvm/ADT/SmallSet.h"
21 #include
22 #include
2123 #include
22 #include
23 #include
2424 using namespace llvm;
2525
2626 namespace llvm {
1313
1414 #include "llvm/Analysis/ProfileInfoLoader.h"
1515 #include "llvm/Analysis/ProfileInfoTypes.h"
16 #include "llvm/InstrTypes.h"
1617 #include "llvm/Module.h"
17 #include "llvm/InstrTypes.h"
1818 #include "llvm/Support/raw_ostream.h"
1919 #include
2020 #include
1111 //
1212 //===----------------------------------------------------------------------===//
1313 #define DEBUG_TYPE "profile-loader"
14 #include "llvm/Analysis/Passes.h"
15 #include "llvm/ADT/SmallSet.h"
16 #include "llvm/ADT/Statistic.h"
17 #include "llvm/Analysis/ProfileInfo.h"
18 #include "llvm/Analysis/ProfileInfoLoader.h"
1419 #include "llvm/BasicBlock.h"
1520 #include "llvm/InstrTypes.h"
1621 #include "llvm/Module.h"
1722 #include "llvm/Pass.h"
18 #include "llvm/Analysis/Passes.h"
19 #include "llvm/Analysis/ProfileInfo.h"
20 #include "llvm/Analysis/ProfileInfoLoader.h"
23 #include "llvm/Support/CFG.h"
2124 #include "llvm/Support/CommandLine.h"
22 #include "llvm/Support/CFG.h"
2325 #include "llvm/Support/Debug.h"
26 #include "llvm/Support/Format.h"
2427 #include "llvm/Support/raw_ostream.h"
25 #include "llvm/Support/Format.h"
26 #include "llvm/ADT/Statistic.h"
27 #include "llvm/ADT/SmallSet.h"
2828 #include
2929 using namespace llvm;
3030
1111 //
1212 //===----------------------------------------------------------------------===//
1313 #define DEBUG_TYPE "profile-verifier"
14 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Analysis/ProfileInfo.h"
1416 #include "llvm/Instructions.h"
1517 #include "llvm/Module.h"
1618 #include "llvm/Pass.h"
17 #include "llvm/Analysis/ProfileInfo.h"
19 #include "llvm/Support/CFG.h"
20 #include "llvm/Support/CallSite.h"
1821 #include "llvm/Support/CommandLine.h"
19 #include "llvm/Support/CallSite.h"
20 #include "llvm/Support/CFG.h"
22 #include "llvm/Support/Debug.h"
23 #include "llvm/Support/Format.h"
2124 #include "llvm/Support/InstIterator.h"
2225 #include "llvm/Support/raw_ostream.h"
23 #include "llvm/Support/Format.h"
24 #include "llvm/Support/Debug.h"
2526 #include
2627 using namespace llvm;
2728
99 //===----------------------------------------------------------------------===//
1010
1111 #include "llvm/Analysis/RegionInfo.h"
12 #include "llvm/Analysis/RegionIterator.h"
13
1412 #include "llvm/ADT/PostOrderIterator.h"
1513 #include "llvm/ADT/Statistic.h"
14 #include "llvm/Analysis/LoopInfo.h"
15 #include "llvm/Analysis/RegionIterator.h"
16 #include "llvm/Assembly/Writer.h"
1617 #include "llvm/Support/CommandLine.h"
1718 #include "llvm/Support/ErrorHandling.h"
18 #include "llvm/Analysis/LoopInfo.h"
19 #include "llvm/Assembly/Writer.h"
2019
2120 #define DEBUG_TYPE "region"
2221 #include "llvm/Support/Debug.h"
88 // Print out the region tree of a function using dotty/graphviz.
99 //===----------------------------------------------------------------------===//
1010
11 #include "llvm/Analysis/Passes.h"
12 #include "llvm/ADT/DepthFirstIterator.h"
13 #include "llvm/ADT/PostOrderIterator.h"
14 #include "llvm/ADT/Statistic.h"
15 #include "llvm/Analysis/DOTGraphTraitsPass.h"
1116 #include "llvm/Analysis/RegionInfo.h"
1217 #include "llvm/Analysis/RegionIterator.h"
1318 #include "llvm/Analysis/RegionPrinter.h"
14 #include "llvm/Analysis/Passes.h"
15 #include "llvm/Analysis/DOTGraphTraitsPass.h"
16 #include "llvm/ADT/Statistic.h"
17 #include "llvm/ADT/PostOrderIterator.h"
18 #include "llvm/ADT/DepthFirstIterator.h"
19 #include "llvm/Support/CommandLine.h"
1920 #include "llvm/Support/Debug.h"
20 #include "llvm/Support/CommandLine.h"
2121 #include "llvm/Support/raw_ostream.h"
2222
2323 using namespace llvm;
5858 //===----------------------------------------------------------------------===//
5959
6060 #define DEBUG_TYPE "scalar-evolution"
61 #include "llvm/Analysis/ScalarEvolutionExpressions.h"
62 #include "llvm/Constants.h"
63 #include "llvm/DerivedTypes.h"
64 #include "llvm/GlobalVariable.h"
65 #include "llvm/GlobalAlias.h"
66 #include "llvm/Instructions.h"
67 #include "llvm/LLVMContext.h"
68 #include "llvm/Operator.h"
61 #include "llvm/Analysis/ScalarEvolution.h"
62 #include "llvm/ADT/STLExtras.h"
63 #include "llvm/ADT/SmallPtrSet.h"
64 #include "llvm/ADT/Statistic.h"
6965 #include "llvm/Analysis/ConstantFolding.h"
7066 #include "llvm/Analysis/Dominators.h"
7167 #include "llvm/Analysis/InstructionSimplify.h"
7268 #include "llvm/Analysis/LoopInfo.h"
69 #include "llvm/Analysis/ScalarEvolutionExpressions.h"
7370 #include "llvm/Analysis/ValueTracking.h"
7471 #include "llvm/Assembly/Writer.h"
72 #include "llvm/Constants.h"
7573 #include "llvm/DataLayout.h"
76 #include "llvm/Target/TargetLibraryInfo.h"
74 #include "llvm/DerivedTypes.h"
75 #include "llvm/GlobalAlias.h"
76 #include "llvm/GlobalVariable.h"
77 #include "llvm/Instructions.h"
78 #include "llvm/LLVMContext.h"
79 #include "llvm/Operator.h"
7780 #include "llvm/Support/CommandLine.h"
7881 #include "llvm/Support/ConstantRange.h"
7982 #include "llvm/Support/Debug.h"
8285 #include "llvm/Support/InstIterator.h"
8386 #include "llvm/Support/MathExtras.h"
8487 #include "llvm/Support/raw_ostream.h"
85 #include "llvm/ADT/Statistic.h"
86 #include "llvm/ADT/STLExtras.h"
87 #include "llvm/ADT/SmallPtrSet.h"
88 #include "llvm/Target/TargetLibraryInfo.h"
8889 #include
8990 using namespace llvm;
9091
1818 //
1919 //===----------------------------------------------------------------------===//
2020
21 #include "llvm/Analysis/Passes.h"
2122 #include "llvm/Analysis/AliasAnalysis.h"
2223 #include "llvm/Analysis/ScalarEvolutionExpressions.h"
23 #include "llvm/Analysis/Passes.h"
2424 #include "llvm/Pass.h"
2525 using namespace llvm;
2626
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/Analysis/ScalarEvolutionExpander.h"
16 #include "llvm/ADT/STLExtras.h"
1617 #include "llvm/Analysis/LoopInfo.h"
18 #include "llvm/DataLayout.h"
1719 #include "llvm/IntrinsicInst.h"
1820 #include "llvm/LLVMContext.h"
1921 #include "llvm/Support/Debug.h"
20 #include "llvm/DataLayout.h"
2122 #include "llvm/Target/TargetLowering.h"
22 #include "llvm/ADT/STLExtras.h"
2323
2424 using namespace llvm;
2525
1515 //===----------------------------------------------------------------------===//
1616
1717 #include "llvm/Analysis/Trace.h"
18 #include "llvm/Assembly/Writer.h"
1819 #include "llvm/Function.h"
19 #include "llvm/Assembly/Writer.h"
2020 #include "llvm/Support/Debug.h"
2121 #include "llvm/Support/raw_ostream.h"
2222 using namespace llvm;
5656 //
5757 //===----------------------------------------------------------------------===//
5858
59 #include "llvm/Analysis/Passes.h"
5960 #include "llvm/Analysis/AliasAnalysis.h"
60 #include "llvm/Analysis/Passes.h"
6161 #include "llvm/Constants.h"
6262 #include "llvm/LLVMContext.h"
63 #include "llvm/Metadata.h"
6364 #include "llvm/Module.h"
64 #include "llvm/Metadata.h"
6565 #include "llvm/Pass.h"
6666 #include "llvm/Support/CommandLine.h"
6767 using namespace llvm;
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/Analysis/ValueTracking.h"
15 #include "llvm/ADT/SmallPtrSet.h"
1516 #include "llvm/Analysis/InstructionSimplify.h"
1617 #include "llvm/Constants.h"
18 #include "llvm/DataLayout.h"
19 #include "llvm/GlobalAlias.h"
20 #include "llvm/GlobalVariable.h"
1721 #include "llvm/Instructions.h"
18 #include "llvm/GlobalVariable.h"
19 #include "llvm/GlobalAlias.h"
2022 #include "llvm/IntrinsicInst.h"
2123 #include "llvm/LLVMContext.h"
2224 #include "llvm/Metadata.h"
2325 #include "llvm/Operator.h"
24 #include "llvm/DataLayout.h"
2526 #include "llvm/Support/ConstantRange.h"
2627 #include "llvm/Support/GetElementPtrTypeIterator.h"
2728 #include "llvm/Support/MathExtras.h"
2829 #include "llvm/Support/PatternMatch.h"
29 #include "llvm/ADT/SmallPtrSet.h"
3030 #include
3131 using namespace llvm;
3232 using namespace llvm::PatternMatch;
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #include "llvm/Bitcode/Archive.h"
1415 #include "ArchiveInternals.h"
1516 #include "llvm/Bitcode/ReaderWriter.h"
1617 #include "llvm/Module.h"
1819 #include "llvm/Support/MemoryBuffer.h"
1920 #include "llvm/Support/Process.h"
2021 #include "llvm/Support/system_error.h"
22 #include
2123 #include
22 #include
2324 using namespace llvm;
2425
2526 // getMemberSize - compute the actual physical size of the file member as seen
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Bitcode/Archive.h"
1314 #include "ArchiveInternals.h"
1415 #include "llvm/ADT/SmallPtrSet.h"
1516 #include "llvm/Bitcode/ReaderWriter.h"
17 #include "llvm/Module.h"
1618 #include "llvm/Support/MemoryBuffer.h"
17 #include "llvm/Module.h"
1819 #include
1920 #include
2021 #include
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Bitcode/Archive.h"
1314 #include "ArchiveInternals.h"
14 #include "llvm/Module.h"
1515 #include "llvm/ADT/OwningPtr.h"
1616 #include "llvm/Bitcode/ReaderWriter.h"
17 #include "llvm/Module.h"
1718 #include "llvm/Support/FileSystem.h"
1819 #include "llvm/Support/MemoryBuffer.h"
1920 #include "llvm/Support/Process.h"
2021 #include "llvm/Support/Signals.h"
2122 #include "llvm/Support/system_error.h"
2223 #include
24 #include
2325 #include
24 #include
2526 using namespace llvm;
2627
2728 // Write an integer using variable bit rate encoding. This saves a few bytes
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "LLLexer.h"
14 #include "llvm/ADT/Twine.h"
15 #include "llvm/Assembly/Parser.h"
1416 #include "llvm/DerivedTypes.h"
1517 #include "llvm/Instruction.h"
1618 #include "llvm/LLVMContext.h"
17 #include "llvm/ADT/Twine.h"
18 #include "llvm/Assembly/Parser.h"
1919 #include "llvm/Support/ErrorHandling.h"
20 #include "llvm/Support/MathExtras.h"
2021 #include "llvm/Support/MemoryBuffer.h"
21 #include "llvm/Support/MathExtras.h"
2222 #include "llvm/Support/SourceMgr.h"
2323 #include "llvm/Support/raw_ostream.h"
2424 #include
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "LLParser.h"
14 #include "llvm/ADT/SmallPtrSet.h"
1415 #include "llvm/AutoUpgrade.h"
1516 #include "llvm/CallingConv.h"
1617 #include "llvm/Constants.h"
1920 #include "llvm/Instructions.h"
2021 #include "llvm/Module.h"
2122 #include "llvm/Operator.h"
22 #include "llvm/ValueSymbolTable.h"
23 #include "llvm/ADT/SmallPtrSet.h"
2423 #include "llvm/Support/ErrorHandling.h"
2524 #include "llvm/Support/raw_ostream.h"
25 #include "llvm/ValueSymbolTable.h"
2626 using namespace llvm;
2727
2828 static std::string getTypeString(Type *T) {
1212
1313 #include "llvm/Assembly/Parser.h"
1414 #include "LLParser.h"
15 #include "llvm/ADT/OwningPtr.h"
1516 #include "llvm/Module.h"
16 #include "llvm/ADT/OwningPtr.h"
17 #include "llvm/Support/MemoryBuffer.h"
1718 #include "llvm/Support/SourceMgr.h"
18 #include "llvm/Support/MemoryBuffer.h"
1919 #include "llvm/Support/raw_ostream.h"
2020 #include "llvm/Support/system_error.h"
2121 #include
1010 #include "llvm/Bitcode/ReaderWriter.h"
1111 #include "llvm/LLVMContext.h"
1212 #include "llvm/Support/MemoryBuffer.h"
13 #include
1314 #include
14 #include
1515
1616 using namespace llvm;
1717
1212
1313 #include "llvm/Bitcode/ReaderWriter.h"
1414 #include "BitcodeReader.h"
15 #include "llvm/ADT/SmallString.h"
16 #include "llvm/ADT/SmallVector.h"
17 #include "llvm/AutoUpgrade.h"
1518 #include "llvm/Constants.h"
1619 #include "llvm/DerivedTypes.h"
1720 #include "llvm/InlineAsm.h"
1821 #include "llvm/IntrinsicInst.h"
1922 #include "llvm/Module.h"
23 #include "llvm/OperandTraits.h"
2024 #include "llvm/Operator.h"
21 #include "llvm/AutoUpgrade.h"
22 #include "llvm/ADT/SmallString.h"
23 #include "llvm/ADT/SmallVector.h"
2425 #include "llvm/Support/DataStream.h"
2526 #include "llvm/Support/MathExtras.h"
2627 #include "llvm/Support/MemoryBuffer.h"
27 #include "llvm/OperandTraits.h"
2828 using namespace llvm;
2929
3030 enum {
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Bitcode/ReaderWriter.h"
14 #include "ValueEnumerator.h"
15 #include "llvm/ADT/Triple.h"
1416 #include "llvm/Bitcode/BitstreamWriter.h"
1517 #include "llvm/Bitcode/LLVMBitCodes.h"
16 #include "ValueEnumerator.h"
1718 #include "llvm/Constants.h"
1819 #include "llvm/DerivedTypes.h"
1920 #include "llvm/InlineAsm.h"
2021 #include "llvm/Instructions.h"
2122 #include "llvm/Module.h"
2223 #include "llvm/Operator.h"
23 #include "llvm/ValueSymbolTable.h"
24 #include "llvm/ADT/Triple.h"
2524 #include "llvm/Support/CommandLine.h"
2625 #include "llvm/Support/ErrorHandling.h"
2726 #include "llvm/Support/MathExtras.h"
27 #include "llvm/Support/Program.h"
2828 #include "llvm/Support/raw_ostream.h"
29 #include "llvm/Support/Program.h"
29 #include "llvm/ValueSymbolTable.h"
3030 #include
3131 #include
3232 using namespace llvm;
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "ValueEnumerator.h"
14 #include "llvm/ADT/STLExtras.h"
1415 #include "llvm/ADT/SmallPtrSet.h"
15 #include "llvm/ADT/STLExtras.h"
1616 #include "llvm/Constants.h"
1717 #include "llvm/DerivedTypes.h"
18 #include "llvm/Instructions.h"
1819 #include "llvm/Module.h"
19 #include "llvm/ValueSymbolTable.h"
20 #include "llvm/Instructions.h"
2120 #include "llvm/Support/Debug.h"
2221 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/ValueSymbolTable.h"
2323 #include
2424 using namespace llvm;
2525
1919 #include "llvm/CodeGen/MachineFrameInfo.h"
2020 #include "llvm/CodeGen/MachineInstr.h"
2121 #include "llvm/CodeGen/RegisterClassInfo.h"
22 #include "llvm/Target/TargetInstrInfo.h"
23 #include "llvm/Target/TargetMachine.h"
24 #include "llvm/Target/TargetInstrInfo.h"
25 #include "llvm/Target/TargetRegisterInfo.h"
2622 #include "llvm/Support/CommandLine.h"
2723 #include "llvm/Support/Debug.h"
2824 #include "llvm/Support/ErrorHandling.h"
2925 #include "llvm/Support/raw_ostream.h"
26 #include "llvm/Target/TargetInstrInfo.h"
27 #include "llvm/Target/TargetInstrInfo.h"
28 #include "llvm/Target/TargetMachine.h"
29 #include "llvm/Target/TargetRegisterInfo.h"
3030 using namespace llvm;
3131
3232 // If DebugDiv > 0 then only break antidep with (ID % DebugDiv) == DebugMod
1212
1313 #include "llvm/CodeGen/Analysis.h"
1414 #include "llvm/Analysis/ValueTracking.h"
15 #include "llvm/CodeGen/MachineFunction.h"
16 #include "llvm/CodeGen/SelectionDAG.h"
17 #include "llvm/DataLayout.h"
1518 #include "llvm/DerivedTypes.h"
1619 #include "llvm/Function.h"
1720 #include "llvm/Instructions.h"
1821 #include "llvm/IntrinsicInst.h"
1922 #include "llvm/LLVMContext.h"
2023 #include "llvm/Module.h"
21 #include "llvm/CodeGen/MachineFunction.h"
22 #include "llvm/CodeGen/SelectionDAG.h"
23 #include "llvm/DataLayout.h"
24 #include "llvm/Support/ErrorHandling.h"
25 #include "llvm/Support/MathExtras.h"
2426 #include "llvm/Target/TargetLowering.h"
2527 #include "llvm/Target/TargetOptions.h"
26 #include "llvm/Support/ErrorHandling.h"
27 #include "llvm/Support/MathExtras.h"
2828 using namespace llvm;
2929
3030 /// ComputeLinearIndex - Given an LLVM IR aggregate type and a sequence
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "DwarfException.h"
14 #include "llvm/Module.h"
14 #include "llvm/ADT/SmallString.h"
15 #include "llvm/ADT/StringExtras.h"
16 #include "llvm/ADT/Twine.h"
1517 #include "llvm/CodeGen/AsmPrinter.h"
16 #include "llvm/CodeGen/MachineModuleInfo.h"
1718 #include "llvm/CodeGen/MachineFrameInfo.h"
1819 #include "llvm/CodeGen/MachineFunction.h"
20 #include "llvm/CodeGen/MachineModuleInfo.h"
21 #include "llvm/DataLayout.h"
1922 #include "llvm/MC/MCAsmInfo.h"
2023 #include "llvm/MC/MCContext.h"
2124 #include "llvm/MC/MCExpr.h"
2225 #include "llvm/MC/MCSection.h"
2326 #include "llvm/MC/MCStreamer.h"
2427 #include "llvm/MC/MCSymbol.h"
28 #include "llvm/Module.h"
29 #include "llvm/Support/CommandLine.h"
30 #include "llvm/Support/Dwarf.h"
31 #include "llvm/Support/FormattedStream.h"
2532 #include "llvm/Target/Mangler.h"
26 #include "llvm/DataLayout.h"
2733 #include "llvm/Target/TargetFrameLowering.h"
2834 #include "llvm/Target/TargetMachine.h"
2935 #include "llvm/Target/TargetOptions.h"
3036 #include "llvm/Target/TargetRegisterInfo.h"
31 #include "llvm/Support/CommandLine.h"
32 #include "llvm/Support/Dwarf.h"
33 #include "llvm/Support/FormattedStream.h"
34 #include "llvm/ADT/SmallString.h"
35 #include "llvm/ADT/StringExtras.h"
36 #include "llvm/ADT/Twine.h"
3737 using namespace llvm;
3838
3939 cl::opt
1414 #include "llvm/CodeGen/AsmPrinter.h"
1515 #include "DwarfDebug.h"
1616 #include "DwarfException.h"
17 #include "llvm/DebugInfo.h"
18 #include "llvm/Module.h"
17 #include "llvm/ADT/SmallString.h"
18 #include "llvm/ADT/Statistic.h"
19 #include "llvm/Analysis/ConstantFolding.h"
20 #include "llvm/Assembly/Writer.h"
1921 #include "llvm/CodeGen/GCMetadataPrinter.h"
2022 #include "llvm/CodeGen/MachineConstantPool.h"
2123 #include "llvm/CodeGen/MachineFrameInfo.h"
2325 #include "llvm/CodeGen/MachineJumpTableInfo.h"
2426 #include "llvm/CodeGen/MachineLoopInfo.h"
2527 #include "llvm/CodeGen/MachineModuleInfo.h"
26 #include "llvm/Analysis/ConstantFolding.h"
28 #include "llvm/DataLayout.h"
29 #include "llvm/DebugInfo.h"
2730 #include "llvm/MC/MCAsmInfo.h"
2831 #include "llvm/MC/MCContext.h"
2932 #include "llvm/MC/MCExpr.h"
3134 #include "llvm/MC/MCSection.h"
3235 #include "llvm/MC/MCStreamer.h"
3336 #include "llvm/MC/MCSymbol.h"
37 #include "llvm/Module.h"
38 #include "llvm/Support/ErrorHandling.h"
39 #include "llvm/Support/Format.h"
40 #include "llvm/Support/MathExtras.h"
41 #include "llvm/Support/Timer.h"
3442 #include "llvm/Target/Mangler.h"
35 #include "llvm/DataLayout.h"
3643 #include "llvm/Target/TargetInstrInfo.h"
3744 #include "llvm/Target/TargetLowering.h"
3845 #include "llvm/Target/TargetLoweringObjectFile.h"
3946 #include "llvm/Target/TargetOptions.h"
4047 #include "llvm/Target/TargetRegisterInfo.h"
41 #include "llvm/Assembly/Writer.h"
42 #include "llvm/ADT/SmallString.h"
43 #include "llvm/ADT/Statistic.h"
44 #include "llvm/Support/ErrorHandling.h"
45 #include "llvm/Support/Format.h"
46 #include "llvm/Support/MathExtras.h"
47 #include "llvm/Support/Timer.h"
4848 using namespace llvm;
4949
5050 static const char *DWARFGroupName = "DWARF Emission";
1212
1313 #define DEBUG_TYPE "asm-printer"
1414 #include "llvm/CodeGen/AsmPrinter.h"
15 #include "llvm/MC/MachineLocation.h"
15 #include "llvm/ADT/Twine.h"
16 #include "llvm/DataLayout.h"
1617 #include "llvm/MC/MCAsmInfo.h"
1718 #include "llvm/MC/MCSection.h"
1819 #include "llvm/MC/MCStreamer.h"
1920 #include "llvm/MC/MCSymbol.h"
20 #include "llvm/DataLayout.h"
21 #include "llvm/MC/MachineLocation.h"
22 #include "llvm/Support/Dwarf.h"
23 #include "llvm/Support/ErrorHandling.h"
2124 #include "llvm/Target/TargetFrameLowering.h"
2225 #include "llvm/Target/TargetLoweringObjectFile.h"
2326 #include "llvm/Target/TargetMachine.h"
2427 #include "llvm/Target/TargetRegisterInfo.h"
25 #include "llvm/ADT/Twine.h"
26 #include "llvm/Support/Dwarf.h"
27 #include "llvm/Support/ErrorHandling.h"
2828 using namespace llvm;
2929
3030 //===----------------------------------------------------------------------===//
1212
1313 #define DEBUG_TYPE "asm-printer"
1414 #include "llvm/CodeGen/AsmPrinter.h"
15 #include "llvm/ADT/OwningPtr.h"
16 #include "llvm/ADT/SmallString.h"
17 #include "llvm/ADT/Twine.h"
18 #include "llvm/CodeGen/MachineBasicBlock.h"
19 #include "llvm/CodeGen/MachineModuleInfo.h"
1520 #include "llvm/Constants.h"
1621 #include "llvm/InlineAsm.h"
1722 #include "llvm/LLVMContext.h"
18 #include "llvm/Module.h"
19 #include "llvm/CodeGen/MachineBasicBlock.h"
20 #include "llvm/CodeGen/MachineModuleInfo.h"
2123 #include "llvm/MC/MCAsmInfo.h"
2224 #include "llvm/MC/MCStreamer.h"
2325 #include "llvm/MC/MCSubtargetInfo.h"
2426 #include "llvm/MC/MCSymbol.h"
2527 #include "llvm/MC/MCTargetAsmParser.h"
26 #include "llvm/Target/TargetMachine.h"
27 #include "llvm/ADT/OwningPtr.h"
28 #include "llvm/ADT/SmallString.h"
29 #include "llvm/ADT/Twine.h"
28 #include "llvm/Module.h"
3029 #include "llvm/Support/ErrorHandling.h"
3130 #include "llvm/Support/MemoryBuffer.h"
3231 #include "llvm/Support/SourceMgr.h"
3332 #include "llvm/Support/TargetRegistry.h"
3433 #include "llvm/Support/raw_ostream.h"
34 #include "llvm/Target/TargetMachine.h"
3535 using namespace llvm;
3636
3737 namespace {
1313 #include "DIE.h"
1414 #include "llvm/ADT/Twine.h"
1515 #include "llvm/CodeGen/AsmPrinter.h"
16 #include "llvm/DataLayout.h"
1617 #include "llvm/MC/MCAsmInfo.h"
1718 #include "llvm/MC/MCStreamer.h"
1819 #include "llvm/MC/MCSymbol.h"
19 #include "llvm/DataLayout.h"
2020 #include "llvm/Support/Allocator.h"
2121 #include "llvm/Support/Debug.h"
2222 #include "llvm/Support/ErrorHandling.h"
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "DwarfAccelTable.h"
14 #include "DIE.h"
1415 #include "DwarfDebug.h"
15 #include "DIE.h"
16 #include "llvm/ADT/STLExtras.h"
1617 #include "llvm/ADT/Twine.h"
17 #include "llvm/ADT/STLExtras.h"
1818 #include "llvm/CodeGen/AsmPrinter.h"
1919 #include "llvm/MC/MCExpr.h"
2020 #include "llvm/MC/MCStreamer.h"
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "DwarfException.h"
14 #include "llvm/Module.h"
14 #include "llvm/ADT/SmallString.h"
15 #include "llvm/ADT/StringExtras.h"
16 #include "llvm/ADT/Twine.h"
1517 #include "llvm/CodeGen/AsmPrinter.h"
16 #include "llvm/CodeGen/MachineModuleInfo.h"
1718 #include "llvm/CodeGen/MachineFrameInfo.h"
1819 #include "llvm/CodeGen/MachineFunction.h"
19 #include "llvm/MC/MachineLocation.h"
20 #include "llvm/CodeGen/MachineModuleInfo.h"
21 #include "llvm/DataLayout.h"
2022 #include "llvm/MC/MCAsmInfo.h"
2123 #include "llvm/MC/MCContext.h"
2224 #include "llvm/MC/MCExpr.h"
2325 #include "llvm/MC/MCSection.h"
2426 #include "llvm/MC/MCStreamer.h"
2527 #include "llvm/MC/MCSymbol.h"
28 #include "llvm/MC/MachineLocation.h"
29 #include "llvm/Module.h"
30 #include "llvm/Support/Dwarf.h"
31 #include "llvm/Support/ErrorHandling.h"
32 #include "llvm/Support/FormattedStream.h"
2633 #include "llvm/Target/Mangler.h"
27 #include "llvm/DataLayout.h"
2834 #include "llvm/Target/TargetFrameLowering.h"
2935 #include "llvm/Target/TargetLoweringObjectFile.h"
3036 #include "llvm/Target/TargetMachine.h"
3137 #include "llvm/Target/TargetOptions.h"
3238 #include "llvm/Target/TargetRegisterInfo.h"
33 #include "llvm/Support/Dwarf.h"
34 #include "llvm/Support/ErrorHandling.h"
35 #include "llvm/Support/FormattedStream.h"
36 #include "llvm/ADT/SmallString.h"
37 #include "llvm/ADT/StringExtras.h"
38 #include "llvm/ADT/Twine.h"
3939 using namespace llvm;
4040
4141 DwarfCFIException::DwarfCFIException(AsmPrinter *A)
1212
1313 #define DEBUG_TYPE "dwarfdebug"
1414
15 #include "DwarfCompileUnit.h"
1516 #include "DwarfAccelTable.h"
16 #include "DwarfCompileUnit.h"
1717 #include "DwarfDebug.h"
18 #include "llvm/ADT/APFloat.h"
1819 #include "llvm/Constants.h"
1920 #include "llvm/DIBuilder.h"
21 #include "llvm/DataLayout.h"
2022 #include "llvm/GlobalVariable.h"
2123 #include "llvm/Instructions.h"
2224 #include "llvm/Support/Debug.h"
25 #include "llvm/Support/ErrorHandling.h"
2326 #include "llvm/Target/Mangler.h"
24 #include "llvm/DataLayout.h"
2527 #include "llvm/Target/TargetFrameLowering.h"
2628 #include "llvm/Target/TargetMachine.h"
2729 #include "llvm/Target/TargetRegisterInfo.h"
28 #include "llvm/ADT/APFloat.h"
29 #include "llvm/Support/ErrorHandling.h"
3030
3131 using namespace llvm;
3232
1515 #include "DIE.h"
1616 #include "DwarfAccelTable.h"
1717 #include "DwarfCompileUnit.h"
18 #include "llvm/Constants.h"
19 #include "llvm/DebugInfo.h"
20 #include "llvm/DIBuilder.h"
21 #include "llvm/Module.h"
22 #include "llvm/Instructions.h"
18 #include "llvm/ADT/STLExtras.h"
19 #include "llvm/ADT/Statistic.h"
20 #include "llvm/ADT/StringExtras.h"
21 #include "llvm/ADT/Triple.h"
2322 #include "llvm/CodeGen/MachineFunction.h"
2423 #include "llvm/CodeGen/MachineModuleInfo.h"
24 #include "llvm/Constants.h"
25 #include "llvm/DIBuilder.h"
26 #include "llvm/DataLayout.h"
27 #include "llvm/DebugInfo.h"
28 #include "llvm/Instructions.h"
2529 #include "llvm/MC/MCAsmInfo.h"
2630 #include "llvm/MC/MCSection.h"
2731 #include "llvm/MC/MCStreamer.h"
2832 #include "llvm/MC/MCSymbol.h"
29 #include "llvm/DataLayout.h"
33 #include "llvm/Module.h"
34 #include "llvm/Support/CommandLine.h"
35 #include "llvm/Support/Debug.h"
36 #include "llvm/Support/ErrorHandling.h"
37 #include "llvm/Support/FormattedStream.h"
38 #include "llvm/Support/Path.h"
39 #include "llvm/Support/Timer.h"
40 #include "llvm/Support/ValueHandle.h"
3041 #include "llvm/Target/TargetFrameLowering.h"
3142 #include "llvm/Target/TargetLoweringObjectFile.h"
3243 #include "llvm/Target/TargetMachine.h"
44 #include "llvm/Target/TargetOptions.h"
3345 #include "llvm/Target/TargetRegisterInfo.h"
34 #include "llvm/Target/TargetOptions.h"
35 #include "llvm/ADT/Statistic.h"
36 #include "llvm/ADT/STLExtras.h"
37 #include "llvm/ADT/StringExtras.h"
38 #include "llvm/ADT/Triple.h"
39 #include "llvm/Support/CommandLine.h"
40 #include "llvm/Support/Debug.h"
41 #include "llvm/Support/ErrorHandling.h"
42 #include "llvm/Support/ValueHandle.h"
43 #include "llvm/Support/FormattedStream.h"
44 #include "llvm/Support/Timer.h"
45 #include "llvm/Support/Path.h"
4646 using namespace llvm;
4747
4848 static cl::opt DisableDebugInfoPrinting("disable-debug-info-print",
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "DwarfException.h"
14 #include "llvm/Module.h"
14 #include "llvm/ADT/SmallString.h"
15 #include "llvm/ADT/StringExtras.h"
16 #include "llvm/ADT/Twine.h"
1517 #include "llvm/CodeGen/AsmPrinter.h"
16 #include "llvm/CodeGen/MachineModuleInfo.h"
1718 #include "llvm/CodeGen/MachineFrameInfo.h"
1819 #include "llvm/CodeGen/MachineFunction.h"
20 #include "llvm/CodeGen/MachineModuleInfo.h"
21 #include "llvm/DataLayout.h"
1922 #include "llvm/MC/MCAsmInfo.h"
2023 #include "llvm/MC/MCContext.h"
2124 #include "llvm/MC/MCExpr.h"
2225 #include "llvm/MC/MCSection.h"
2326 #include "llvm/MC/MCStreamer.h"
2427 #include "llvm/MC/MCSymbol.h"
28 #include "llvm/Module.h"
29 #include "llvm/Support/Dwarf.h"
30 #include "llvm/Support/ErrorHandling.h"
31 #include "llvm/Support/FormattedStream.h"
2532 #include "llvm/Target/Mangler.h"
26 #include "llvm/DataLayout.h"
2733 #include "llvm/Target/TargetFrameLowering.h"
2834 #include "llvm/Target/TargetLoweringObjectFile.h"
2935 #include "llvm/Target/TargetMachine.h"
3036 #include "llvm/Target/TargetOptions.h"
3137 #include "llvm/Target/TargetRegisterInfo.h"
32 #include "llvm/Support/Dwarf.h"
33 #include "llvm/Support/ErrorHandling.h"
34 #include "llvm/Support/FormattedStream.h"
35 #include "llvm/ADT/SmallString.h"
36 #include "llvm/ADT/StringExtras.h"
37 #include "llvm/ADT/Twine.h"
3838 using namespace llvm;
3939
4040 DwarfException::DwarfException(AsmPrinter *A)
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/CodeGen/GCs.h"
14 #include "llvm/ADT/SmallString.h"
1415 #include "llvm/CodeGen/AsmPrinter.h"
1516 #include "llvm/CodeGen/GCMetadataPrinter.h"
16 #include "llvm/Module.h"
17 #include "llvm/DataLayout.h"
1718 #include "llvm/MC/MCAsmInfo.h"
1819 #include "llvm/MC/MCContext.h"
20 #include "llvm/MC/MCStreamer.h"
1921 #include "llvm/MC/MCSymbol.h"
20 #include "llvm/MC/MCStreamer.h"
22 #include "llvm/Module.h"
23 #include "llvm/Support/ErrorHandling.h"
24 #include "llvm/Support/FormattedStream.h"
2125 #include "llvm/Target/Mangler.h"
22 #include "llvm/DataLayout.h"
2326 #include "llvm/Target/TargetLoweringObjectFile.h"
2427 #include "llvm/Target/TargetMachine.h"
25 #include "llvm/ADT/SmallString.h"
26 #include "llvm/Support/ErrorHandling.h"
27 #include "llvm/Support/FormattedStream.h"
2828 #include
2929 using namespace llvm;
3030
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "DwarfException.h"
14 #include "llvm/Module.h"
14 #include "llvm/ADT/SmallString.h"
15 #include "llvm/ADT/StringExtras.h"
16 #include "llvm/ADT/Twine.h"
1517 #include "llvm/CodeGen/AsmPrinter.h"
16 #include "llvm/CodeGen/MachineModuleInfo.h"
1718 #include "llvm/CodeGen/MachineFrameInfo.h"
1819 #include "llvm/CodeGen/MachineFunction.h"
20 #include "llvm/CodeGen/MachineModuleInfo.h"
21 #include "llvm/DataLayout.h"
1922 #include "llvm/MC/MCAsmInfo.h"
2023 #include "llvm/MC/MCContext.h"
2124 #include "llvm/MC/MCExpr.h"
2225 #include "llvm/MC/MCSection.h"
2326 #include "llvm/MC/MCStreamer.h"
2427 #include "llvm/MC/MCSymbol.h"
28 #include "llvm/Module.h"
29 #include "llvm/Support/Dwarf.h"
30 #include "llvm/Support/ErrorHandling.h"
31 #include "llvm/Support/FormattedStream.h"
2532 #include "llvm/Target/Mangler.h"
26 #include "llvm/DataLayout.h"
2733 #include "llvm/Target/TargetFrameLowering.h"
2834 #include "llvm/Target/TargetLoweringObjectFile.h"
2935 #include "llvm/Target/TargetMachine.h"
3036 #include "llvm/Target/TargetOptions.h"
3137 #include "llvm/Target/TargetRegisterInfo.h"
32 #include "llvm/Support/Dwarf.h"
33 #include "llvm/Support/ErrorHandling.h"
34 #include "llvm/Support/FormattedStream.h"
35 #include "llvm/ADT/SmallString.h"
36 #include "llvm/ADT/StringExtras.h"
37 #include "llvm/ADT/Twine.h"
3838 using namespace llvm;
3939
4040 Win64Exception::Win64Exception(AsmPrinter *A)
1717
1818 #define DEBUG_TYPE "branchfolding"
1919 #include "BranchFolding.h"
20 #include "llvm/Function.h"
21 #include "llvm/CodeGen/Passes.h"
22 #include "llvm/CodeGen/MachineModuleInfo.h"
20 #include "llvm/ADT/STLExtras.h"
21 #include "llvm/ADT/SmallSet.h"
22 #include "llvm/ADT/Statistic.h"
2323 #include "llvm/CodeGen/MachineFunctionPass.h"
2424 #include "llvm/CodeGen/MachineJumpTableInfo.h"
25 #include "llvm/CodeGen/MachineModuleInfo.h"
2526 #include "llvm/CodeGen/MachineRegisterInfo.h"
27 #include "llvm/CodeGen/Passes.h"
2628 #include "llvm/CodeGen/RegisterScavenging.h"
27 #include "llvm/Target/TargetInstrInfo.h"
28 #include "llvm/Target/TargetMachine.h"
29 #include "llvm/Target/TargetRegisterInfo.h"
29 #include "llvm/Function.h"
3030 #include "llvm/Support/CommandLine.h"
3131 #include "llvm/Support/Debug.h"
3232 #include "llvm/Support/ErrorHandling.h"
3333 #include "llvm/Support/raw_ostream.h"
34 #include "llvm/ADT/SmallSet.h"
35 #include "llvm/ADT/Statistic.h"
36 #include "llvm/ADT/STLExtras.h"
34 #include "llvm/Target/TargetInstrInfo.h"
35 #include "llvm/Target/TargetMachine.h"
36 #include "llvm/Target/TargetRegisterInfo.h"
3737 #include
3838 using namespace llvm;
3939
1313
1414 #include "llvm/CodeGen/CallingConvLower.h"
1515 #include "llvm/CodeGen/MachineFrameInfo.h"
16 #include "llvm/DataLayout.h"
1617 #include "llvm/Support/Debug.h"
1718 #include "llvm/Support/ErrorHandling.h"
1819 #include "llvm/Support/raw_ostream.h"
20 #include "llvm/Target/TargetLowering.h"
21 #include "llvm/Target/TargetMachine.h"
1922 #include "llvm/Target/TargetRegisterInfo.h"
20 #include "llvm/DataLayout.h"
21 #include "llvm/Target/TargetMachine.h"
22 #include "llvm/Target/TargetLowering.h"
2323 using namespace llvm;
2424
2525 CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf,
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "code-placement"
15 #include "llvm/CodeGen/Passes.h"
16 #include "llvm/ADT/Statistic.h"
17 #include "llvm/CodeGen/MachineFunctionPass.h"
1518 #include "llvm/CodeGen/MachineLoopInfo.h"
16 #include "llvm/CodeGen/MachineFunctionPass.h"
17 #include "llvm/CodeGen/Passes.h"
19 #include "llvm/Support/Compiler.h"
20 #include "llvm/Support/Debug.h"
1821 #include "llvm/Target/TargetInstrInfo.h"
1922 #include "llvm/Target/TargetLowering.h"
2023 #include "llvm/Target/TargetMachine.h"
21 #include "llvm/Support/Compiler.h"
22 #include "llvm/Support/Debug.h"
23 #include "llvm/ADT/Statistic.h"
2424 using namespace llvm;
2525
2626 STATISTIC(NumLoopsAligned, "Number of loops aligned");
1616 #include "CriticalAntiDepBreaker.h"
1717 #include "llvm/CodeGen/MachineBasicBlock.h"
1818 #include "llvm/CodeGen/MachineFrameInfo.h"
19 #include "llvm/Target/TargetMachine.h"
20 #include "llvm/Target/TargetInstrInfo.h"
21 #include "llvm/Target/TargetRegisterInfo.h"
2219 #include "llvm/Support/Debug.h"
2320 #include "llvm/Support/ErrorHandling.h"
2421 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/Target/TargetInstrInfo.h"
23 #include "llvm/Target/TargetMachine.h"
24 #include "llvm/Target/TargetRegisterInfo.h"
2525
2626 using namespace llvm;
2727
2222 //
2323 //===----------------------------------------------------------------------===//
2424
25 #include "llvm/CodeGen/ScheduleDAGInstrs.h"
2625 #include "llvm/CodeGen/DFAPacketizer.h"
2726 #include "llvm/CodeGen/MachineInstr.h"
2827 #include "llvm/CodeGen/MachineInstrBundle.h"
28 #include "llvm/CodeGen/ScheduleDAGInstrs.h"
29 #include "llvm/MC/MCInstrItineraries.h"
2930 #include "llvm/Target/TargetInstrInfo.h"
30 #include "llvm/MC/MCInstrItineraries.h"
3131 using namespace llvm;
3232
3333 DFAPacketizer::DFAPacketizer(const InstrItineraryData *I, const int (*SIT)[2],
1212
1313 #define DEBUG_TYPE "codegen-dce"
1414 #include "llvm/CodeGen/Passes.h"
15 #include "llvm/Pass.h"
15 #include "llvm/ADT/Statistic.h"
1616 #include "llvm/CodeGen/MachineFunctionPass.h"
1717 #include "llvm/CodeGen/MachineRegisterInfo.h"
18 #include "llvm/Pass.h"
1819 #include "llvm/Support/Debug.h"
1920 #include "llvm/Support/raw_ostream.h"
2021 #include "llvm/Target/TargetInstrInfo.h"
2122 #include "llvm/Target/TargetMachine.h"
22 #include "llvm/ADT/Statistic.h"
2323 using namespace llvm;
2424
2525 STATISTIC(NumDeletes, "Number of dead instructions deleted");
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "dwarfehprepare"
15 #include "llvm/CodeGen/Passes.h"
16 #include "llvm/ADT/Statistic.h"
17 #include "llvm/Analysis/Dominators.h"
1518 #include "llvm/Function.h"
1619 #include "llvm/Instructions.h"
1720 #include "llvm/IntrinsicInst.h"
21 #include "llvm/MC/MCAsmInfo.h"
1822 #include "llvm/Module.h"
1923 #include "llvm/Pass.h"
20 #include "llvm/ADT/Statistic.h"
21 #include "llvm/Analysis/Dominators.h"
22 #include "llvm/CodeGen/Passes.h"
23 #include "llvm/MC/MCAsmInfo.h"
2424 #include "llvm/Support/CallSite.h"
2525 #include "llvm/Target/TargetLowering.h"
2626 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
1616 //===----------------------------------------------------------------------===//
1717
1818 #define DEBUG_TYPE "early-ifcvt"
19 #include "llvm/CodeGen/Passes.h"
1920 #include "MachineTraceMetrics.h"
2021 #include "llvm/ADT/BitVector.h"
2122 #include "llvm/ADT/PostOrderIterator.h"
2930 #include "llvm/CodeGen/MachineFunctionPass.h"
3031 #include "llvm/CodeGen/MachineLoopInfo.h"
3132 #include "llvm/CodeGen/MachineRegisterInfo.h"
32 #include "llvm/CodeGen/Passes.h"
33 #include "llvm/Support/CommandLine.h"
34 #include "llvm/Support/Debug.h"
35 #include "llvm/Support/raw_ostream.h"
3336 #include "llvm/Target/TargetInstrInfo.h"
3437 #include "llvm/Target/TargetRegisterInfo.h"
3538 #include "llvm/Target/TargetSubtargetInfo.h"
36 #include "llvm/Support/CommandLine.h"
37 #include "llvm/Support/Debug.h"
38 #include "llvm/Support/raw_ostream.h"
3939
4040 using namespace llvm;
4141
2020 //===----------------------------------------------------------------------===//
2121
2222 #define DEBUG_TYPE "execution-fix"
23 #include "llvm/CodeGen/Passes.h"
24 #include "llvm/ADT/PostOrderIterator.h"
2325 #include "llvm/CodeGen/MachineFunctionPass.h"
2426 #include "llvm/CodeGen/MachineRegisterInfo.h"
25 #include "llvm/CodeGen/Passes.h"
26 #include "llvm/Target/TargetInstrInfo.h"
27 #include "llvm/Target/TargetMachine.h"
28 #include "llvm/ADT/PostOrderIterator.h"
2927 #include "llvm/Support/Allocator.h"
3028 #include "llvm/Support/Debug.h"
3129 #include "llvm/Support/raw_ostream.h"
30 #include "llvm/Target/TargetInstrInfo.h"
31 #include "llvm/Target/TargetMachine.h"
3232 using namespace llvm;
3333
3434 /// A DomainValue is a bit like LiveIntervals' ValNo, but it also keeps track
1414 //===----------------------------------------------------------------------===//
1515
1616 #define DEBUG_TYPE "expand-isel-pseudos"
17 #include "llvm/CodeGen/Passes.h"
1718 #include "llvm/CodeGen/MachineFunction.h"
1819 #include "llvm/CodeGen/MachineFunctionPass.h"
19 #include "llvm/CodeGen/Passes.h"
20 #include "llvm/Support/Debug.h"
2021 #include "llvm/Target/TargetLowering.h"
2122 #include "llvm/Target/TargetMachine.h"
22 #include "llvm/Support/Debug.h"
2323 using namespace llvm;
2424
2525 namespace {
1717 #include "llvm/CodeGen/MachineInstr.h"
1818 #include "llvm/CodeGen/MachineInstrBuilder.h"
1919 #include "llvm/CodeGen/MachineRegisterInfo.h"
20 #include "llvm/Target/TargetRegisterInfo.h"
20 #include "llvm/Support/Debug.h"
21 #include "llvm/Support/raw_ostream.h"
2122 #include "llvm/Target/TargetInstrInfo.h"
2223 #include "llvm/Target/TargetMachine.h"
23 #include "llvm/Support/Debug.h"
24 #include "llvm/Support/raw_ostream.h"
24 #include "llvm/Target/TargetRegisterInfo.h"
2525 using namespace llvm;
2626
2727 namespace {
1313 #include "llvm/CodeGen/GCMetadata.h"
1414 #include "llvm/CodeGen/GCStrategy.h"
1515 #include "llvm/CodeGen/MachineFrameInfo.h"
16 #include "llvm/Pass.h"
1716 #include "llvm/CodeGen/Passes.h"
1817 #include "llvm/Function.h"
1918 #include "llvm/MC/MCSymbol.h"
19 #include "llvm/Pass.h"
2020 #include "llvm/Support/Debug.h"
2121 #include "llvm/Support/ErrorHandling.h"
2222 #include "llvm/Support/raw_ostream.h"
1515 //===----------------------------------------------------------------------===//
1616
1717 #include "llvm/CodeGen/GCStrategy.h"
18 #include "llvm/CodeGen/Passes.h"
19 #include "llvm/IntrinsicInst.h"
20 #include "llvm/Module.h"
18 #include "llvm/Analysis/DominatorInternals.h"
2119 #include "llvm/Analysis/Dominators.h"
22 #include "llvm/Analysis/DominatorInternals.h"
2320 #include "llvm/CodeGen/MachineFrameInfo.h"
2421 #include "llvm/CodeGen/MachineFunctionPass.h"
2522 #include "llvm/CodeGen/MachineInstrBuilder.h"
2623 #include "llvm/CodeGen/MachineModuleInfo.h"
24 #include "llvm/CodeGen/Passes.h"
25 #include "llvm/IntrinsicInst.h"
26 #include "llvm/Module.h"
27 #include "llvm/Support/Debug.h"
28 #include "llvm/Support/ErrorHandling.h"
29 #include "llvm/Support/raw_ostream.h"
2730 #include "llvm/Target/TargetFrameLowering.h"
2831 #include "llvm/Target/TargetInstrInfo.h"
2932 #include "llvm/Target/TargetMachine.h"
3033 #include "llvm/Target/TargetRegisterInfo.h"
31 #include "llvm/Support/Debug.h"
32 #include "llvm/Support/ErrorHandling.h"
33 #include "llvm/Support/raw_ostream.h"
3434
3535 using namespace llvm;
3636
1111 //===----------------------------------------------------------------------===//
1212
1313 #define DEBUG_TYPE "ifcvt"
14 #include "llvm/CodeGen/Passes.h"
1415 #include "BranchFolding.h"
15 #include "llvm/CodeGen/Passes.h"
16 #include "llvm/CodeGen/MachineModuleInfo.h"
16 #include "llvm/ADT/STLExtras.h"
17 #include "llvm/ADT/SmallSet.h"
18 #include "llvm/ADT/Statistic.h"
1719 #include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
1820 #include "llvm/CodeGen/MachineFunctionPass.h"
21 #include "llvm/CodeGen/MachineModuleInfo.h"
1922 #include "llvm/CodeGen/MachineRegisterInfo.h"
2023 #include "llvm/MC/MCInstrItineraries.h"
24 #include "llvm/Support/CommandLine.h"
25 #include "llvm/Support/Debug.h"
26 #include "llvm/Support/ErrorHandling.h"
27 #include "llvm/Support/raw_ostream.h"
2128 #include "llvm/Target/TargetInstrInfo.h"
2229 #include "llvm/Target/TargetLowering.h"
2330 #include "llvm/Target/TargetMachine.h"
2431 #include "llvm/Target/TargetRegisterInfo.h"
25 #include "llvm/Support/CommandLine.h"
26 #include "llvm/Support/Debug.h"
27 #include "llvm/Support/ErrorHandling.h"
28 #include "llvm/Support/raw_ostream.h"
29 #include "llvm/ADT/SmallSet.h"
30 #include "llvm/ADT/Statistic.h"
31 #include "llvm/ADT/STLExtras.h"
3232 using namespace llvm;
3333
3434 // Hidden options for help debugging.
2020 #include "llvm/CodeGen/LiveRangeEdit.h"
2121 #include "llvm/CodeGen/LiveStackAnalysis.h"
2222 #include "llvm/CodeGen/MachineDominators.h"
23 #include "llvm/CodeGen/MachineInstrBundle.h"
2423 #include "llvm/CodeGen/MachineFrameInfo.h"
2524 #include "llvm/CodeGen/MachineFunction.h"
25 #include "llvm/CodeGen/MachineInstrBundle.h"
2626 #include "llvm/CodeGen/MachineLoopInfo.h"
2727 #include "llvm/CodeGen/MachineRegisterInfo.h"
2828 #include "llvm/CodeGen/VirtRegMap.h"
29 #include "llvm/Target/TargetMachine.h"
30 #include "llvm/Target/TargetInstrInfo.h"
3129 #include "llvm/Support/CommandLine.h"
3230 #include "llvm/Support/Debug.h"
3331 #include "llvm/Support/raw_ostream.h"
32 #include "llvm/Target/TargetInstrInfo.h"
33 #include "llvm/Target/TargetMachine.h"
3434
3535 using namespace llvm;
3636
1212
1313 #define DEBUG_TYPE "regalloc"
1414 #include "InterferenceCache.h"
15 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
16 #include "llvm/Support/ErrorHandling.h"
1517 #include "llvm/Target/TargetRegisterInfo.h"
16 #include "llvm/Support/ErrorHandling.h"
17 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
1818
1919 using namespace llvm;
2020
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/CodeGen/IntrinsicLowering.h"
14 #include "llvm/ADT/SmallVector.h"
1415 #include "llvm/Constants.h"
16 #include "llvm/DataLayout.h"
1517 #include "llvm/DerivedTypes.h"
1618 #include "llvm/IRBuilder.h"
1719 #include "llvm/Module.h"
18 #include "llvm/Type.h"
19 #include "llvm/ADT/SmallVector.h"
2020 #include "llvm/Support/CallSite.h"
2121 #include "llvm/Support/ErrorHandling.h"
2222 #include "llvm/Support/raw_ostream.h"
23 #include "llvm/DataLayout.h"
23 #include "llvm/Type.h"
2424 using namespace llvm;
2525
2626 template
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Transforms/Scalar.h"
14 #include "llvm/PassManager.h"
13 #include "llvm/Target/TargetMachine.h"
14 #include "llvm/ADT/OwningPtr.h"
1515 #include "llvm/Assembly/PrintModulePass.h"
1616 #include "llvm/CodeGen/AsmPrinter.h"
17 #include "llvm/CodeGen/Passes.h"
1817 #include "llvm/CodeGen/MachineFunctionAnalysis.h"
1918 #include "llvm/CodeGen/MachineModuleInfo.h"
20 #include "llvm/Target/TargetInstrInfo.h"
21 #include "llvm/Target/TargetLowering.h"
22 #include "llvm/Target/TargetLoweringObjectFile.h"
23 #include "llvm/Target/TargetMachine.h"
24 #include "llvm/Target/TargetOptions.h"
25 #include "llvm/Target/TargetSubtargetInfo.h"
26 #include "llvm/Target/TargetRegisterInfo.h"
19 #include "llvm/CodeGen/Passes.h"
2720 #include "llvm/MC/MCAsmInfo.h"
2821 #include "llvm/MC/MCContext.h"
2922 #include "llvm/MC/MCInstrInfo.h"
3023 #include "llvm/MC/MCStreamer.h"
3124 #include "llvm/MC/MCSubtargetInfo.h"
32 #include "llvm/ADT/OwningPtr.h"
25 #include "llvm/PassManager.h"
3326 #include "llvm/Support/CommandLine.h"
27 #include "llvm/Support/ErrorHandling.h"
3428 #include "llvm/Support/FormattedStream.h"
35 #include "llvm/Support/ErrorHandling.h"
3629 #include "llvm/Support/TargetRegistry.h"
30 #include "llvm/Target/TargetInstrInfo.h"
31 #include "llvm/Target/TargetLowering.h"
32 #include "llvm/Target/TargetLoweringObjectFile.h"
33 #include "llvm/Target/TargetOptions.h"
34 #include "llvm/Target/TargetRegisterInfo.h"
35 #include "llvm/Target/TargetSubtargetInfo.h"
36 #include "llvm/Transforms/Scalar.h"
3737 using namespace llvm;
3838
3939 // Enable or disable FastISel. Both options are needed, because
1515
1616 #define DEBUG_TYPE "lexicalscopes"
1717 #include "llvm/CodeGen/LexicalScopes.h"
18 #include "llvm/CodeGen/MachineFunction.h"
19 #include "llvm/CodeGen/MachineInstr.h"
1820 #include "llvm/DebugInfo.h"
1921 #include "llvm/Function.h"
20 #include "llvm/CodeGen/MachineFunction.h"
21 #include "llvm/CodeGen/MachineInstr.h"
2222 #include "llvm/Support/Debug.h"
2323 #include "llvm/Support/ErrorHandling.h"
2424 #include "llvm/Support/FormattedStream.h"
2020
2121 #define DEBUG_TYPE "livedebug"
2222 #include "LiveDebugVariables.h"
23 #include "llvm/Constants.h"
24 #include "llvm/DebugInfo.h"
25 #include "llvm/Metadata.h"
26 #include "llvm/Value.h"
2723 #include "llvm/ADT/IntervalMap.h"
2824 #include "llvm/ADT/Statistic.h"
2925 #include "llvm/CodeGen/LexicalScopes.h"
3430 #include "llvm/CodeGen/MachineRegisterInfo.h"
3531 #include "llvm/CodeGen/Passes.h"
3632 #include "llvm/CodeGen/VirtRegMap.h"
33 #include "llvm/Constants.h"
34 #include "llvm/DebugInfo.h"
35 #include "llvm/Metadata.h"
3736 #include "llvm/Support/CommandLine.h"
3837 #include "llvm/Support/Debug.h"
3938 #include "llvm/Target/TargetInstrInfo.h"
4039 #include "llvm/Target/TargetMachine.h"
4140 #include "llvm/Target/TargetRegisterInfo.h"
41 #include "llvm/Value.h"
4242
4343 using namespace llvm;
4444
1818 //===----------------------------------------------------------------------===//
1919
2020 #include "llvm/CodeGen/LiveInterval.h"
21 #include "RegisterCoalescer.h"
22 #include "llvm/ADT/DenseMap.h"
23 #include "llvm/ADT/STLExtras.h"
24 #include "llvm/ADT/SmallSet.h"
2125 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
2226 #include "llvm/CodeGen/MachineRegisterInfo.h"
23 #include "llvm/ADT/DenseMap.h"
24 #include "llvm/ADT/SmallSet.h"
25 #include "llvm/ADT/STLExtras.h"
2627 #include "llvm/Support/Debug.h"
2728 #include "llvm/Support/raw_ostream.h"
2829 #include "llvm/Target/TargetRegisterInfo.h"
29 #include "RegisterCoalescer.h"
3030 #include
3131 using namespace llvm;
3232
1616
1717 #define DEBUG_TYPE "regalloc"
1818 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
19 #include "llvm/Value.h"
19 #include "LiveRangeCalc.h"
20 #include "llvm/ADT/DenseSet.h"
21 #include "llvm/ADT/STLExtras.h"
2022 #include "llvm/Analysis/AliasAnalysis.h"
2123 #include "llvm/CodeGen/LiveVariables.h"
2224 #include "llvm/CodeGen/MachineDominators.h"
2426 #include "llvm/CodeGen/MachineRegisterInfo.h"
2527 #include "llvm/CodeGen/Passes.h"
2628 #include "llvm/CodeGen/VirtRegMap.h"
27 #include "llvm/Target/TargetRegisterInfo.h"
28 #include "llvm/Target/TargetInstrInfo.h"
29 #include "llvm/Target/TargetMachine.h"
3029 #include "llvm/Support/CommandLine.h"
3130 #include "llvm/Support/Debug.h"
3231 #include "llvm/Support/ErrorHandling.h"
3332 #include "llvm/Support/raw_ostream.h"
34 #include "llvm/ADT/DenseSet.h"
35 #include "llvm/ADT/STLExtras.h"
36 #include "LiveRangeCalc.h"
33 #include "llvm/Target/TargetInstrInfo.h"
34 #include "llvm/Target/TargetMachine.h"
35 #include "llvm/Target/TargetRegisterInfo.h"
36 #include "llvm/Value.h"
3737 #include
38 #include
3839 #include
39 #include
4040 using namespace llvm;
4141
4242 // Switch to the new experimental algorithm for computing live intervals.
1818 #include "llvm/Support/Debug.h"
1919 #include "llvm/Support/raw_ostream.h"
2020 #include "llvm/Target/TargetRegisterInfo.h"
21
2221 #include
2322
2423 using namespace llvm;
1111 //===----------------------------------------------------------------------===//
1212
1313 #define DEBUG_TYPE "regalloc"
14 #include "llvm/CodeGen/LiveRangeEdit.h"
1415 #include "llvm/ADT/SetVector.h"
1516 #include "llvm/ADT/Statistic.h"
1617 #include "llvm/CodeGen/CalcSpillWeights.h"
1718 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
18 #include "llvm/CodeGen/LiveRangeEdit.h"
1919 #include "llvm/CodeGen/MachineRegisterInfo.h"
2020 #include "llvm/CodeGen/VirtRegMap.h"
21 #include "llvm/Target/TargetInstrInfo.h"
2221 #include "llvm/Support/Debug.h"
2322 #include "llvm/Support/raw_ostream.h"
23 #include "llvm/Target/TargetInstrInfo.h"
2424
2525 using namespace llvm;
2626
1111 //===----------------------------------------------------------------------===//
1212
1313 #define DEBUG_TYPE "regalloc"
14 #include "llvm/CodeGen/LiveRegMatrix.h"
1415 #include "RegisterCoalescer.h"
1516 #include "llvm/ADT/Statistic.h"
17 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
1618 #include "llvm/CodeGen/MachineRegisterInfo.h"
17 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
18 #include "llvm/CodeGen/LiveRegMatrix.h"
1919 #include "llvm/CodeGen/VirtRegMap.h"
20 #include "llvm/Support/Debug.h"
21 #include "llvm/Support/raw_ostream.h"
2022 #include "llvm/Target/TargetMachine.h"
2123 #include "llvm/Target/TargetRegisterInfo.h"
22 #include "llvm/Support/Debug.h"
23 #include "llvm/Support/raw_ostream.h"
2424
2525 using namespace llvm;
2626
1414
1515 #define DEBUG_TYPE "livestacks"
1616 #include "llvm/CodeGen/LiveStackAnalysis.h"
17 #include "llvm/ADT/Statistic.h"
1718 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
1819 #include "llvm/CodeGen/Passes.h"
19 #include "llvm/Target/TargetRegisterInfo.h"
2020 #include "llvm/Support/Debug.h"
2121 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/ADT/Statistic.h"
22 #include "llvm/Target/TargetRegisterInfo.h"
2323 #include
2424 using namespace llvm;
2525
2626 //===----------------------------------------------------------------------===//
2727
2828 #include "llvm/CodeGen/LiveVariables.h"
29 #include "llvm/ADT/DepthFirstIterator.h"
30 #include "llvm/ADT/STLExtras.h"
31 #include "llvm/ADT/SmallPtrSet.h"
32 #include "llvm/ADT/SmallSet.h"
2933 #include "llvm/CodeGen/MachineInstr.h"
3034 #include "llvm/CodeGen/MachineRegisterInfo.h"
3135 #include "llvm/CodeGen/Passes.h"
3236 #include "llvm/Support/Debug.h"
37 #include "llvm/Support/ErrorHandling.h"
3338 #include "llvm/Target/TargetInstrInfo.h"
3439 #include "llvm/Target/TargetMachine.h"
35 #include "llvm/Support/ErrorHandling.h"
36 #include "llvm/ADT/DepthFirstIterator.h"
37 #include "llvm/ADT/SmallPtrSet.h"
38 #include "llvm/ADT/SmallSet.h"
39 #include "llvm/ADT/STLExtras.h"
4040 #include
4141 using namespace llvm;
4242
1414 //===----------------------------------------------------------------------===//
1515
1616 #define DEBUG_TYPE "localstackalloc"
17 #include "llvm/CodeGen/Passes.h"
18 #include "llvm/ADT/STLExtras.h"
19 #include "llvm/ADT/SmallSet.h"
20 #include "llvm/ADT/Statistic.h"
21 #include "llvm/CodeGen/MachineFrameInfo.h"
22 #include "llvm/CodeGen/MachineFunction.h"
23 #include "llvm/CodeGen/MachineFunctionPass.h"
24 #include "llvm/CodeGen/MachineRegisterInfo.h"
1725 #include "llvm/Constants.h"
1826 #include "llvm/DerivedTypes.h"
1927 #include "llvm/Instructions.h"
2129 #include "llvm/LLVMContext.h"
2230 #include "llvm/Module.h"
2331 #include "llvm/Pass.h"
24 #include "llvm/ADT/SmallSet.h"
25 #include "llvm/ADT/Statistic.h"
26 #include "llvm/ADT/STLExtras.h"
27 #include "llvm/CodeGen/MachineFrameInfo.h"
28 #include "llvm/CodeGen/MachineFunction.h"
29 #include "llvm/CodeGen/MachineFunctionPass.h"
30 #include "llvm/CodeGen/MachineRegisterInfo.h"
31 #include "llvm/CodeGen/Passes.h"
3232 #include "llvm/Support/Debug.h"
3333 #include "llvm/Support/ErrorHandling.h"
3434 #include "llvm/Support/raw_ostream.h"
35 #include "llvm/Target/TargetFrameLowering.h"
3536 #include "llvm/Target/TargetRegisterInfo.h"
36 #include "llvm/Target/TargetFrameLowering.h"
3737
3838 using namespace llvm;
3939
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/CodeGen/MachineBasicBlock.h"
14 #include "llvm/ADT/SmallPtrSet.h"
15 #include "llvm/ADT/SmallString.h"
16 #include "llvm/Assembly/Writer.h"
1417 #include "llvm/BasicBlock.h"
1518 #include "llvm/CodeGen/LiveVariables.h"
1619 #include "llvm/CodeGen/MachineDominators.h"
1720 #include "llvm/CodeGen/MachineFunction.h"
1821 #include "llvm/CodeGen/MachineLoopInfo.h"
1922 #include "llvm/CodeGen/SlotIndexes.h"
23 #include "llvm/DataLayout.h"
2024 #include "llvm/MC/MCAsmInfo.h"
2125 #include "llvm/MC/MCContext.h"
22 #include "llvm/Target/TargetRegisterInfo.h"
23 #include "llvm/DataLayout.h"
24 #include "llvm/Target/TargetInstrInfo.h"
25 #include "llvm/Target/TargetMachine.h"
26 #include "llvm/Assembly/Writer.h"
27 #include "llvm/ADT/SmallString.h"
28 #include "llvm/ADT/SmallPtrSet.h"
2926 #include "llvm/Support/Debug.h"
3027 #include "llvm/Support/LeakDetector.h"
3128 #include "llvm/Support/raw_ostream.h"
29 #include "llvm/Target/TargetInstrInfo.h"
30 #include "llvm/Target/TargetMachine.h"
31 #include "llvm/Target/TargetRegisterInfo.h"
3232 #include
3333 using namespace llvm;
3434
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
14 #include "llvm/Analysis/BlockFrequencyImpl.h"
15 #include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
16 #include "llvm/CodeGen/Passes.h"
1317 #include "llvm/InitializePasses.h"
14 #include "llvm/Analysis/BlockFrequencyImpl.h"
15 #include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
16 #include "llvm/CodeGen/Passes.h"
17 #include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
1818
1919 using namespace llvm;
2020
2525 //===----------------------------------------------------------------------===//
2626
2727 #define DEBUG_TYPE "block-placement2"
28 #include "llvm/CodeGen/Passes.h"
29 #include "llvm/ADT/DenseMap.h"
30 #include "llvm/ADT/SmallPtrSet.h"
31 #include "llvm/ADT/SmallVector.h"
32 #include "llvm/ADT/Statistic.h"
2833 #include "llvm/CodeGen/MachineBasicBlock.h"
2934 #include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
3035 #include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
3237 #include "llvm/CodeGen/MachineFunctionPass.h"
3338 #include "llvm/CodeGen/MachineLoopInfo.h"
3439 #include "llvm/CodeGen/MachineModuleInfo.h"
35 #include "llvm/CodeGen/Passes.h"
3640 #include "llvm/Support/Allocator.h"
3741 #include "llvm/Support/Debug.h"
38 #include "llvm/ADT/DenseMap.h"
39 #include "llvm/ADT/SmallPtrSet.h"
40 #include "llvm/ADT/SmallVector.h"
41 #include "llvm/ADT/Statistic.h"
4242 #include "llvm/Target/TargetInstrInfo.h"
4343 #include "llvm/Target/TargetLowering.h"
4444 #include
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Instructions.h"
1413 #include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
1514 #include "llvm/CodeGen/MachineBasicBlock.h"
15 #include "llvm/Instructions.h"
1616 #include "llvm/Support/Debug.h"
1717 #include "llvm/Support/raw_ostream.h"
1818
1414
1515 #define DEBUG_TYPE "machine-cse"
1616 #include "llvm/CodeGen/Passes.h"
17 #include "llvm/CodeGen/MachineDominators.h"
18 #include "llvm/CodeGen/MachineInstr.h"
19 #include "llvm/CodeGen/MachineRegisterInfo.h"
20 #include "llvm/Analysis/AliasAnalysis.h"
21 #include "llvm/Target/TargetInstrInfo.h"
2217 #include "llvm/ADT/DenseMap.h"
2318 #include "llvm/ADT/ScopedHashTable.h"
2419 #include "llvm/ADT/SmallSet.h"
2520 #include "llvm/ADT/Statistic.h"
21 #include "llvm/Analysis/AliasAnalysis.h"
22 #include "llvm/CodeGen/MachineDominators.h"
23 #include "llvm/CodeGen/MachineInstr.h"
24 #include "llvm/CodeGen/MachineRegisterInfo.h"
2625 #include "llvm/Support/Debug.h"
2726 #include "llvm/Support/RecyclingAllocator.h"
27 #include "llvm/Target/TargetInstrInfo.h"
2828 using namespace llvm;
2929
3030 STATISTIC(NumCoalesces, "Number of copies coalesced");
1212
1313 #define DEBUG_TYPE "codegen-cp"
1414 #include "llvm/CodeGen/Passes.h"
15 #include "llvm/Pass.h"
16 #include "llvm/CodeGen/MachineFunction.h"
17 #include "llvm/CodeGen/MachineFunctionPass.h"
18 #include "llvm/CodeGen/MachineRegisterInfo.h"
19 #include "llvm/Target/TargetInstrInfo.h"
20 #include "llvm/Target/TargetRegisterInfo.h"
21 #include "llvm/Support/Debug.h"
22 #include "llvm/Support/ErrorHandling.h"
23 #include "llvm/Support/raw_ostream.h"
2415 #include "llvm/ADT/DenseMap.h"
2516 #include "llvm/ADT/SetVector.h"
2617 #include "llvm/ADT/SmallVector.h"
2718 #include "llvm/ADT/Statistic.h"
19 #include "llvm/CodeGen/MachineFunction.h"
20 #include "llvm/CodeGen/MachineFunctionPass.h"
21 #include "llvm/CodeGen/MachineRegisterInfo.h"
22 #include "llvm/Pass.h"
23 #include "llvm/Support/Debug.h"
24 #include "llvm/Support/ErrorHandling.h"
25 #include "llvm/Support/raw_ostream.h"
26 #include "llvm/Target/TargetInstrInfo.h"
27 #include "llvm/Target/TargetRegisterInfo.h"
2828 using namespace llvm;
2929
3030 STATISTIC(NumDeletes, "Number of dead copies deleted");
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/CodeGen/MachineFunction.h"
16 #include "llvm/DebugInfo.h"
17 #include "llvm/Function.h"
16 #include "llvm/ADT/STLExtras.h"
17 #include "llvm/ADT/SmallString.h"
18 #include "llvm/Analysis/ConstantFolding.h"
1819 #include "llvm/CodeGen/MachineConstantPool.h"
20 #include "llvm/CodeGen/MachineFrameInfo.h"
1921 #include "llvm/CodeGen/MachineFunctionPass.h"
20 #include "llvm/CodeGen/MachineFrameInfo.h"
2122 #include "llvm/CodeGen/MachineInstr.h"
2223 #include "llvm/CodeGen/MachineJumpTableInfo.h"
2324 #include "llvm/CodeGen/MachineModuleInfo.h"
2425 #include "llvm/CodeGen/MachineRegisterInfo.h"
2526 #include "llvm/CodeGen/Passes.h"
27 #include "llvm/DataLayout.h"
28 #include "llvm/DebugInfo.h"
29 #include "llvm/Function.h"
2630 #include "llvm/MC/MCAsmInfo.h"
2731 #include "llvm/MC/MCContext.h"
28 #include "llvm/Analysis/ConstantFolding.h"
2932 #include "llvm/Support/Debug.h"
30 #include "llvm/DataLayout.h"
33 #include "llvm/Support/GraphWriter.h"
34 #include "llvm/Support/raw_ostream.h"
35 #include "llvm/Target/TargetFrameLowering.h"
3136 #include "llvm/Target/TargetLowering.h"
3237 #include "llvm/Target/TargetMachine.h"
33 #include "llvm/Target/TargetFrameLowering.h"
34 #include "llvm/ADT/SmallString.h"
35 #include "llvm/ADT/STLExtras.h"
36 #include "llvm/Support/GraphWriter.h"
37 #include "llvm/Support/raw_ostream.h"
3838 using namespace llvm;
3939
4040 //===----------------------------------------------------------------------===//
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/CodeGen/Passes.h"
14 #include "llvm/CodeGen/MachineFunction.h"
1415 #include "llvm/CodeGen/MachineFunctionPass.h"
15 #include "llvm/CodeGen/MachineFunction.h"
1616 #include "llvm/CodeGen/SlotIndexes.h"
17 #include "llvm/Support/Debug.h"
1718 #include "llvm/Support/raw_ostream.h"
18 #include "llvm/Support/Debug.h"
1919
2020 using namespace llvm;
2121
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/CodeGen/MachineInstr.h"
14 #include "llvm/Constants.h"
15 #include "llvm/DebugInfo.h"
16 #include "llvm/Function.h"
17 #include "llvm/InlineAsm.h"
18 #include "llvm/LLVMContext.h"
19 #include "llvm/Metadata.h"
20 #include "llvm/Module.h"
21 #include "llvm/Type.h"
22 #include "llvm/Value.h"
14 #include "llvm/ADT/FoldingSet.h"
15 #include "llvm/ADT/Hashing.h"
16 #include "llvm/Analysis/AliasAnalysis.h"
2317 #include "llvm/Assembly/Writer.h"
2418 #include "llvm/CodeGen/MachineConstantPool.h"
2519 #include "llvm/CodeGen/MachineFunction.h"
2721 #include "llvm/CodeGen/MachineModuleInfo.h"
2822 #include "llvm/CodeGen/MachineRegisterInfo.h"
2923 #include "llvm/CodeGen/PseudoSourceValue.h"
24 #include "llvm/Constants.h"
25 #include "llvm/DebugInfo.h"
26 #include "llvm/Function.h"
27 #include "llvm/InlineAsm.h"
28 #include "llvm/LLVMContext.h"
3029 #include "llvm/MC/MCInstrDesc.h"
3130 #include "llvm/MC/MCSymbol.h"
32 #include "llvm/Target/TargetMachine.h"
33 #include "llvm/Target/TargetInstrInfo.h"
34 #include "llvm/Target/TargetRegisterInfo.h"
35 #include "llvm/Analysis/AliasAnalysis.h"
31 #include "llvm/Metadata.h"
32 #include "llvm/Module.h"
3633 #include "llvm/Support/Debug.h"
3734 #include "llvm/Support/ErrorHandling.h"
3835 #include "llvm/Support/LeakDetector.h"
3936 #include "llvm/Support/MathExtras.h"
4037 #include "llvm/Support/raw_ostream.h"
41 #include "llvm/ADT/FoldingSet.h"
42 #include "llvm/ADT/Hashing.h"
38 #include "llvm/Target/TargetInstrInfo.h"
39 #include "llvm/Target/TargetMachine.h"
40 #include "llvm/Target/TargetRegisterInfo.h"
41 #include "llvm/Type.h"
42 #include "llvm/Value.h"
4343 using namespace llvm;
4444
4545 //===----------------------------------------------------------------------===//
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/CodeGen/MachineInstrBundle.h"
10 #include "llvm/ADT/SmallSet.h"
11 #include "llvm/ADT/SmallVector.h"
12 #include "llvm/CodeGen/MachineFunctionPass.h"
1013 #include "llvm/CodeGen/MachineInstrBuilder.h"
1114 #include "llvm/CodeGen/Passes.h"
12 #include "llvm/CodeGen/MachineFunctionPass.h"
1315 #include "llvm/Target/TargetInstrInfo.h"
1416 #include "llvm/Target/TargetMachine.h"
1517 #include "llvm/Target/TargetRegisterInfo.h"
16 #include "llvm/ADT/SmallSet.h"
17 #include "llvm/ADT/SmallVector.h"
1818 using namespace llvm;
1919
2020 namespace {
2121
2222 #define DEBUG_TYPE "machine-licm"
2323 #include "llvm/CodeGen/Passes.h"
24 #include "llvm/ADT/DenseMap.h"
25 #include "llvm/ADT/SmallSet.h"
26 #include "llvm/ADT/Statistic.h"
27 #include "llvm/Analysis/AliasAnalysis.h"
2428 #include "llvm/CodeGen/MachineDominators.h"
2529 #include "llvm/CodeGen/MachineFrameInfo.h"
2630 #include "llvm/CodeGen/MachineLoopInfo.h"
2832 #include "llvm/CodeGen/MachineRegisterInfo.h"
2933 #include "llvm/CodeGen/PseudoSourceValue.h"
3034 #include "llvm/MC/MCInstrItineraries.h"
31 #include "llvm/Target/TargetLowering.h"
32 #include "llvm/Target/TargetRegisterInfo.h"
33 #include "llvm/Target/TargetInstrInfo.h"
34 #include "llvm/Target/TargetMachine.h"
35 #include "llvm/Analysis/AliasAnalysis.h"
36 #include "llvm/ADT/DenseMap.h"
37 #include "llvm/ADT/SmallSet.h"
38 #include "llvm/ADT/Statistic.h"
3935 #include "llvm/Support/CommandLine.h"
4036 #include "llvm/Support/Debug.h"
4137 #include "llvm/Support/raw_ostream.h"
38 #include "llvm/Target/TargetInstrInfo.h"
39 #include "llvm/Target/TargetLowering.h"
40 #include "llvm/Target/TargetMachine.h"
41 #include "llvm/Target/TargetRegisterInfo.h"
4242 using namespace llvm;
4343
4444 static cl::opt
1414 //===----------------------------------------------------------------------===//
1515
1616 #include "llvm/CodeGen/MachineLoopInfo.h"
17 #include "llvm/Analysis/LoopInfoImpl.h"
1718 #include "llvm/CodeGen/MachineDominators.h"
1819 #include "llvm/CodeGen/Passes.h"
19 #include "llvm/Analysis/LoopInfoImpl.h"
2020 #include "llvm/Support/Debug.h"
2121 using namespace llvm;
2222
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/CodeGen/MachineModuleInfo.h"
10
10 #include "llvm/ADT/PointerUnion.h"
11 #include "llvm/Analysis/ValueTracking.h"
12 #include "llvm/CodeGen/MachineFunction.h"
13 #include "llvm/CodeGen/MachineFunctionPass.h"
14 #include "llvm/CodeGen/Passes.h"
1115 #include "llvm/Constants.h"
1216 #include "llvm/DerivedTypes.h"
1317 #include "llvm/GlobalVariable.h"
14 #include "llvm/Module.h"
15 #include "llvm/Analysis/ValueTracking.h"
16 #include "llvm/CodeGen/MachineFunctionPass.h"
17 #include "llvm/CodeGen/MachineFunction.h"
18 #include "llvm/CodeGen/Passes.h"
1918 #include "llvm/MC/MCObjectFileInfo.h"
2019 #include "llvm/MC/MCSymbol.h"
21 #include "llvm/ADT/PointerUnion.h"
20 #include "llvm/Module.h"
2221 #include "llvm/Support/Dwarf.h"
2322 #include "llvm/Support/ErrorHandling.h"
2423 using namespace llvm;
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/CodeGen/MachineSSAUpdater.h"
15 #include "llvm/ADT/DenseMap.h"
16 #include "llvm/ADT/SmallVector.h"
1517 #include "llvm/CodeGen/MachineInstr.h"
1618 #include "llvm/CodeGen/MachineInstrBuilder.h"
1719 #include "llvm/CodeGen/MachineRegisterInfo.h"
18 #include "llvm/Target/TargetInstrInfo.h"
19 #include "llvm/Target/TargetMachine.h"
20 #include "llvm/Target/TargetRegisterInfo.h"
21 #include "llvm/ADT/DenseMap.h"
22 #include "llvm/ADT/SmallVector.h"
2320 #include "llvm/Support/AlignOf.h"
2421 #include "llvm/Support/Allocator.h"
2522 #include "llvm/Support/Debug.h"
2623 #include "llvm/Support/ErrorHandling.h"
2724 #include "llvm/Support/raw_ostream.h"
25 #include "llvm/Target/TargetInstrInfo.h"
26 #include "llvm/Target/TargetMachine.h"
27 #include "llvm/Target/TargetRegisterInfo.h"
2828 #include "llvm/Transforms/Utils/SSAUpdaterImpl.h"
2929 using namespace llvm;
3030
1313
1414 #define DEBUG_TYPE "misched"
1515
16 #include "llvm/CodeGen/MachineScheduler.h"
17 #include "llvm/ADT/OwningPtr.h"
18 #include "llvm/ADT/PriorityQueue.h"
19 #include "llvm/Analysis/AliasAnalysis.h"
1620 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
17 #include "llvm/CodeGen/MachineScheduler.h"
1821 #include "llvm/CodeGen/Passes.h"
1922 #include "llvm/CodeGen/RegisterClassInfo.h"
2023 #include "llvm/CodeGen/ScheduleDFS.h"
2124 #include "llvm/CodeGen/ScheduleHazardRecognizer.h"
22 #include "llvm/Analysis/AliasAnalysis.h"
2325 #include "llvm/Support/CommandLine.h"
2426 #include "llvm/Support/Debug.h"
2527 #include "llvm/Support/ErrorHandling.h"
2628 #include "llvm/Support/raw_ostream.h"
27 #include "llvm/ADT/OwningPtr.h"
28 #include "llvm/ADT/PriorityQueue.h"
29
3029 #include
3130
3231 using namespace llvm;
1717
1818 #define DEBUG_TYPE "machine-sink"
1919 #include "llvm/CodeGen/Passes.h"
20 #include "llvm/CodeGen/MachineRegisterInfo.h"
20 #include "llvm/ADT/SmallSet.h"
21 #include "llvm/ADT/Statistic.h"
22 #include "llvm/Analysis/AliasAnalysis.h"
2123 #include "llvm/CodeGen/MachineDominators.h"
2224 #include "llvm/CodeGen/MachineLoopInfo.h"
23 #include "llvm/Analysis/AliasAnalysis.h"
24 #include "llvm/Target/TargetRegisterInfo.h"
25 #include "llvm/Target/TargetInstrInfo.h"
26 #include "llvm/Target/TargetMachine.h"
27 #include "llvm/ADT/SmallSet.h"
28 #include "llvm/ADT/Statistic.h"
25 #include "llvm/CodeGen/MachineRegisterInfo.h"
2926 #include "llvm/Support/CommandLine.h"
3027 #include "llvm/Support/Debug.h"
3128 #include "llvm/Support/raw_ostream.h"
29 #include "llvm/Target/TargetInstrInfo.h"
30 #include "llvm/Target/TargetMachine.h"
31 #include "llvm/Target/TargetRegisterInfo.h"
3232 using namespace llvm;
3333
3434 static cl::opt
88
99 #define DEBUG_TYPE "machine-trace-metrics"
1010 #include "MachineTraceMetrics.h"
11 #include "llvm/ADT/PostOrderIterator.h"
12 #include "llvm/ADT/SparseSet.h"
1113 #include "llvm/CodeGen/MachineBasicBlock.h"
1214 #include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
1315 #include "llvm/CodeGen/MachineLoopInfo.h"
1416 #include "llvm/CodeGen/MachineRegisterInfo.h"
1517 #include "llvm/CodeGen/Passes.h"
1618 #include "llvm/MC/MCSubtargetInfo.h"
19 #include "llvm/Support/Debug.h"
20 #include "llvm/Support/raw_ostream.h"
1721 #include "llvm/Target/TargetInstrInfo.h"
1822 #include "llvm/Target/TargetRegisterInfo.h"
1923 #include "llvm/Target/TargetSubtargetInfo.h"
20 #include "llvm/Support/Debug.h"
21 #include "llvm/Support/raw_ostream.h"
22 #include "llvm/ADT/PostOrderIterator.h"
23 #include "llvm/ADT/SparseSet.h"
2424
2525 using namespace llvm;
2626
2222 // the verifier errors.
2323 //===----------------------------------------------------------------------===//
2424
25 #include "llvm/BasicBlock.h"
26 #include "llvm/InlineAsm.h"
27 #include "llvm/Instructions.h"
28 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
29 #include "llvm/CodeGen/LiveVariables.h"
30 #include "llvm/CodeGen/LiveStackAnalysis.h"
31 #include "llvm/CodeGen/MachineInstrBundle.h"
32 #include "llvm/CodeGen/MachineFunctionPass.h"
33 #include "llvm/CodeGen/MachineFrameInfo.h"
34 #include "llvm/CodeGen/MachineMemOperand.h"
35 #include "llvm/CodeGen/MachineRegisterInfo.h"
3625 #include "llvm/CodeGen/Passes.h"
37 #include "llvm/MC/MCAsmInfo.h"
38 #include "llvm/Target/TargetMachine.h"
39 #include "llvm/Target/TargetRegisterInfo.h"
40 #include "llvm/Target/TargetInstrInfo.h"
4126 #include "llvm/ADT/DenseSet.h"
4227 #include "llvm/ADT/SetOperations.h"
4328 #include "llvm/ADT/SmallVector.h"
29 #include "llvm/BasicBlock.h"
30 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
31 #include "llvm/CodeGen/LiveStackAnalysis.h"
32 #include "llvm/CodeGen/LiveVariables.h"
33 #include "llvm/CodeGen/MachineFrameInfo.h"
34 #include "llvm/CodeGen/MachineFunctionPass.h"
35 #include "llvm/CodeGen/MachineInstrBundle.h"
36 #include "llvm/CodeGen/MachineMemOperand.h"
37 #include "llvm/CodeGen/MachineRegisterInfo.h"
38 #include "llvm/InlineAsm.h"
39 #include "llvm/Instructions.h"
40 #include "llvm/MC/MCAsmInfo.h"
4441 #include "llvm/Support/Debug.h"
4542 #include "llvm/Support/ErrorHandling.h"
4643 #include "llvm/Support/raw_ostream.h"
44 #include "llvm/Target/TargetInstrInfo.h"
45 #include "llvm/Target/TargetMachine.h"
46 #include "llvm/Target/TargetRegisterInfo.h"
4747 using namespace llvm;
4848
4949 namespace {
1313
1414 #define DEBUG_TYPE "phi-opt"
1515 #include "llvm/CodeGen/Passes.h"
16 #include "llvm/ADT/SmallPtrSet.h"
17 #include "llvm/ADT/Statistic.h"
1618 #include "llvm/CodeGen/MachineFunctionPass.h"
1719 #include "llvm/CodeGen/MachineInstr.h"
1820 #include "llvm/CodeGen/MachineRegisterInfo.h"
21 #include "llvm/Function.h"
1922 #include "llvm/Target/TargetInstrInfo.h"
20 #include "llvm/Function.h"
21 #include "llvm/ADT/SmallPtrSet.h"
22 #include "llvm/ADT/Statistic.h"
2323 using namespace llvm;
2424
2525 STATISTIC(NumPHICycles, "Number of PHI cycles replaced");
1313 //===----------------------------------------------------------------------===//
1414
1515 #define DEBUG_TYPE "phielim"
16 #include "llvm/CodeGen/Passes.h"
1617 #include "PHIEliminationUtils.h"
18 #include "llvm/ADT/STLExtras.h"
19 #include "llvm/ADT/SmallPtrSet.h"
20 #include "llvm/ADT/Statistic.h"
1721 #include "llvm/CodeGen/LiveVariables.h"
18 #include "llvm/CodeGen/Passes.h"
1922 #include "llvm/CodeGen/MachineDominators.h"
2023 #include "llvm/CodeGen/MachineInstr.h"
2124 #include "llvm/CodeGen/MachineInstrBuilder.h"
2225 #include "llvm/CodeGen/MachineLoopInfo.h"
2326 #include "llvm/CodeGen/MachineRegisterInfo.h"
24 #include "llvm/Target/TargetInstrInfo.h"
2527 #include "llvm/Function.h"
26 #include "llvm/Target/TargetMachine.h"
27 #include "llvm/ADT/SmallPtrSet.h"
28 #include "llvm/ADT/STLExtras.h"
29 #include "llvm/ADT/Statistic.h"
3028 #include "llvm/Support/CommandLine.h"
3129 #include "llvm/Support/Compiler.h"
3230 #include "llvm/Support/Debug.h"
31 #include "llvm/Target/TargetInstrInfo.h"
32 #include "llvm/Target/TargetMachine.h"
3333 #include
3434 using namespace llvm;
3535
77 //===----------------------------------------------------------------------===//
88
99 #include "PHIEliminationUtils.h"
10 #include "llvm/ADT/SmallPtrSet.h"
1011 #include "llvm/CodeGen/MachineBasicBlock.h"
1112 #include "llvm/CodeGen/MachineFunction.h"
1213 #include "llvm/CodeGen/MachineRegisterInfo.h"
13 #include "llvm/ADT/SmallPtrSet.h"
1414 using namespace llvm;
1515
1616 // findCopyInsertPoint - Find a safe place in MBB to insert a copy from SrcReg
1111 //
1212 //===---------------------------------------------------------------------===//
1313
14 #include "llvm/CodeGen/Passes.h"
1415 #include "llvm/Analysis/Passes.h"
1516 #include "llvm/Analysis/Verifier.h"
16 #include "llvm/Transforms/Scalar.h"
17 #include "llvm/PassManager.h"
17 #include "llvm/Assembly/PrintModulePass.h"
1818 #include "llvm/CodeGen/GCStrategy.h"
1919 #include "llvm/CodeGen/MachineFunctionPass.h"
20 #include "llvm/CodeGen/Passes.h"
2120 #include "llvm/CodeGen/RegAllocRegistry.h"
21 #include "llvm/MC/MCAsmInfo.h"
22 #include "llvm/PassManager.h"
23 #include "llvm/Support/CommandLine.h"
24 #include "llvm/Support/Debug.h"
25 #include "llvm/Support/ErrorHandling.h"
2226 #include "llvm/Target/TargetLowering.h"
2327 #include "llvm/Target/TargetOptions.h"
2428 #include "llvm/Target/TargetSubtargetInfo.h"
25 #include "llvm/MC/MCAsmInfo.h"
26 #include "llvm/Assembly/PrintModulePass.h"
27 #include "llvm/Support/CommandLine.h"
28 #include "llvm/Support/Debug.h"
29 #include "llvm/Support/ErrorHandling.h"
29 #include "llvm/Transforms/Scalar.h"
3030
3131 using namespace llvm;
3232
5252
5353 #define DEBUG_TYPE "peephole-opt"
5454 #include "llvm/CodeGen/Passes.h"
55 #include "llvm/CodeGen/MachineDominators.h"
56 #include "llvm/CodeGen/MachineInstrBuilder.h"
57 #include "llvm/CodeGen/MachineRegisterInfo.h"
58 #include "llvm/Target/TargetInstrInfo.h"
59 #include "llvm/Target/TargetRegisterInfo.h"
60 #include "llvm/Support/CommandLine.h"
6155 #include "llvm/ADT/DenseMap.h"
6256 #include "llvm/ADT/SmallPtrSet.h"
6357 #include "llvm/ADT/SmallSet.h"
6458 #include "llvm/ADT/Statistic.h"
59 #include "llvm/CodeGen/MachineDominators.h"
60 #include "llvm/CodeGen/MachineInstrBuilder.h"
61 #include "llvm/CodeGen/MachineRegisterInfo.h"
62 #include "llvm/Support/CommandLine.h"
63 #include "llvm/Target/TargetInstrInfo.h"
64 #include "llvm/Target/TargetRegisterInfo.h"
6565 using namespace llvm;
6666
6767 // Optimize Extensions
1818 //===----------------------------------------------------------------------===//
1919
2020 #define DEBUG_TYPE "post-RA-sched"
21 #include "llvm/CodeGen/Passes.h"
22 #include "AggressiveAntiDepBreaker.h"
2123 #include "AntiDepBreaker.h"
22 #include "AggressiveAntiDepBreaker.h"
2324 #include "CriticalAntiDepBreaker.h"
24 #include "llvm/CodeGen/Passes.h"
25 #include "llvm/ADT/BitVector.h"
26 #include "llvm/ADT/Statistic.h"
27 #include "llvm/Analysis/AliasAnalysis.h"
2528 #include "llvm/CodeGen/LatencyPriorityQueue.h"
26 #include "llvm/CodeGen/SchedulerRegistry.h"
2729 #include "llvm/CodeGen/MachineDominators.h"
2830 #include "llvm/CodeGen/MachineFrameInfo.h"
2931 #include "llvm/CodeGen/MachineFunctionPass.h"
3234 #include "llvm/CodeGen/RegisterClassInfo.h"
3335 #include "llvm/CodeGen/ScheduleDAGInstrs.h"
3436 #include "llvm/CodeGen/ScheduleHazardRecognizer.h"
35 #include "llvm/Analysis/AliasAnalysis.h"
36 #include "llvm/Target/TargetLowering.h"
37 #include "llvm/Target/TargetMachine.h"
38 #include "llvm/Target/TargetInstrInfo.h"
39 #include "llvm/Target/TargetRegisterInfo.h"
40 #include "llvm/Target/TargetSubtargetInfo.h"
37 #include "llvm/CodeGen/SchedulerRegistry.h"
4138 #include "llvm/Support/CommandLine.h"
4239 #include "llvm/Support/Debug.h"
4340 #include "llvm/Support/ErrorHandling.h"
4441 #include "llvm/Support/raw_ostream.h"
45 #include "llvm/ADT/BitVector.h"
46 #include "llvm/ADT/Statistic.h"
42 #include "llvm/Target/TargetInstrInfo.h"
43 #include "llvm/Target/TargetLowering.h"
44 #include "llvm/Target/TargetMachine.h"
45 #include "llvm/Target/TargetRegisterInfo.h"
46 #include "llvm/Target/TargetSubtargetInfo.h"
4747 using namespace llvm;
4848
4949 STATISTIC(NumNoops, "Number of noops inserted");
2020
2121 #define DEBUG_TYPE "pei"
2222 #include "PrologEpilogInserter.h"
23 #include "llvm/InlineAsm.h"
23 #include "llvm/ADT/IndexedMap.h"
24 #include "llvm/ADT/STLExtras.h"
25 #include "llvm/ADT/SmallSet.h"
26 #include "llvm/ADT/Statistic.h"
2427 #include "llvm/CodeGen/MachineDominators.h"
28 #include "llvm/CodeGen/MachineFrameInfo.h"
29 #include "llvm/CodeGen/MachineInstr.h"
2530 #include "llvm/CodeGen/MachineLoopInfo.h"
26 #include "llvm/CodeGen/MachineInstr.h"
27 #include "llvm/CodeGen/MachineFrameInfo.h"
2831 #include "llvm/CodeGen/MachineRegisterInfo.h"
2932 #include "llvm/CodeGen/RegisterScavenging.h"
33 #include "llvm/InlineAsm.h"
34 #include "llvm/Support/CommandLine.h"
35 #include "llvm/Support/Compiler.h"
36 #include "llvm/Support/Debug.h"
37 #include "llvm/Target/TargetFrameLowering.h"
38 #include "llvm/Target/TargetInstrInfo.h"
3039 #include "llvm/Target/TargetMachine.h"
3140 #include "llvm/Target/TargetOptions.h"
3241 #include "llvm/Target/TargetRegisterInfo.h"
33 #include "llvm/Target/TargetFrameLowering.h"
34 #include "llvm/Target/TargetInstrInfo.h"
35 #include "llvm/Support/CommandLine.h"
36 #include "llvm/Support/Compiler.h"
37 #include "llvm/Support/Debug.h"
38 #include "llvm/ADT/IndexedMap.h"
39 #include "llvm/ADT/SmallSet.h"
40 #include "llvm/ADT/Statistic.h"
41 #include "llvm/ADT/STLExtras.h"
4242 #include
4343
4444 using namespace llvm;
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/CodeGen/PseudoSourceValue.h"
1314 #include "llvm/CodeGen/MachineFrameInfo.h"
14 #include "llvm/CodeGen/PseudoSourceValue.h"
1515 #include "llvm/DerivedTypes.h"
1616 #include "llvm/LLVMContext.h"
1717 #include "llvm/Support/ErrorHandling.h"
1818 #include "llvm/Support/ManagedStatic.h"
19 #include "llvm/Support/Mutex.h"
1920 #include "llvm/Support/raw_ostream.h"
20 #include "llvm/Support/Mutex.h"
2121 #include
2222 using namespace llvm;
2323
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "regalloc"
15 #include "llvm/CodeGen/Passes.h"
1516 #include "AllocationOrder.h"
17 #include "LiveDebugVariables.h"
1618 #include "RegAllocBase.h"
17 #include "LiveDebugVariables.h"
1819 #include "Spiller.h"
1920 #include "llvm/Analysis/AliasAnalysis.h"
20 #include "llvm/PassAnalysisSupport.h"
2121 #include "llvm/CodeGen/CalcSpillWeights.h"
2222 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
2323 #include "llvm/CodeGen/LiveRangeEdit.h"
2727 #include "llvm/CodeGen/MachineInstr.h"
2828 #include "llvm/CodeGen/MachineLoopInfo.h"
2929 #include "llvm/CodeGen/MachineRegisterInfo.h"
30 #include "llvm/CodeGen/Passes.h"
3130 #include "llvm/CodeGen/RegAllocRegistry.h"
3231 #include "llvm/CodeGen/VirtRegMap.h"
32 #include "llvm/PassAnalysisSupport.h"
33 #include "llvm/Support/Debug.h"
34 #include "llvm/Support/raw_ostream.h"
3335 #include "llvm/Target/TargetMachine.h"
3436 #include "llvm/Target/TargetOptions.h"
3537 #include "llvm/Target/TargetRegisterInfo.h"
36 #include "llvm/Support/Debug.h"
37 #include "llvm/Support/raw_ostream.h"
38
3938 #include
4039 #include
4140
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "regalloc"
15 #include "llvm/CodeGen/Passes.h"
16 #include "llvm/ADT/DenseMap.h"
17 #include "llvm/ADT/IndexedMap.h"
18 #include "llvm/ADT/STLExtras.h"
19 #include "llvm/ADT/SmallSet.h"
20 #include "llvm/ADT/SmallVector.h"
21 #include "llvm/ADT/SparseSet.h"
22 #include "llvm/ADT/Statistic.h"
1523 #include "llvm/BasicBlock.h"
24 #include "llvm/CodeGen/MachineFrameInfo.h"
1625 #include "llvm/CodeGen/MachineFunctionPass.h"
1726 #include "llvm/CodeGen/MachineInstr.h"
1827 #include "llvm/CodeGen/MachineInstrBuilder.h"
19 #include "llvm/CodeGen/MachineFrameInfo.h"
2028 #include "llvm/CodeGen/MachineRegisterInfo.h"
21 #include "llvm/CodeGen/Passes.h"
2229 #include "llvm/CodeGen/RegAllocRegistry.h"
2330 #include "llvm/CodeGen/RegisterClassInfo.h"
24 #include "llvm/Target/TargetInstrInfo.h"
25 #include "llvm/Target/TargetMachine.h"
2631 #include "llvm/Support/CommandLine.h"
2732 #include "llvm/Support/Debug.h"
2833 #include "llvm/Support/ErrorHandling.h"
2934 #include "llvm/Support/raw_ostream.h"
30 #include "llvm/ADT/DenseMap.h"
31 #include "llvm/ADT/IndexedMap.h"
32 #include "llvm/ADT/SmallSet.h"
33 #include "llvm/ADT/SmallVector.h"
34 #include "llvm/ADT/SparseSet.h"
35 #include "llvm/ADT/Statistic.h"
36 #include "llvm/ADT/STLExtras.h"
35 #include "llvm/Target/TargetInstrInfo.h"
36 #include "llvm/Target/TargetMachine.h"
3737 #include
3838 using namespace llvm;
3939
1212 //===----------------------------------------------------------------------===//
1313
1414 #define DEBUG_TYPE "regalloc"
15 #include "llvm/CodeGen/Passes.h"
1516 #include "AllocationOrder.h"
1617 #include "InterferenceCache.h"
1718 #include "LiveDebugVariables.h"
1819 #include "RegAllocBase.h"
20 #include "SpillPlacement.h"
1921 #include "Spiller.h"
20 #include "SpillPlacement.h"
2122 #include "SplitKit.h"
22 #include "llvm/CodeGen/VirtRegMap.h"
2323 #include "llvm/ADT/Statistic.h"
2424 #include "llvm/Analysis/AliasAnalysis.h"
25 #include "llvm/PassAnalysisSupport.h"
2625 #include "llvm/CodeGen/CalcSpillWeights.h"
2726 #include "llvm/CodeGen/EdgeBundles.h"
2827 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
3332 #include "llvm/CodeGen/MachineFunctionPass.h"
3433 #include "llvm/CodeGen/MachineLoopInfo.h"
3534 #include "llvm/CodeGen/MachineRegisterInfo.h"
36 #include "llvm/CodeGen/Passes.h"
3735 #include "llvm/CodeGen/RegAllocRegistry.h"
38 #include "llvm/Target/TargetOptions.h"
36 #include "llvm/CodeGen/VirtRegMap.h"
37 #include "llvm/PassAnalysisSupport.h"
3938 #include "llvm/Support/CommandLine.h"
4039 #include "llvm/Support/Debug.h"
4140 #include "llvm/Support/ErrorHandling.h"
41 #include "llvm/Support/Timer.h"
4242 #include "llvm/Support/raw_ostream.h"
43 #include "llvm/Support/Timer.h"
44
43 #include "llvm/Target/TargetOptions.h"
4544 #include
4645
4746 using namespace llvm;
3030
3131 #define DEBUG_TYPE "regalloc"
3232
33 #include "llvm/CodeGen/RegAllocPBQP.h"
34 #include "RegisterCoalescer.h"
3335 #include "Spiller.h"
34 #include "RegisterCoalescer.h"
35 #include "llvm/Module.h"
3636 #include "llvm/Analysis/AliasAnalysis.h"
3737 #include "llvm/CodeGen/CalcSpillWeights.h"
3838 #include "llvm/CodeGen/LiveIntervalAnalysis.h"
3939 #include "llvm/CodeGen/LiveRangeEdit.h"
4040 #include "llvm/CodeGen/LiveStackAnalysis.h"
41 #include "llvm/CodeGen/RegAllocPBQP.h"
42</