Land the long talked about "type system rewrite" patch. This
[llvm/stm8.git] / include / llvm-c / Transforms / IPO.h
blob89b129869c7ba6c850eb36267c58c08759d8c2c5
1 /*===-- IPO.h - Interprocedural Transformations C Interface -----*- 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 declares the C interface to libLLVMIPO.a, which implements *|
11 |* various interprocedural transformations of the LLVM IR. *|
12 |* *|
13 \*===----------------------------------------------------------------------===*/
15 #ifndef LLVM_C_TRANSFORMS_IPO_H
16 #define LLVM_C_TRANSFORMS_IPO_H
18 #include "llvm-c/Core.h"
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 /** See llvm::createArgumentPromotionPass function. */
25 void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM);
27 /** See llvm::createConstantMergePass function. */
28 void LLVMAddConstantMergePass(LLVMPassManagerRef PM);
30 /** See llvm::createDeadArgEliminationPass function. */
31 void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM);
33 /** See llvm::createFunctionAttrsPass function. */
34 void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM);
36 /** See llvm::createFunctionInliningPass function. */
37 void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM);
39 /** See llvm::createGlobalDCEPass function. */
40 void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM);
42 /** See llvm::createGlobalOptimizerPass function. */
43 void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM);
45 /** See llvm::createIPConstantPropagationPass function. */
46 void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM);
48 /** See llvm::createLowerSetJmpPass function. */
49 void LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM);
51 /** See llvm::createPruneEHPass function. */
52 void LLVMAddPruneEHPass(LLVMPassManagerRef PM);
54 /** See llvm::createIPSCCPPass function. */
55 void LLVMAddIPSCCPPass(LLVMPassManagerRef PM);
57 /** See llvm::createInternalizePass function. */
58 void LLVMAddInternalizePass(LLVMPassManagerRef, unsigned AllButMain);
60 // FIXME: Remove in LLVM 3.0.
61 void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM);
63 /** See llvm::createStripDeadPrototypesPass function. */
64 void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM);
66 /** See llvm::createStripSymbolsPass function. */
67 void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM);
69 #ifdef __cplusplus
71 #endif /* defined(__cplusplus) */
73 #endif