IPO.h revision 193323
1193323Sed/*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\ 2193323Sed|* *| 3193323Sed|* The LLVM Compiler Infrastructure *| 4193323Sed|* *| 5193323Sed|* This file is distributed under the University of Illinois Open Source *| 6193323Sed|* License. See LICENSE.TXT for details. *| 7193323Sed|* *| 8193323Sed|*===----------------------------------------------------------------------===*| 9193323Sed|* *| 10193323Sed|* This header declares the C interface to libLLVMIPO.a, which implements *| 11193323Sed|* various interprocedural transformations of the LLVM IR. *| 12193323Sed|* *| 13193323Sed\*===----------------------------------------------------------------------===*/ 14193323Sed 15193323Sed#ifndef LLVM_C_TRANSFORMS_IPO_H 16193323Sed#define LLVM_C_TRANSFORMS_IPO_H 17193323Sed 18193323Sed#include "llvm-c/Core.h" 19193323Sed 20193323Sed#ifdef __cplusplus 21193323Sedextern "C" { 22193323Sed#endif 23193323Sed 24193323Sed/** See llvm::createArgumentPromotionPass function. */ 25193323Sedvoid LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM); 26193323Sed 27193323Sed/** See llvm::createConstantMergePass function. */ 28193323Sedvoid LLVMAddConstantMergePass(LLVMPassManagerRef PM); 29193323Sed 30193323Sed/** See llvm::createDeadArgEliminationPass function. */ 31193323Sedvoid LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM); 32193323Sed 33193323Sed/** See llvm::createDeadTypeEliminationPass function. */ 34193323Sedvoid LLVMAddDeadTypeEliminationPass(LLVMPassManagerRef PM); 35193323Sed 36193323Sed/** See llvm::createFunctionAttrsPass function. */ 37193323Sedvoid LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM); 38193323Sed 39193323Sed/** See llvm::createFunctionInliningPass function. */ 40193323Sedvoid LLVMAddFunctionInliningPass(LLVMPassManagerRef PM); 41193323Sed 42193323Sed/** See llvm::createGlobalDCEPass function. */ 43193323Sedvoid LLVMAddGlobalDCEPass(LLVMPassManagerRef PM); 44193323Sed 45193323Sed/** See llvm::createGlobalOptimizerPass function. */ 46193323Sedvoid LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM); 47193323Sed 48193323Sed/** See llvm::createIPConstantPropagationPass function. */ 49193323Sedvoid LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM); 50193323Sed 51193323Sed/** See llvm::createLowerSetJmpPass function. */ 52193323Sedvoid LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM); 53193323Sed 54193323Sed/** See llvm::createPruneEHPass function. */ 55193323Sedvoid LLVMAddPruneEHPass(LLVMPassManagerRef PM); 56193323Sed 57193323Sed/** See llvm::createRaiseAllocationsPass function. */ 58193323Sedvoid LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM); 59193323Sed 60193323Sed/** See llvm::createStripDeadPrototypesPass function. */ 61193323Sedvoid LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM); 62193323Sed 63193323Sed/** See llvm::createStripSymbolsPass function. */ 64193323Sedvoid LLVMAddStripSymbolsPass(LLVMPassManagerRef PM); 65193323Sed 66193323Sed#ifdef __cplusplus 67193323Sed} 68193323Sed#endif /* defined(__cplusplus) */ 69193323Sed 70193323Sed#endif 71