Add a new LibCallAliasAnalysis pass, which is parameterized
[oota-llvm.git] / include / llvm / Analysis / Passes.h
1 //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- 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 header file defines prototypes for accessor functions that expose passes
11 // in the analysis libraries.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_ANALYSIS_PASSES_H
16 #define LLVM_ANALYSIS_PASSES_H
17
18 namespace llvm {
19   class FunctionPass;
20   class ImmutablePass;
21   class ModulePass;
22   class Pass;
23   class LibCallInfo;
24
25   //===--------------------------------------------------------------------===//
26   //
27   // createGlobalsModRefPass - This pass provides alias and mod/ref info for
28   // global values that do not have their addresses taken.
29   //
30   Pass *createGlobalsModRefPass();
31
32   //===--------------------------------------------------------------------===//
33   //
34   // createAliasDebugger - This pass helps debug clients of AA
35   //
36   Pass *createAliasDebugger();
37
38   //===--------------------------------------------------------------------===//
39   //
40   // createAliasAnalysisCounterPass - This pass counts alias queries and how the
41   // alias analysis implementation responds.
42   //
43   ModulePass *createAliasAnalysisCounterPass();
44
45   //===--------------------------------------------------------------------===//
46   //
47   // createAAEvalPass - This pass implements a simple N^2 alias analysis
48   // accuracy evaluator.
49   //
50   FunctionPass *createAAEvalPass();
51
52   //===--------------------------------------------------------------------===//
53   //
54   // createNoAAPass - This pass implements a "I don't know" alias analysis.
55   //
56   ImmutablePass *createNoAAPass();
57
58   //===--------------------------------------------------------------------===//
59   //
60   // createBasicAliasAnalysisPass - This pass implements the default alias
61   // analysis.
62   //
63   ImmutablePass *createBasicAliasAnalysisPass();
64
65   //===--------------------------------------------------------------------===//
66   //
67   /// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows
68   /// about the semantics of a set of libcalls specified by LCI.  The newly
69   /// constructed pass takes ownership of the pointer that is provided.
70   ///
71   FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
72
73   //===--------------------------------------------------------------------===//
74   //
75   // createAndersensPass - This pass implements Andersen's interprocedural alias
76   // analysis.
77   //
78   ModulePass *createAndersensPass();
79
80   //===--------------------------------------------------------------------===//
81   //
82   // createBasicVNPass - This pass walks SSA def-use chains to trivially
83   // identify lexically identical expressions.
84   //
85   ImmutablePass *createBasicVNPass();
86
87   //===--------------------------------------------------------------------===//
88   //
89   // createProfileLoaderPass - This pass loads information from a profile dump
90   // file.
91   //
92   ModulePass *createProfileLoaderPass();
93
94   //===--------------------------------------------------------------------===//
95   //
96   // createNoProfileInfoPass - This pass implements the default "no profile".
97   //
98   ImmutablePass *createNoProfileInfoPass();
99
100   //===--------------------------------------------------------------------===//
101   //
102   // createDSAAPass - This pass implements simple context sensitive alias
103   // analysis.
104   //
105   ModulePass *createDSAAPass();
106
107   //===--------------------------------------------------------------------===//
108   //
109   // createDSOptPass - This pass uses DSA to do a series of simple
110   // optimizations.
111   //
112   ModulePass *createDSOptPass();
113
114   //===--------------------------------------------------------------------===//
115   //
116   // createSteensgaardPass - This pass uses the data structure graphs to do a
117   // simple context insensitive alias analysis.
118   //
119   ModulePass *createSteensgaardPass();
120   
121   // Minor pass prototypes, allowing us to expose them through bugpoint and
122   // analyze.
123   FunctionPass *createInstCountPass();
124 }
125
126 #endif