IPO.h revision 224145
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\*===----------------------------------------------------------------------===*/ 14 15#ifndef LLVM_C_TRANSFORMS_IPO_H 16#define LLVM_C_TRANSFORMS_IPO_H 17 18#include "llvm-c/Core.h" 19 20#ifdef __cplusplus 21extern "C" { 22#endif 23 24/** See llvm::createArgumentPromotionPass function. */ 25void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM); 26 27/** See llvm::createConstantMergePass function. */ 28void LLVMAddConstantMergePass(LLVMPassManagerRef PM); 29 30/** See llvm::createDeadArgEliminationPass function. */ 31void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM); 32 33/** See llvm::createFunctionAttrsPass function. */ 34void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM); 35 36/** See llvm::createFunctionInliningPass function. */ 37void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM); 38 39/** See llvm::createGlobalDCEPass function. */ 40void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM); 41 42/** See llvm::createGlobalOptimizerPass function. */ 43void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM); 44 45/** See llvm::createIPConstantPropagationPass function. */ 46void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM); 47 48/** See llvm::createLowerSetJmpPass function. */ 49void LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM); 50 51/** See llvm::createPruneEHPass function. */ 52void LLVMAddPruneEHPass(LLVMPassManagerRef PM); 53 54/** See llvm::createIPSCCPPass function. */ 55void LLVMAddIPSCCPPass(LLVMPassManagerRef PM); 56 57/** See llvm::createInternalizePass function. */ 58void LLVMAddInternalizePass(LLVMPassManagerRef, unsigned AllButMain); 59 60// FIXME: Remove in LLVM 3.0. 61void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM); 62 63/** See llvm::createStripDeadPrototypesPass function. */ 64void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM); 65 66/** See llvm::createStripSymbolsPass function. */ 67void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM); 68 69#ifdef __cplusplus 70} 71#endif /* defined(__cplusplus) */ 72 73#endif 74