Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
7.4 KiB

  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. #ifndef LLVM_ANALYSIS_PASSES_H
  15. #define LLVM_ANALYSIS_PASSES_H
  16. namespace llvm {
  17. class FunctionPass;
  18. class ImmutablePass;
  19. class LoopPass;
  20. class ModulePass;
  21. class Pass;
  22. class PassInfo;
  23. class LibCallInfo;
  24. //===--------------------------------------------------------------------===//
  25. //
  26. // createGlobalsModRefPass - This pass provides alias and mod/ref info for
  27. // global values that do not have their addresses taken.
  28. //
  29. Pass *createGlobalsModRefPass();
  30. //===--------------------------------------------------------------------===//
  31. //
  32. // createAliasDebugger - This pass helps debug clients of AA
  33. //
  34. Pass *createAliasDebugger();
  35. //===--------------------------------------------------------------------===//
  36. //
  37. // createAliasAnalysisCounterPass - This pass counts alias queries and how the
  38. // alias analysis implementation responds.
  39. //
  40. ModulePass *createAliasAnalysisCounterPass();
  41. //===--------------------------------------------------------------------===//
  42. //
  43. // createAAEvalPass - This pass implements a simple N^2 alias analysis
  44. // accuracy evaluator.
  45. //
  46. FunctionPass *createAAEvalPass();
  47. //===--------------------------------------------------------------------===//
  48. //
  49. // createNoAAPass - This pass implements a "I don't know" alias analysis.
  50. //
  51. ImmutablePass *createNoAAPass();
  52. //===--------------------------------------------------------------------===//
  53. //
  54. // createBasicAliasAnalysisPass - This pass implements the stateless alias
  55. // analysis.
  56. //
  57. ImmutablePass *createBasicAliasAnalysisPass();
  58. //===--------------------------------------------------------------------===//
  59. //
  60. /// createLibCallAliasAnalysisPass - Create an alias analysis pass that knows
  61. /// about the semantics of a set of libcalls specified by LCI. The newly
  62. /// constructed pass takes ownership of the pointer that is provided.
  63. ///
  64. FunctionPass *createLibCallAliasAnalysisPass(LibCallInfo *LCI);
  65. //===--------------------------------------------------------------------===//
  66. //
  67. // createScalarEvolutionAliasAnalysisPass - This pass implements a simple
  68. // alias analysis using ScalarEvolution queries.
  69. //
  70. FunctionPass *createScalarEvolutionAliasAnalysisPass();
  71. //===--------------------------------------------------------------------===//
  72. //
  73. // createTypeBasedAliasAnalysisPass - This pass implements metadata-based
  74. // type-based alias analysis.
  75. //
  76. ImmutablePass *createTypeBasedAliasAnalysisPass();
  77. //===--------------------------------------------------------------------===//
  78. //
  79. // createObjCARCAliasAnalysisPass - This pass implements ObjC-ARC-based
  80. // alias analysis.
  81. //
  82. ImmutablePass *createObjCARCAliasAnalysisPass();
  83. //===--------------------------------------------------------------------===//
  84. //
  85. // createProfileLoaderPass - This pass loads information from a profile dump
  86. // file.
  87. //
  88. ModulePass *createProfileLoaderPass();
  89. extern char &ProfileLoaderPassID;
  90. //===--------------------------------------------------------------------===//
  91. //
  92. // createProfileMetadataLoaderPass - This pass loads information from a
  93. // profile dump file and sets branch weight metadata.
  94. //
  95. ModulePass *createProfileMetadataLoaderPass();
  96. extern char &ProfileMetadataLoaderPassID;
  97. //===--------------------------------------------------------------------===//
  98. //
  99. // createNoProfileInfoPass - This pass implements the default "no profile".
  100. //
  101. ImmutablePass *createNoProfileInfoPass();
  102. //===--------------------------------------------------------------------===//
  103. //
  104. // createProfileEstimatorPass - This pass estimates profiling information
  105. // instead of loading it from a previous run.
  106. //
  107. FunctionPass *createProfileEstimatorPass();
  108. extern char &ProfileEstimatorPassID;
  109. //===--------------------------------------------------------------------===//
  110. //
  111. // createProfileVerifierPass - This pass verifies profiling information.
  112. //
  113. FunctionPass *createProfileVerifierPass();
  114. //===--------------------------------------------------------------------===//
  115. //
  116. // createPathProfileLoaderPass - This pass loads information from a path
  117. // profile dump file.
  118. //
  119. ModulePass *createPathProfileLoaderPass();
  120. extern char &PathProfileLoaderPassID;
  121. //===--------------------------------------------------------------------===//
  122. //
  123. // createNoPathProfileInfoPass - This pass implements the default
  124. // "no path profile".
  125. //
  126. ImmutablePass *createNoPathProfileInfoPass();
  127. //===--------------------------------------------------------------------===//
  128. //
  129. // createPathProfileVerifierPass - This pass verifies path profiling
  130. // information.
  131. //
  132. ModulePass *createPathProfileVerifierPass();
  133. //===--------------------------------------------------------------------===//
  134. //
  135. // createDSAAPass - This pass implements simple context sensitive alias
  136. // analysis.
  137. //
  138. ModulePass *createDSAAPass();
  139. //===--------------------------------------------------------------------===//
  140. //
  141. // createDSOptPass - This pass uses DSA to do a series of simple
  142. // optimizations.
  143. //
  144. ModulePass *createDSOptPass();
  145. //===--------------------------------------------------------------------===//
  146. //
  147. // createSteensgaardPass - This pass uses the data structure graphs to do a
  148. // simple context insensitive alias analysis.
  149. //
  150. ModulePass *createSteensgaardPass();
  151. //===--------------------------------------------------------------------===//
  152. //
  153. /// createLazyValueInfoPass - This creates an instance of the LazyValueInfo
  154. /// pass.
  155. FunctionPass *createLazyValueInfoPass();
  156. //===--------------------------------------------------------------------===//
  157. //
  158. // createDependenceAnalysisPass - This creates an instance of the
  159. // DependenceAnalysis pass.
  160. //
  161. FunctionPass *createDependenceAnalysisPass();
  162. //===--------------------------------------------------------------------===//
  163. //
  164. // createCostModelAnalysisPass - This creates an instance of the
  165. // CostModelAnalysis pass.
  166. //
  167. FunctionPass *createCostModelAnalysisPass();
  168. //===--------------------------------------------------------------------===//
  169. //
  170. // Minor pass prototypes, allowing us to expose them through bugpoint and
  171. // analyze.
  172. FunctionPass *createInstCountPass();
  173. //===--------------------------------------------------------------------===//
  174. //
  175. // createRegionInfoPass - This pass finds all single entry single exit regions
  176. // in a function and builds the region hierarchy.
  177. //
  178. FunctionPass *createRegionInfoPass();
  179. // Print module-level debug info metadata in human-readable form.
  180. ModulePass *createModuleDebugInfoPrinterPass();
  181. //===--------------------------------------------------------------------===//
  182. //
  183. // createMemDepPrinter - This pass exhaustively collects all memdep
  184. // information and prints it with -analyze.
  185. //
  186. FunctionPass *createMemDepPrinter();
  187. }
  188. #endif