]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/llvm/Analysis/Passes.h
Import LLVM r74383.
[FreeBSD/FreeBSD.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 LoopPass;
22   class ModulePass;
23   class Pass;
24   class LibCallInfo;
25
26   //===--------------------------------------------------------------------===//
27   //
28   // createGlobalsModRefPass - This pass provides alias and mod/ref info for
29   // global values that do not have their addresses taken.
30   //
31   Pass *createGlobalsModRefPass();
32
33   //===--------------------------------------------------------------------===//
34   //
35   // createAliasDebugger - This pass helps debug clients of AA
36   //
37   Pass *createAliasDebugger();
38
39   //===--------------------------------------------------------------------===//
40   //
41   // createAliasAnalysisCounterPass - This pass counts alias queries and how the
42   // alias analysis implementation responds.
43   //
44   ModulePass *createAliasAnalysisCounterPass();
45
46   //===--------------------------------------------------------------------===//
47   //
48   // createAAEvalPass - This pass implements a simple N^2 alias analysis
49   // accuracy evaluator.
50   //
51   FunctionPass *createAAEvalPass();
52
53   //===--------------------------------------------------------------------===//
54   //
55   // createNoAAPass - This pass implements a "I don't know" alias analysis.
56   //
57   ImmutablePass *createNoAAPass();
58
59   //===--------------------------------------------------------------------===//
60   //
61   // createBasicAliasAnalysisPass - This pass implements the default alias
62   // analysis.
63   //
64   ImmutablePass *createBasicAliasAnalysisPass();
65
66   //===--------------------------------------------------------------------===//
67   //
68   /// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows
69   /// about the semantics of a set of libcalls specified by LCI.  The newly
70   /// constructed pass takes ownership of the pointer that is provided.
71   ///
72   FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
73
74   //===--------------------------------------------------------------------===//
75   //
76   // createAndersensPass - This pass implements Andersen's interprocedural alias
77   // analysis.
78   //
79   ModulePass *createAndersensPass();
80
81   //===--------------------------------------------------------------------===//
82   //
83   // createProfileLoaderPass - This pass loads information from a profile dump
84   // file.
85   //
86   ModulePass *createProfileLoaderPass();
87
88   //===--------------------------------------------------------------------===//
89   //
90   // createNoProfileInfoPass - This pass implements the default "no profile".
91   //
92   ImmutablePass *createNoProfileInfoPass();
93
94   //===--------------------------------------------------------------------===//
95   //
96   // createDSAAPass - This pass implements simple context sensitive alias
97   // analysis.
98   //
99   ModulePass *createDSAAPass();
100
101   //===--------------------------------------------------------------------===//
102   //
103   // createDSOptPass - This pass uses DSA to do a series of simple
104   // optimizations.
105   //
106   ModulePass *createDSOptPass();
107
108   //===--------------------------------------------------------------------===//
109   //
110   // createSteensgaardPass - This pass uses the data structure graphs to do a
111   // simple context insensitive alias analysis.
112   //
113   ModulePass *createSteensgaardPass();
114
115   //===--------------------------------------------------------------------===//
116   //
117   // createLiveValuesPass - This creates an instance of the LiveValues pass.
118   //
119   FunctionPass *createLiveValuesPass();
120
121   //===--------------------------------------------------------------------===//
122   //
123   // createLoopDependenceAnalysisPass - This creates an instance of the
124   // LoopDependenceAnalysis pass.
125   //
126   LoopPass *createLoopDependenceAnalysisPass();
127   
128   // Minor pass prototypes, allowing us to expose them through bugpoint and
129   // analyze.
130   FunctionPass *createInstCountPass();
131
132   // print debug info intrinsics in human readable form
133   FunctionPass *createDbgInfoPrinterPass();
134 }
135
136 #endif