comparison include/llvm/LinkAllPasses.h @ 85:5e5d649e25d2

Update LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Thu, 19 Feb 2015 15:19:25 +0900
parents 67baa08a3894 60c9769439b8
children b0dd3743370f
comparison
equal deleted inserted replaced
82:e218c19a8176 85:5e5d649e25d2
16 #define LLVM_LINKALLPASSES_H 16 #define LLVM_LINKALLPASSES_H
17 17
18 #include "llvm/Analysis/AliasSetTracker.h" 18 #include "llvm/Analysis/AliasSetTracker.h"
19 #include "llvm/Analysis/CallPrinter.h" 19 #include "llvm/Analysis/CallPrinter.h"
20 #include "llvm/Analysis/DomPrinter.h" 20 #include "llvm/Analysis/DomPrinter.h"
21 #include "llvm/Analysis/FindUsedTypes.h"
22 #include "llvm/Analysis/IntervalPartition.h" 21 #include "llvm/Analysis/IntervalPartition.h"
23 #include "llvm/Analysis/Lint.h" 22 #include "llvm/Analysis/Lint.h"
24 #include "llvm/Analysis/Passes.h" 23 #include "llvm/Analysis/Passes.h"
25 #include "llvm/Analysis/PostDominators.h" 24 #include "llvm/Analysis/PostDominators.h"
26 #include "llvm/Analysis/RegionPass.h" 25 #include "llvm/Analysis/RegionPass.h"
31 #include "llvm/IR/IRPrintingPasses.h" 30 #include "llvm/IR/IRPrintingPasses.h"
32 #include "llvm/Transforms/IPO.h" 31 #include "llvm/Transforms/IPO.h"
33 #include "llvm/Transforms/Instrumentation.h" 32 #include "llvm/Transforms/Instrumentation.h"
34 #include "llvm/Transforms/ObjCARC.h" 33 #include "llvm/Transforms/ObjCARC.h"
35 #include "llvm/Transforms/Scalar.h" 34 #include "llvm/Transforms/Scalar.h"
35 #include "llvm/Transforms/Utils/SymbolRewriter.h"
36 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h" 36 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
37 #include "llvm/Transforms/Vectorize.h" 37 #include "llvm/Transforms/Vectorize.h"
38 #include <cstdlib> 38 #include <cstdlib>
39 39
40 namespace { 40 namespace {
47 if (std::getenv("bar") != (char*) -1) 47 if (std::getenv("bar") != (char*) -1)
48 return; 48 return;
49 49
50 (void) llvm::createAAEvalPass(); 50 (void) llvm::createAAEvalPass();
51 (void) llvm::createAggressiveDCEPass(); 51 (void) llvm::createAggressiveDCEPass();
52 (void) llvm::createBitTrackingDCEPass();
52 (void) llvm::createAliasAnalysisCounterPass(); 53 (void) llvm::createAliasAnalysisCounterPass();
53 (void) llvm::createAliasDebugger(); 54 (void) llvm::createAliasDebugger();
54 (void) llvm::createArgumentPromotionPass(); 55 (void) llvm::createArgumentPromotionPass();
55 (void) llvm::createAlignmentFromAssumptionsPass(); 56 (void) llvm::createAlignmentFromAssumptionsPass();
56 (void) llvm::createBasicAliasAnalysisPass(); 57 (void) llvm::createBasicAliasAnalysisPass();
76 (void) llvm::createDomOnlyPrinterPass(); 77 (void) llvm::createDomOnlyPrinterPass();
77 (void) llvm::createDomPrinterPass(); 78 (void) llvm::createDomPrinterPass();
78 (void) llvm::createDomOnlyViewerPass(); 79 (void) llvm::createDomOnlyViewerPass();
79 (void) llvm::createDomViewerPass(); 80 (void) llvm::createDomViewerPass();
80 (void) llvm::createGCOVProfilerPass(); 81 (void) llvm::createGCOVProfilerPass();
82 (void) llvm::createInstrProfilingPass();
81 (void) llvm::createFunctionInliningPass(); 83 (void) llvm::createFunctionInliningPass();
82 (void) llvm::createAlwaysInlinerPass(); 84 (void) llvm::createAlwaysInlinerPass();
83 (void) llvm::createGlobalDCEPass(); 85 (void) llvm::createGlobalDCEPass();
84 (void) llvm::createGlobalOptimizerPass(); 86 (void) llvm::createGlobalOptimizerPass();
85 (void) llvm::createGlobalsModRefPass(); 87 (void) llvm::createGlobalsModRefPass();
86 (void) llvm::createIPConstantPropagationPass(); 88 (void) llvm::createIPConstantPropagationPass();
87 (void) llvm::createIPSCCPPass(); 89 (void) llvm::createIPSCCPPass();
90 (void) llvm::createInductiveRangeCheckEliminationPass();
88 (void) llvm::createIndVarSimplifyPass(); 91 (void) llvm::createIndVarSimplifyPass();
89 (void) llvm::createInstructionCombiningPass(); 92 (void) llvm::createInstructionCombiningPass();
90 (void) llvm::createInternalizePass(); 93 (void) llvm::createInternalizePass();
91 (void) llvm::createJumpInstrTableInfoPass(); 94 (void) llvm::createJumpInstrTableInfoPass();
92 (void) llvm::createJumpInstrTablesPass(); 95 (void) llvm::createJumpInstrTablesPass();
108 (void) llvm::createObjCARCAliasAnalysisPass(); 111 (void) llvm::createObjCARCAliasAnalysisPass();
109 (void) llvm::createObjCARCAPElimPass(); 112 (void) llvm::createObjCARCAPElimPass();
110 (void) llvm::createObjCARCExpandPass(); 113 (void) llvm::createObjCARCExpandPass();
111 (void) llvm::createObjCARCContractPass(); 114 (void) llvm::createObjCARCContractPass();
112 (void) llvm::createObjCARCOptPass(); 115 (void) llvm::createObjCARCOptPass();
116 (void) llvm::createPAEvalPass();
113 (void) llvm::createPromoteMemoryToRegisterPass(); 117 (void) llvm::createPromoteMemoryToRegisterPass();
114 (void) llvm::createDemoteRegisterToMemoryPass(); 118 (void) llvm::createDemoteRegisterToMemoryPass();
115 (void) llvm::createPruneEHPass(); 119 (void) llvm::createPruneEHPass();
116 (void) llvm::createPostDomOnlyPrinterPass(); 120 (void) llvm::createPostDomOnlyPrinterPass();
117 (void) llvm::createPostDomPrinterPass(); 121 (void) llvm::createPostDomPrinterPass();
139 (void) llvm::createUnifyFunctionExitNodesPass(); 143 (void) llvm::createUnifyFunctionExitNodesPass();
140 (void) llvm::createInstCountPass(); 144 (void) llvm::createInstCountPass();
141 (void) llvm::createConstantHoistingPass(); 145 (void) llvm::createConstantHoistingPass();
142 (void) llvm::createCodeGenPreparePass(); 146 (void) llvm::createCodeGenPreparePass();
143 (void) llvm::createEarlyCSEPass(); 147 (void) llvm::createEarlyCSEPass();
144 (void)llvm::createMergedLoadStoreMotionPass(); 148 (void) llvm::createMergedLoadStoreMotionPass();
145 (void) llvm::createGVNPass(); 149 (void) llvm::createGVNPass();
146 (void) llvm::createMemCpyOptPass(); 150 (void) llvm::createMemCpyOptPass();
147 (void) llvm::createLoopDeletionPass(); 151 (void) llvm::createLoopDeletionPass();
148 (void) llvm::createPostDomTree(); 152 (void) llvm::createPostDomTree();
149 (void) llvm::createInstructionNamerPass(); 153 (void) llvm::createInstructionNamerPass();
165 (void) llvm::createSLPVectorizerPass(); 169 (void) llvm::createSLPVectorizerPass();
166 (void) llvm::createBBVectorizePass(); 170 (void) llvm::createBBVectorizePass();
167 (void) llvm::createPartiallyInlineLibCallsPass(); 171 (void) llvm::createPartiallyInlineLibCallsPass();
168 (void) llvm::createScalarizerPass(); 172 (void) llvm::createScalarizerPass();
169 (void) llvm::createSeparateConstOffsetFromGEPPass(); 173 (void) llvm::createSeparateConstOffsetFromGEPPass();
174 (void) llvm::createRewriteSymbolsPass();
175 (void) llvm::createStraightLineStrengthReducePass();
176 (void) llvm::createMemDerefPrinter();
170 177
171 (void)new llvm::IntervalPartition(); 178 (void)new llvm::IntervalPartition();
172 (void)new llvm::FindUsedTypes();
173 (void)new llvm::ScalarEvolution(); 179 (void)new llvm::ScalarEvolution();
174 ((llvm::Function*)nullptr)->viewCFGOnly(); 180 ((llvm::Function*)nullptr)->viewCFGOnly();
175 llvm::RGPassManager RGM; 181 llvm::RGPassManager RGM;
176 ((llvm::RegionPass*)nullptr)->runOnRegion((llvm::Region*)nullptr, RGM); 182 ((llvm::RegionPass*)nullptr)->runOnRegion((llvm::Region*)nullptr, RGM);
177 llvm::AliasSetTracker X(*(llvm::AliasAnalysis*)nullptr); 183 llvm::AliasSetTracker X(*(llvm::AliasAnalysis*)nullptr);
178 X.add((llvm::Value*)nullptr, 0, nullptr); // for -print-alias-sets 184 X.add(nullptr, 0, llvm::AAMDNodes()); // for -print-alias-sets
179 } 185 }
180 } ForcePassLinking; // Force link by creating a global definition. 186 } ForcePassLinking; // Force link by creating a global definition.
181 } 187 }
182 188
183 #endif 189 #endif