LLVM API Documentation
00001 //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This header file defines prototypes for accessor functions that expose passes 00011 // in the analysis libraries. 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #ifndef LLVM_ANALYSIS_PASSES_H 00016 #define LLVM_ANALYSIS_PASSES_H 00017 00018 namespace llvm { 00019 class FunctionPass; 00020 class ImmutablePass; 00021 class LoopPass; 00022 class ModulePass; 00023 class Pass; 00024 class PassInfo; 00025 class LibCallInfo; 00026 00027 //===--------------------------------------------------------------------===// 00028 // 00029 // createGlobalsModRefPass - This pass provides alias and mod/ref info for 00030 // global values that do not have their addresses taken. 00031 // 00032 Pass *createGlobalsModRefPass(); 00033 00034 //===--------------------------------------------------------------------===// 00035 // 00036 // createAliasDebugger - This pass helps debug clients of AA 00037 // 00038 Pass *createAliasDebugger(); 00039 00040 //===--------------------------------------------------------------------===// 00041 // 00042 // createAliasAnalysisCounterPass - This pass counts alias queries and how the 00043 // alias analysis implementation responds. 00044 // 00045 ModulePass *createAliasAnalysisCounterPass(); 00046 00047 //===--------------------------------------------------------------------===// 00048 // 00049 // createAAEvalPass - This pass implements a simple N^2 alias analysis 00050 // accuracy evaluator. 00051 // 00052 FunctionPass *createAAEvalPass(); 00053 00054 //===--------------------------------------------------------------------===// 00055 // 00056 // createNoAAPass - This pass implements a "I don't know" alias analysis. 00057 // 00058 ImmutablePass *createNoAAPass(); 00059 00060 //===--------------------------------------------------------------------===// 00061 // 00062 // createBasicAliasAnalysisPass - This pass implements the default alias 00063 // analysis. 00064 // 00065 ImmutablePass *createBasicAliasAnalysisPass(); 00066 00067 //===--------------------------------------------------------------------===// 00068 // 00069 /// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows 00070 /// about the semantics of a set of libcalls specified by LCI. The newly 00071 /// constructed pass takes ownership of the pointer that is provided. 00072 /// 00073 FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI); 00074 00075 //===--------------------------------------------------------------------===// 00076 // 00077 // createAndersensPass - This pass implements Andersen's interprocedural alias 00078 // analysis. 00079 // 00080 ModulePass *createAndersensPass(); 00081 00082 //===--------------------------------------------------------------------===// 00083 // 00084 // createProfileLoaderPass - This pass loads information from a profile dump 00085 // file. 00086 // 00087 ModulePass *createProfileLoaderPass(); 00088 00089 //===--------------------------------------------------------------------===// 00090 // 00091 // createNoProfileInfoPass - This pass implements the default "no profile". 00092 // 00093 ImmutablePass *createNoProfileInfoPass(); 00094 00095 //===--------------------------------------------------------------------===// 00096 // 00097 // createProfileEstimatorPass - This pass estimates profiling information 00098 // instead of loading it from a previous run. 00099 // 00100 FunctionPass *createProfileEstimatorPass(); 00101 extern const PassInfo *ProfileEstimatorPassID; 00102 00103 //===--------------------------------------------------------------------===// 00104 // 00105 // createDSAAPass - This pass implements simple context sensitive alias 00106 // analysis. 00107 // 00108 ModulePass *createDSAAPass(); 00109 00110 //===--------------------------------------------------------------------===// 00111 // 00112 // createDSOptPass - This pass uses DSA to do a series of simple 00113 // optimizations. 00114 // 00115 ModulePass *createDSOptPass(); 00116 00117 //===--------------------------------------------------------------------===// 00118 // 00119 // createSteensgaardPass - This pass uses the data structure graphs to do a 00120 // simple context insensitive alias analysis. 00121 // 00122 ModulePass *createSteensgaardPass(); 00123 00124 //===--------------------------------------------------------------------===// 00125 // 00126 // createLiveValuesPass - This creates an instance of the LiveValues pass. 00127 // 00128 FunctionPass *createLiveValuesPass(); 00129 00130 //===--------------------------------------------------------------------===// 00131 // 00132 // createLoopDependenceAnalysisPass - This creates an instance of the 00133 // LoopDependenceAnalysis pass. 00134 // 00135 LoopPass *createLoopDependenceAnalysisPass(); 00136 00137 // Minor pass prototypes, allowing us to expose them through bugpoint and 00138 // analyze. 00139 FunctionPass *createInstCountPass(); 00140 00141 // print debug info intrinsics in human readable form 00142 FunctionPass *createDbgInfoPrinterPass(); 00143 } 00144 00145 #endif