LLVM API Documentation
00001 /*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\ 00002 |* *| 00003 |* The LLVM Compiler Infrastructure *| 00004 |* *| 00005 |* This file is distributed under the University of Illinois Open Source *| 00006 |* License. See LICENSE.TXT for details. *| 00007 |* *| 00008 |*===----------------------------------------------------------------------===*| 00009 |* *| 00010 |* This header declares the C interface to libLLVMIPO.a, which implements *| 00011 |* various interprocedural transformations of the LLVM IR. *| 00012 |* *| 00013 \*===----------------------------------------------------------------------===*/ 00014 00015 #ifndef LLVM_C_TRANSFORMS_IPO_H 00016 #define LLVM_C_TRANSFORMS_IPO_H 00017 00018 #include "llvm-c/Core.h" 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 /** See llvm::createArgumentPromotionPass function. */ 00025 void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM); 00026 00027 /** See llvm::createConstantMergePass function. */ 00028 void LLVMAddConstantMergePass(LLVMPassManagerRef PM); 00029 00030 /** See llvm::createDeadArgEliminationPass function. */ 00031 void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM); 00032 00033 /** See llvm::createDeadTypeEliminationPass function. */ 00034 void LLVMAddDeadTypeEliminationPass(LLVMPassManagerRef PM); 00035 00036 /** See llvm::createFunctionAttrsPass function. */ 00037 void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM); 00038 00039 /** See llvm::createFunctionInliningPass function. */ 00040 void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM); 00041 00042 /** See llvm::createGlobalDCEPass function. */ 00043 void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM); 00044 00045 /** See llvm::createGlobalOptimizerPass function. */ 00046 void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM); 00047 00048 /** See llvm::createIPConstantPropagationPass function. */ 00049 void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM); 00050 00051 /** See llvm::createLowerSetJmpPass function. */ 00052 void LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM); 00053 00054 /** See llvm::createPruneEHPass function. */ 00055 void LLVMAddPruneEHPass(LLVMPassManagerRef PM); 00056 00057 /** See llvm::createRaiseAllocationsPass function. */ 00058 void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM); 00059 00060 /** See llvm::createStripDeadPrototypesPass function. */ 00061 void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM); 00062 00063 /** See llvm::createStripSymbolsPass function. */ 00064 void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM); 00065 00066 #ifdef __cplusplus 00067 } 00068 #endif /* defined(__cplusplus) */ 00069 00070 #endif