blob: 710bebe598be3d7c2df39efe48f94e554d2164df [file] [log] [blame]
Chris Lattner224cef62009-03-06 16:54:19 +00001/*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\
Chris Lattner57c03832009-03-06 16:52:18 +00002|* *|
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|* *|
Chris Lattner224cef62009-03-06 16:54:19 +000010|* This header declares the C interface to libLLVMIPO.a, which implements *|
11|* various interprocedural transformations of the LLVM IR. *|
Chris Lattner57c03832009-03-06 16:52:18 +000012|* *|
13\*===----------------------------------------------------------------------===*/
14
Chris Lattner224cef62009-03-06 16:54:19 +000015#ifndef LLVM_C_TRANSFORMS_IPO_H
16#define LLVM_C_TRANSFORMS_IPO_H
Chris Lattner57c03832009-03-06 16:52:18 +000017
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
Chris Lattner57c03832009-03-06 16:52:18 +000033/** See llvm::createFunctionAttrsPass function. */
34void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM);
35
36/** See llvm::createFunctionInliningPass function. */
37void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM);
38
Rafael Espindola3d722902011-07-26 15:23:23 +000039/** See llvm::createAlwaysInlinerPass function. */
40void LLVMAddAlwaysInlinerPass(LLVMPassManagerRef PM);
41
Chris Lattner57c03832009-03-06 16:52:18 +000042/** See llvm::createGlobalDCEPass function. */
43void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM);
44
45/** See llvm::createGlobalOptimizerPass function. */
46void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM);
47
48/** See llvm::createIPConstantPropagationPass function. */
49void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM);
50
Chris Lattner57c03832009-03-06 16:52:18 +000051/** See llvm::createPruneEHPass function. */
52void LLVMAddPruneEHPass(LLVMPassManagerRef PM);
53
Wesley Peck16ddd8852010-04-09 20:43:20 +000054/** See llvm::createIPSCCPPass function. */
55void LLVMAddIPSCCPPass(LLVMPassManagerRef PM);
56
57/** See llvm::createInternalizePass function. */
58void LLVMAddInternalizePass(LLVMPassManagerRef, unsigned AllButMain);
59
Chris Lattner57c03832009-03-06 16:52:18 +000060/** See llvm::createStripDeadPrototypesPass function. */
61void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM);
62
63/** See llvm::createStripSymbolsPass function. */
64void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM);
65
66#ifdef __cplusplus
67}
68#endif /* defined(__cplusplus) */
69
70#endif