LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
c/Transforms/Scalar.h
Go to the documentation of this file.
1 /*===-- Scalar.h - Scalar Transformation Library 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 libLLVMScalarOpts.a, which *|
11 |* implements various scalar transformations of the LLVM IR. *|
12 |* *|
13 |* Many exotic languages can interoperate with C code but have a harder time *|
14 |* with C++ due to name mangling. So in addition to C, this interface enables *|
15 |* tools written in such languages. *|
16 |* *|
17 \*===----------------------------------------------------------------------===*/
18 
19 #ifndef LLVM_C_TRANSFORMS_SCALAR_H
20 #define LLVM_C_TRANSFORMS_SCALAR_H
21 
22 #include "llvm-c/Core.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /**
29  * @defgroup LLVMCTransformsScalar Scalar transformations
30  * @ingroup LLVMCTransforms
31  *
32  * @{
33  */
34 
35 /** See llvm::createAggressiveDCEPass function. */
37 
38 /** See llvm::createCFGSimplificationPass function. */
40 
41 /** See llvm::createDeadStoreEliminationPass function. */
43 
44 /** See llvm::createGVNPass function. */
46 
47 /** See llvm::createIndVarSimplifyPass function. */
49 
50 /** See llvm::createInstructionCombiningPass function. */
52 
53 /** See llvm::createJumpThreadingPass function. */
55 
56 /** See llvm::createLICMPass function. */
58 
59 /** See llvm::createLoopDeletionPass function. */
61 
62 /** See llvm::createLoopIdiomPass function */
64 
65 /** See llvm::createLoopRotatePass function. */
67 
68 /** See llvm::createLoopRerollPass function. */
70 
71 /** See llvm::createLoopUnrollPass function. */
73 
74 /** See llvm::createLoopUnswitchPass function. */
76 
77 /** See llvm::createMemCpyOptPass function. */
79 
80 /** See llvm::createPartiallyInlineLibCallsPass function. */
82 
83 /** See llvm::createPromoteMemoryToRegisterPass function. */
85 
86 /** See llvm::createReassociatePass function. */
88 
89 /** See llvm::createSCCPPass function. */
91 
92 /** See llvm::createScalarReplAggregatesPass function. */
94 
95 /** See llvm::createScalarReplAggregatesPass function. */
97 
98 /** See llvm::createScalarReplAggregatesPass function. */
100  int Threshold);
101 
102 /** See llvm::createSimplifyLibCallsPass function. */
104 
105 /** See llvm::createTailCallEliminationPass function. */
107 
108 /** See llvm::createConstantPropagationPass function. */
110 
111 /** See llvm::demotePromoteMemoryToRegisterPass function. */
113 
114 /** See llvm::createVerifierPass function. */
116 
117 /** See llvm::createCorrelatedValuePropagationPass function */
119 
120 /** See llvm::createEarlyCSEPass function */
122 
123 /** See llvm::createLowerExpectIntrinsicPass function */
125 
126 /** See llvm::createTypeBasedAliasAnalysisPass function */
128 
129 /** See llvm::createBasicAliasAnalysisPass function */
131 
132 /**
133  * @}
134  */
135 
136 #ifdef __cplusplus
137 }
138 #endif /* defined(__cplusplus) */
139 
140 #endif
void LLVMAddJumpThreadingPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:96
void LLVMAddGVNPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:84
void LLVMAddLICMPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:100
void LLVMAddSimplifyLibCallsPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:161
void LLVMAddTypeBasedAliasAnalysisPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:189
void LLVMAddReassociatePass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:140
void LLVMAddConstantPropagationPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:169
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:136
void LLVMAddLoopUnrollPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:120
void LLVMAddScalarReplAggregatesPassSSA(LLVMPassManagerRef PM)
Definition: Scalar.cpp:152
void LLVMAddLoopRerollPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:116
void LLVMAddDeadStoreEliminationPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:80
void LLVMAddLoopRotatePass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:112
void LLVMAddScalarReplAggregatesPassWithThreshold(LLVMPassManagerRef PM, int Threshold)
Definition: Scalar.cpp:156
void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:104
void LLVMAddEarlyCSEPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:185
void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:148
void LLVMAddLoopIdiomPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:108
void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:92
void LLVMAddSCCPPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:144
void LLVMAddVerifierPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:177
void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:173
void LLVMAddBasicAliasAnalysisPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:193
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Core.h:125
void LLVMAddCorrelatedValuePropagationPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:181
void LLVMAddLowerExpectIntrinsicPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:197
void LLVMAddIndVarSimplifyPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:88
void LLVMAddTailCallEliminationPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:165
void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:132
static int const Threshold
void LLVMAddLoopUnswitchPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:124
void LLVMAddCFGSimplificationPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:76
void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:128
void LLVMAddAggressiveDCEPass(LLVMPassManagerRef PM)
Definition: Scalar.cpp:72