1 //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This header file defines prototypes for accessor functions that expose passes
11 // in the analysis libraries.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_ANALYSIS_PASSES_H
16 #define LLVM_ANALYSIS_PASSES_H
26 //===--------------------------------------------------------------------===//
28 // createAAEvalPass - This pass implements a simple N^2 alias analysis
29 // accuracy evaluator.
31 FunctionPass *createAAEvalPass();
33 //===--------------------------------------------------------------------===//
35 // createObjCARCAAWrapperPass - This pass implements ObjC-ARC-based
38 ImmutablePass *createObjCARCAAWrapperPass();
40 FunctionPass *createPAEvalPass();
42 //===--------------------------------------------------------------------===//
44 /// createLazyValueInfoPass - This creates an instance of the LazyValueInfo
46 FunctionPass *createLazyValueInfoPass();
48 //===--------------------------------------------------------------------===//
50 // createDependenceAnalysisPass - This creates an instance of the
51 // DependenceAnalysis pass.
53 FunctionPass *createDependenceAnalysisPass();
55 //===--------------------------------------------------------------------===//
57 // createCostModelAnalysisPass - This creates an instance of the
58 // CostModelAnalysis pass.
60 FunctionPass *createCostModelAnalysisPass();
62 //===--------------------------------------------------------------------===//
64 // createDelinearizationPass - This pass implements attempts to restore
65 // multidimensional array indices from linearized expressions.
67 FunctionPass *createDelinearizationPass();
69 //===--------------------------------------------------------------------===//
71 // createDivergenceAnalysisPass - This pass determines which branches in a GPU
72 // program are divergent.
74 FunctionPass *createDivergenceAnalysisPass();
76 //===--------------------------------------------------------------------===//
78 // Minor pass prototypes, allowing us to expose them through bugpoint and
80 FunctionPass *createInstCountPass();
82 //===--------------------------------------------------------------------===//
84 // createRegionInfoPass - This pass finds all single entry single exit regions
85 // in a function and builds the region hierarchy.
87 FunctionPass *createRegionInfoPass();
89 // Print module-level debug info metadata in human-readable form.
90 ModulePass *createModuleDebugInfoPrinterPass();
92 //===--------------------------------------------------------------------===//
94 // createMemDepPrinter - This pass exhaustively collects all memdep
95 // information and prints it with -analyze.
97 FunctionPass *createMemDepPrinter();
99 //===--------------------------------------------------------------------===//
101 // createMemDerefPrinter - This pass collects memory dereferenceability
102 // information and prints it with -analyze.
104 FunctionPass *createMemDerefPrinter();