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
25 //===--------------------------------------------------------------------===//
27 // createGlobalsModRefPass - This pass provides alias and mod/ref info for
28 // global values that do not have their addresses taken.
30 Pass *createGlobalsModRefPass();
32 //===--------------------------------------------------------------------===//
34 // createAliasDebugger - This pass helps debug clients of AA
36 Pass *createAliasDebugger();
38 //===--------------------------------------------------------------------===//
40 // createAliasAnalysisCounterPass - This pass counts alias queries and how the
41 // alias analysis implementation responds.
43 ModulePass *createAliasAnalysisCounterPass();
45 //===--------------------------------------------------------------------===//
47 // createAAEvalPass - This pass implements a simple N^2 alias analysis
48 // accuracy evaluator.
50 FunctionPass *createAAEvalPass();
52 //===--------------------------------------------------------------------===//
54 // createNoAAPass - This pass implements a "I don't know" alias analysis.
56 ImmutablePass *createNoAAPass();
58 //===--------------------------------------------------------------------===//
60 // createBasicAliasAnalysisPass - This pass implements the default alias
63 ImmutablePass *createBasicAliasAnalysisPass();
65 //===--------------------------------------------------------------------===//
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.
71 FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
73 //===--------------------------------------------------------------------===//
75 // createAndersensPass - This pass implements Andersen's interprocedural alias
78 ModulePass *createAndersensPass();
80 //===--------------------------------------------------------------------===//
82 // createProfileLoaderPass - This pass loads information from a profile dump
85 ModulePass *createProfileLoaderPass();
87 //===--------------------------------------------------------------------===//
89 // createNoProfileInfoPass - This pass implements the default "no profile".
91 ImmutablePass *createNoProfileInfoPass();
93 //===--------------------------------------------------------------------===//
95 // createDSAAPass - This pass implements simple context sensitive alias
98 ModulePass *createDSAAPass();
100 //===--------------------------------------------------------------------===//
102 // createDSOptPass - This pass uses DSA to do a series of simple
105 ModulePass *createDSOptPass();
107 //===--------------------------------------------------------------------===//
109 // createSteensgaardPass - This pass uses the data structure graphs to do a
110 // simple context insensitive alias analysis.
112 ModulePass *createSteensgaardPass();
114 //===--------------------------------------------------------------------===//
116 // createLiveValuesPass - This creates an instance of the LiveValues pass.
118 FunctionPass *createLiveValuesPass();
120 // Minor pass prototypes, allowing us to expose them through bugpoint and
122 FunctionPass *createInstCountPass();
124 // print debug info intrinsics in human readable form
125 FunctionPass *createDbgInfoPrinterPass();