1 /*===-- IPO.h - Interprocedural Transformations C Interface -----*- 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 declares the C interface to libLLVMIPO.a, which implements *|
11 |* various interprocedural transformations of the LLVM IR. *|
13 \*===----------------------------------------------------------------------===*/
15 #ifndef LLVM_C_TRANSFORMS_IPO_H
16 #define LLVM_C_TRANSFORMS_IPO_H
18 #include "llvm-c/Core.h"
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::createDeadTypeEliminationPass function. */
34 void LLVMAddDeadTypeEliminationPass(LLVMPassManagerRef PM
);
36 /** See llvm::createFunctionAttrsPass function. */
37 void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM
);
39 /** See llvm::createFunctionInliningPass function. */
40 void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM
);
42 /** See llvm::createGlobalDCEPass function. */
43 void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM
);
45 /** See llvm::createGlobalOptimizerPass function. */
46 void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM
);
48 /** See llvm::createIPConstantPropagationPass function. */
49 void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM
);
51 /** See llvm::createLowerSetJmpPass function. */
52 void LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM
);
54 /** See llvm::createPruneEHPass function. */
55 void LLVMAddPruneEHPass(LLVMPassManagerRef PM
);
57 /** See llvm::createRaiseAllocationsPass function. */
58 void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM
);
60 /** See llvm::createStripDeadPrototypesPass function. */
61 void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM
);
63 /** See llvm::createStripSymbolsPass function. */
64 void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM
);
68 #endif /* defined(__cplusplus) */