Add a liveness analysis pass for LLVM IR values. This computes
[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   // createProfileLoaderPass - This pass loads information from a profile dump
83   // file.
84   //
85   ModulePass *createProfileLoaderPass();
86
87   //===--------------------------------------------------------------------===//
88   //
89   // createNoProfileInfoPass - This pass implements the default "no profile".
90   //
91   ImmutablePass *createNoProfileInfoPass();
92
93   //===--------------------------------------------------------------------===//
94   //
95   // createDSAAPass - This pass implements simple context sensitive alias
96   // analysis.
97   //
98   ModulePass *createDSAAPass();
99
100   //===--------------------------------------------------------------------===//
101   //
102   // createDSOptPass - This pass uses DSA to do a series of simple
103   // optimizations.
104   //
105   ModulePass *createDSOptPass();
106
107   //===--------------------------------------------------------------------===//
108   //
109   // createSteensgaardPass - This pass uses the data structure graphs to do a
110   // simple context insensitive alias analysis.
111   //
112   ModulePass *createSteensgaardPass();
113
114   //===--------------------------------------------------------------------===//
115   //
116   // createLiveValuesPass - This creates an instance of the LiveValues pass.
117   //
118   FunctionPass *createLiveValuesPass();
119   
120   // Minor pass prototypes, allowing us to expose them through bugpoint and
121   // analyze.
122   FunctionPass *createInstCountPass();
123
124   // print debug info intrinsics in human readable form
125   FunctionPass *createDbgInfoPrinterPass();
126 }
127
128 #endif