LCOV - code coverage report
Current view: top level - lib/Passes - PassRegistry.def (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 167 167 100.0 %
Date: 2017-09-14 15:23:50 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- PassRegistry.def - Registry of passes --------------------*- C++ -*-===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : //
      10             : // This file is used as the registry of passes that are part of the core LLVM
      11             : // libraries. This file describes both transformation passes and analyses
      12             : // Analyses are registered while transformation passes have names registered
      13             : // that can be used when providing a textual pass pipeline.
      14             : //
      15             : //===----------------------------------------------------------------------===//
      16             : 
      17             : // NOTE: NO INCLUDE GUARD DESIRED!
      18             : 
      19             : #ifndef MODULE_ANALYSIS
      20             : #define MODULE_ANALYSIS(NAME, CREATE_PASS)
      21             : #endif
      22        2160 : MODULE_ANALYSIS("callgraph", CallGraphAnalysis())
      23        2157 : MODULE_ANALYSIS("lcg", LazyCallGraphAnalysis())
      24        2157 : MODULE_ANALYSIS("module-summary", ModuleSummaryIndexAnalysis())
      25        2167 : MODULE_ANALYSIS("no-op-module", NoOpModuleAnalysis())
      26        2131 : MODULE_ANALYSIS("profile-summary", ProfileSummaryAnalysis())
      27        2850 : MODULE_ANALYSIS("targetlibinfo", TargetLibraryAnalysis())
      28        2096 : MODULE_ANALYSIS("verify", VerifierAnalysis())
      29             : 
      30             : #ifndef MODULE_ALIAS_ANALYSIS
      31             : #define MODULE_ALIAS_ANALYSIS(NAME, CREATE_PASS)                               \
      32             :   MODULE_ANALYSIS(NAME, CREATE_PASS)
      33             : #endif
      34        2243 : MODULE_ALIAS_ANALYSIS("globals-aa", GlobalsAA())
      35             : #undef MODULE_ALIAS_ANALYSIS
      36             : #undef MODULE_ANALYSIS
      37             : 
      38             : #ifndef MODULE_PASS
      39             : #define MODULE_PASS(NAME, CREATE_PASS)
      40             : #endif
      41         760 : MODULE_PASS("always-inline", AlwaysInlinerPass())
      42         752 : MODULE_PASS("constmerge", ConstantMergePass())
      43         751 : MODULE_PASS("cross-dso-cfi", CrossDSOCFIPass())
      44         747 : MODULE_PASS("deadargelim", DeadArgumentEliminationPass())
      45         744 : MODULE_PASS("elim-avail-extern", EliminateAvailableExternallyPass())
      46         742 : MODULE_PASS("forceattrs", ForceFunctionAttrsPass())
      47         739 : MODULE_PASS("function-import", FunctionImportPass())
      48         747 : MODULE_PASS("globaldce", GlobalDCEPass())
      49         735 : MODULE_PASS("globalopt", GlobalOptPass())
      50         733 : MODULE_PASS("globalsplit", GlobalSplitPass())
      51         731 : MODULE_PASS("inferattrs", InferFunctionAttrsPass())
      52         756 : MODULE_PASS("insert-gcov-profiling", GCOVProfilerPass())
      53         730 : MODULE_PASS("instrprof", InstrProfiling())
      54         673 : MODULE_PASS("internalize", InternalizePass())
      55         668 : MODULE_PASS("invalidate<all>", InvalidateAllAnalysesPass())
      56         668 : MODULE_PASS("ipsccp", IPSCCPPass())
      57         663 : MODULE_PASS("lowertypetests", LowerTypeTestsPass())
      58         667 : MODULE_PASS("name-anon-globals", NameAnonGlobalPass())
      59         668 : MODULE_PASS("no-op-module", NoOpModulePass())
      60         659 : MODULE_PASS("partial-inliner", PartialInlinerPass())
      61         576 : MODULE_PASS("pgo-icall-prom", PGOIndirectCallPromotion())
      62         569 : MODULE_PASS("pgo-instr-gen", PGOInstrumentationGen())
      63         609 : MODULE_PASS("pgo-instr-use", PGOInstrumentationUse())
      64         449 : MODULE_PASS("pre-isel-intrinsic-lowering", PreISelIntrinsicLoweringPass())
      65         448 : MODULE_PASS("print-profile-summary", ProfileSummaryPrinterPass(dbgs()))
      66         446 : MODULE_PASS("print-callgraph", CallGraphPrinterPass(dbgs()))
      67         452 : MODULE_PASS("print", PrintModulePass(dbgs()))
      68         440 : MODULE_PASS("print-lcg", LazyCallGraphPrinterPass(dbgs()))
      69         434 : MODULE_PASS("print-lcg-dot", LazyCallGraphDOTPrinterPass(dbgs()))
      70         437 : MODULE_PASS("rewrite-symbols", RewriteSymbolPass())
      71         434 : MODULE_PASS("rpo-functionattrs", ReversePostOrderFunctionAttrsPass())
      72         574 : MODULE_PASS("sample-profile", SampleProfileLoaderPass())
      73         388 : MODULE_PASS("strip-dead-prototypes", StripDeadPrototypesPass())
      74         385 : MODULE_PASS("wholeprogramdevirt", WholeProgramDevirtPass())
      75         381 : MODULE_PASS("verify", VerifierPass())
      76             : #undef MODULE_PASS
      77             : 
      78             : #ifndef CGSCC_ANALYSIS
      79             : #define CGSCC_ANALYSIS(NAME, CREATE_PASS)
      80             : #endif
      81        1679 : CGSCC_ANALYSIS("no-op-cgscc", NoOpCGSCCAnalysis())
      82        1659 : CGSCC_ANALYSIS("fam-proxy", FunctionAnalysisManagerCGSCCProxy())
      83             : #undef CGSCC_ANALYSIS
      84             : 
      85             : #ifndef CGSCC_PASS
      86             : #define CGSCC_PASS(NAME, CREATE_PASS)
      87             : #endif
      88         528 : CGSCC_PASS("argpromotion", ArgumentPromotionPass())
      89         481 : CGSCC_PASS("invalidate<all>", InvalidateAllAnalysesPass())
      90         492 : CGSCC_PASS("function-attrs", PostOrderFunctionAttrsPass())
      91         862 : CGSCC_PASS("inline", InlinerPass())
      92         370 : CGSCC_PASS("no-op-cgscc", NoOpCGSCCPass())
      93             : #undef CGSCC_PASS
      94             : 
      95             : #ifndef FUNCTION_ANALYSIS
      96             : #define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
      97             : #endif
      98        2124 : FUNCTION_ANALYSIS("aa", AAManager())
      99        1940 : FUNCTION_ANALYSIS("assumptions", AssumptionAnalysis())
     100        1941 : FUNCTION_ANALYSIS("block-freq", BlockFrequencyAnalysis())
     101        1935 : FUNCTION_ANALYSIS("branch-prob", BranchProbabilityAnalysis())
     102        1946 : FUNCTION_ANALYSIS("domtree", DominatorTreeAnalysis())
     103        1906 : FUNCTION_ANALYSIS("postdomtree", PostDominatorTreeAnalysis())
     104        1906 : FUNCTION_ANALYSIS("demanded-bits", DemandedBitsAnalysis())
     105        1906 : FUNCTION_ANALYSIS("domfrontier", DominanceFrontierAnalysis())
     106        1909 : FUNCTION_ANALYSIS("loops", LoopAnalysis())
     107        1904 : FUNCTION_ANALYSIS("lazy-value-info", LazyValueAnalysis())
     108        1893 : FUNCTION_ANALYSIS("da", DependenceAnalysis())
     109        1893 : FUNCTION_ANALYSIS("memdep", MemoryDependenceAnalysis())
     110        1881 : FUNCTION_ANALYSIS("memoryssa", MemorySSAAnalysis())
     111        1881 : FUNCTION_ANALYSIS("regions", RegionInfoAnalysis())
     112        1893 : FUNCTION_ANALYSIS("no-op-function", NoOpFunctionAnalysis())
     113        1895 : FUNCTION_ANALYSIS("opt-remark-emit", OptimizationRemarkEmitterAnalysis())
     114        1738 : FUNCTION_ANALYSIS("scalar-evolution", ScalarEvolutionAnalysis())
     115        2349 : FUNCTION_ANALYSIS("targetlibinfo", TargetLibraryAnalysis())
     116        2400 : FUNCTION_ANALYSIS("targetir",
     117             :                   TM ? TM->getTargetIRAnalysis() : TargetIRAnalysis())
     118        1561 : FUNCTION_ANALYSIS("verify", VerifierAnalysis())
     119             : 
     120             : #ifndef FUNCTION_ALIAS_ANALYSIS
     121             : #define FUNCTION_ALIAS_ANALYSIS(NAME, CREATE_PASS)                             \
     122             :   FUNCTION_ANALYSIS(NAME, CREATE_PASS)
     123             : #endif
     124        1870 : FUNCTION_ALIAS_ANALYSIS("basic-aa", BasicAA())
     125        1641 : FUNCTION_ALIAS_ANALYSIS("cfl-anders-aa", CFLAndersAA())
     126        1618 : FUNCTION_ALIAS_ANALYSIS("cfl-steens-aa", CFLSteensAA())
     127        1569 : FUNCTION_ALIAS_ANALYSIS("scev-aa", SCEVAA())
     128        1568 : FUNCTION_ALIAS_ANALYSIS("scoped-noalias-aa", ScopedNoAliasAA())
     129        1575 : FUNCTION_ALIAS_ANALYSIS("type-based-aa", TypeBasedAA())
     130             : #undef FUNCTION_ALIAS_ANALYSIS
     131             : #undef FUNCTION_ANALYSIS
     132             : 
     133             : #ifndef FUNCTION_PASS
     134             : #define FUNCTION_PASS(NAME, CREATE_PASS)
     135             : #endif
     136         643 : FUNCTION_PASS("aa-eval", AAEvaluator())
     137         474 : FUNCTION_PASS("adce", ADCEPass())
     138         474 : FUNCTION_PASS("add-discriminators", AddDiscriminatorsPass())
     139         453 : FUNCTION_PASS("alignment-from-assumptions", AlignmentFromAssumptionsPass())
     140         442 : FUNCTION_PASS("bdce", BDCEPass())
     141         441 : FUNCTION_PASS("break-crit-edges", BreakCriticalEdgesPass())
     142         439 : FUNCTION_PASS("consthoist", ConstantHoistingPass())
     143         437 : FUNCTION_PASS("correlated-propagation", CorrelatedValuePropagationPass())
     144         434 : FUNCTION_PASS("dce", DCEPass())
     145         429 : FUNCTION_PASS("div-rem-pairs", DivRemPairsPass())
     146         431 : FUNCTION_PASS("dse", DSEPass())
     147         426 : FUNCTION_PASS("dot-cfg", CFGPrinterPass())
     148         427 : FUNCTION_PASS("dot-cfg-only", CFGOnlyPrinterPass())
     149         432 : FUNCTION_PASS("early-cse", EarlyCSEPass(/*UseMemorySSA=*/false))
     150         420 : FUNCTION_PASS("early-cse-memssa", EarlyCSEPass(/*UseMemorySSA=*/true))
     151         412 : FUNCTION_PASS("gvn-hoist", GVNHoistPass())
     152         469 : FUNCTION_PASS("instcombine", InstCombinePass())
     153         393 : FUNCTION_PASS("instsimplify", InstSimplifierPass())
     154         394 : FUNCTION_PASS("invalidate<all>", InvalidateAllAnalysesPass())
     155         387 : FUNCTION_PASS("float2int", Float2IntPass())
     156         411 : FUNCTION_PASS("no-op-function", NoOpFunctionPass())
     157         343 : FUNCTION_PASS("libcalls-shrinkwrap", LibCallsShrinkWrapPass())
     158         338 : FUNCTION_PASS("loweratomic", LowerAtomicPass())
     159         332 : FUNCTION_PASS("lower-expect", LowerExpectIntrinsicPass())
     160         321 : FUNCTION_PASS("lower-guard-intrinsic", LowerGuardIntrinsicPass())
     161         319 : FUNCTION_PASS("guard-widening", GuardWideningPass())
     162         331 : FUNCTION_PASS("gvn", GVN())
     163         299 : FUNCTION_PASS("loop-simplify", LoopSimplifyPass())
     164         292 : FUNCTION_PASS("loop-sink", LoopSinkPass())
     165         288 : FUNCTION_PASS("lowerinvoke", LowerInvokePass())
     166         286 : FUNCTION_PASS("mem2reg", PromotePass())
     167         285 : FUNCTION_PASS("memcpyopt", MemCpyOptPass())
     168         282 : FUNCTION_PASS("mldst-motion", MergedLoadStoreMotionPass())
     169         295 : FUNCTION_PASS("nary-reassociate", NaryReassociatePass())
     170         272 : FUNCTION_PASS("newgvn", NewGVNPass())
     171         270 : FUNCTION_PASS("jump-threading", JumpThreadingPass())
     172         261 : FUNCTION_PASS("partially-inline-libcalls", PartiallyInlineLibCallsPass())
     173         262 : FUNCTION_PASS("lcssa", LCSSAPass())
     174         249 : FUNCTION_PASS("loop-data-prefetch", LoopDataPrefetchPass())
     175         227 : FUNCTION_PASS("loop-load-elim", LoopLoadEliminationPass())
     176         223 : FUNCTION_PASS("loop-distribute", LoopDistributePass())
     177         226 : FUNCTION_PASS("loop-vectorize", LoopVectorizePass())
     178         208 : FUNCTION_PASS("pgo-memop-opt", PGOMemOPSizeOpt())
     179         209 : FUNCTION_PASS("print", PrintFunctionPass(dbgs()))
     180         199 : FUNCTION_PASS("print<assumptions>", AssumptionPrinterPass(dbgs()))
     181         215 : FUNCTION_PASS("print<block-freq>", BlockFrequencyPrinterPass(dbgs()))
     182         189 : FUNCTION_PASS("print<branch-prob>", BranchProbabilityPrinterPass(dbgs()))
     183         163 : FUNCTION_PASS("print<domtree>", DominatorTreePrinterPass(dbgs()))
     184         163 : FUNCTION_PASS("print<postdomtree>", PostDominatorTreePrinterPass(dbgs()))
     185         152 : FUNCTION_PASS("print<demanded-bits>", DemandedBitsPrinterPass(dbgs()))
     186         144 : FUNCTION_PASS("print<domfrontier>", DominanceFrontierPrinterPass(dbgs()))
     187         146 : FUNCTION_PASS("print<loops>", LoopPrinterPass(dbgs()))
     188         180 : FUNCTION_PASS("print<memoryssa>", MemorySSAPrinterPass(dbgs()))
     189         106 : FUNCTION_PASS("print<regions>", RegionInfoPrinterPass(dbgs()))
     190         106 : FUNCTION_PASS("print<scalar-evolution>", ScalarEvolutionPrinterPass(dbgs()))
     191          97 : FUNCTION_PASS("reassociate", ReassociatePass())
     192          95 : FUNCTION_PASS("sccp", SCCPPass())
     193          94 : FUNCTION_PASS("simplify-cfg", SimplifyCFGPass())
     194          90 : FUNCTION_PASS("sink", SinkingPass())
     195          90 : FUNCTION_PASS("slp-vectorizer", SLPVectorizerPass())
     196          82 : FUNCTION_PASS("speculative-execution", SpeculativeExecutionPass())
     197          83 : FUNCTION_PASS("sroa", SROA())
     198          78 : FUNCTION_PASS("tailcallelim", TailCallElimPass())
     199          70 : FUNCTION_PASS("unreachableblockelim", UnreachableBlockElimPass())
     200         103 : FUNCTION_PASS("unroll", LoopUnrollPass())
     201          51 : FUNCTION_PASS("verify", VerifierPass())
     202          51 : FUNCTION_PASS("verify<domtree>", DominatorTreeVerifierPass())
     203          49 : FUNCTION_PASS("verify<loops>", LoopVerifierPass())
     204          58 : FUNCTION_PASS("verify<memoryssa>", MemorySSAVerifierPass())
     205          24 : FUNCTION_PASS("verify<regions>", RegionInfoVerifierPass())
     206          24 : FUNCTION_PASS("view-cfg", CFGViewerPass())
     207          24 : FUNCTION_PASS("view-cfg-only", CFGOnlyViewerPass())
     208             : #undef FUNCTION_PASS
     209             : 
     210             : #ifndef LOOP_ANALYSIS
     211             : #define LOOP_ANALYSIS(NAME, CREATE_PASS)
     212             : #endif
     213         931 : LOOP_ANALYSIS("no-op-loop", NoOpLoopAnalysis())
     214         932 : LOOP_ANALYSIS("access-info", LoopAccessAnalysis())
     215         932 : LOOP_ANALYSIS("ivusers", IVUsersAnalysis())
     216             : #undef LOOP_ANALYSIS
     217             : 
     218             : #ifndef LOOP_PASS
     219             : #define LOOP_PASS(NAME, CREATE_PASS)
     220             : #endif
     221         130 : LOOP_PASS("invalidate<all>", InvalidateAllAnalysesPass())
     222         163 : LOOP_PASS("licm", LICMPass())
     223          98 : LOOP_PASS("loop-idiom", LoopIdiomRecognizePass())
     224          96 : LOOP_PASS("loop-instsimplify", LoopInstSimplifyPass())
     225          97 : LOOP_PASS("rotate", LoopRotatePass())
     226         115 : LOOP_PASS("no-op-loop", NoOpLoopPass())
     227          70 : LOOP_PASS("print", PrintLoopPass(dbgs()))
     228          74 : LOOP_PASS("loop-deletion", LoopDeletionPass())
     229          68 : LOOP_PASS("simplify-cfg", LoopSimplifyCFGPass())
     230          63 : LOOP_PASS("strength-reduce", LoopStrengthReducePass())
     231          64 : LOOP_PASS("indvars", IndVarSimplifyPass())
     232          88 : LOOP_PASS("unroll-full", LoopFullUnrollPass())
     233          46 : LOOP_PASS("unswitch", SimpleLoopUnswitchPass())
     234          88 : LOOP_PASS("print-access-info", LoopAccessInfoPrinterPass(dbgs()))
     235          20 : LOOP_PASS("print<ivusers>", IVUsersPrinterPass(dbgs()))
     236          15 : LOOP_PASS("loop-predication", LoopPredicationPass())
     237             : #undef LOOP_PASS

Generated by: LCOV version 1.13