comparison tools/binding/llvm/c/transforms/IPO.d @ 1585:29b0f2d11c92

Updated C binding to be more up to date with LLVM.
author tomas@localhost.localdomain
date Thu, 22 Oct 2009 13:30:30 +0200
parents
children
comparison
equal deleted inserted replaced
1584:f4c56ed32238 1585:29b0f2d11c92
1 // Converted to the D programming language by Tomas Lindquist Olsen 2009
2
3 /*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\
4 |* *|
5 |* The LLVM Compiler Infrastructure *|
6 |* *|
7 |* This file is distributed under the University of Illinois Open Source *|
8 |* License. See LICENSE.TXT for details. *|
9 |* *|
10 |*===----------------------------------------------------------------------===*|
11 |* *|
12 |* This header declares the C interface to libLLVMIPO.a, which implements *|
13 |* various interprocedural transformations of the LLVM IR. *|
14 |* *|
15 \*===----------------------------------------------------------------------===*/
16 module llvm.c.transforms.IPO;
17
18 import llvm.c.Core;
19
20 extern(C):
21
22 /** See llvm::createArgumentPromotionPass function. */
23 void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM);
24
25 /** See llvm::createConstantMergePass function. */
26 void LLVMAddConstantMergePass(LLVMPassManagerRef PM);
27
28 /** See llvm::createDeadArgEliminationPass function. */
29 void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM);
30
31 /** See llvm::createDeadTypeEliminationPass function. */
32 void LLVMAddDeadTypeEliminationPass(LLVMPassManagerRef PM);
33
34 /** See llvm::createFunctionAttrsPass function. */
35 void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM);
36
37 /** See llvm::createFunctionInliningPass function. */
38 void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM);
39
40 /** See llvm::createGlobalDCEPass function. */
41 void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM);
42
43 /** See llvm::createGlobalOptimizerPass function. */
44 void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM);
45
46 /** See llvm::createIPConstantPropagationPass function. */
47 void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM);
48
49 /** See llvm::createLowerSetJmpPass function. */
50 void LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM);
51
52 /** See llvm::createPruneEHPass function. */
53 void LLVMAddPruneEHPass(LLVMPassManagerRef PM);
54
55 /** See llvm::createRaiseAllocationsPass function. */
56 void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM);
57
58 /** See llvm::createStripDeadPrototypesPass function. */
59 void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM);
60
61 /** See llvm::createStripSymbolsPass function. */
62 void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM);