LLVM  16.0.0git
Scalar.h
Go to the documentation of this file.
1 /*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\
2 |* *|
3 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
4 |* Exceptions. *|
5 |* See https://llvm.org/LICENSE.txt for license information. *|
6 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
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/ExternC.h"
23 #include "llvm-c/Types.h"
24 
26 
27 /**
28  * @defgroup LLVMCTransformsScalar Scalar transformations
29  * @ingroup LLVMCTransforms
30  *
31  * @{
32  */
33 
34 /** See llvm::createAggressiveDCEPass function. */
36 
37 /** See llvm::createDeadCodeEliminationPass function. */
39 
40 /** See llvm::createBitTrackingDCEPass function. */
42 
43 /** See llvm::createAlignmentFromAssumptionsPass function. */
45 
46 /** See llvm::createCFGSimplificationPass function. */
48 
49 /** See llvm::createDeadStoreEliminationPass function. */
51 
52 /** See llvm::createScalarizerPass function. */
54 
55 /** See llvm::createMergedLoadStoreMotionPass function. */
57 
58 /** See llvm::createGVNPass function. */
60 
61 /** See llvm::createGVNPass function. */
63 
64 /** See llvm::createIndVarSimplifyPass function. */
66 
67 /** See llvm::createInstructionCombiningPass function. */
69 
70 /** See llvm::createInstSimplifyLegacyPass function. */
72 
73 /** See llvm::createJumpThreadingPass function. */
75 
76 /** See llvm::createLICMPass function. */
78 
79 /** See llvm::createLoopDeletionPass function. */
81 
82 /** See llvm::createLoopIdiomPass function */
84 
85 /** See llvm::createLoopRotatePass function. */
87 
88 /** See llvm::createLoopRerollPass function. */
90 
91 /** See llvm::createLoopUnrollPass function. */
93 
94 /** See llvm::createLoopUnrollAndJamPass function. */
96 
97 /** See llvm::createLowerAtomicPass function. */
99 
100 /** See llvm::createMemCpyOptPass function. */
102 
103 /** See llvm::createPartiallyInlineLibCallsPass function. */
105 
106 /** See llvm::createReassociatePass function. */
108 
109 /** See llvm::createSCCPPass function. */
111 
112 /** See llvm::createSROAPass function. */
114 
115 /** See llvm::createSROAPass function. */
117 
118 /** See llvm::createSROAPass function. */
120  int Threshold);
121 
122 /** See llvm::createSimplifyLibCallsPass function. */
124 
125 /** See llvm::createTailCallEliminationPass function. */
127 
128 /** See llvm::demotePromoteMemoryToRegisterPass function. */
130 
131 /** See llvm::createVerifierPass function. */
133 
134 /** See llvm::createCorrelatedValuePropagationPass function */
136 
137 /** See llvm::createEarlyCSEPass function */
139 
140 /** See llvm::createEarlyCSEPass function */
142 
143 /** See llvm::createLowerExpectIntrinsicPass function */
145 
146 /** See llvm::createLowerConstantIntrinsicsPass function */
148 
149 /** See llvm::createTypeBasedAliasAnalysisPass function */
151 
152 /** See llvm::createScopedNoAliasAAPass function */
154 
155 /** See llvm::createBasicAliasAnalysisPass function */
157 
158 /** See llvm::createUnifyFunctionExitNodesPass function */
160 
161 /**
162  * @}
163  */
164 
166 
167 #endif
LLVMAddCorrelatedValuePropagationPass
void LLVMAddCorrelatedValuePropagationPass(LLVMPassManagerRef PM)
See llvm::createCorrelatedValuePropagationPass function.
Definition: Scalar.cpp:260
LLVMAddCFGSimplificationPass
void LLVMAddCFGSimplificationPass(LLVMPassManagerRef PM)
See llvm::createCFGSimplificationPass function.
Definition: Scalar.cpp:139
LLVMAddPartiallyInlineLibCallsPass
void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM)
See llvm::createPartiallyInlineLibCallsPass function.
Definition: Scalar.cpp:219
LLVMAddScopedNoAliasAAPass
void LLVMAddScopedNoAliasAAPass(LLVMPassManagerRef PM)
See llvm::createScopedNoAliasAAPass function.
Definition: Scalar.cpp:280
Types.h
LLVMAddReassociatePass
void LLVMAddReassociatePass(LLVMPassManagerRef PM)
See llvm::createReassociatePass function.
Definition: Scalar.cpp:223
LLVMAddLoopRerollPass
void LLVMAddLoopRerollPass(LLVMPassManagerRef PM)
See llvm::createLoopRerollPass function.
Definition: Scalar.cpp:199
LLVMAddTypeBasedAliasAnalysisPass
void LLVMAddTypeBasedAliasAnalysisPass(LLVMPassManagerRef PM)
See llvm::createTypeBasedAliasAnalysisPass function.
Definition: Scalar.cpp:276
LLVMAddLowerConstantIntrinsicsPass
void LLVMAddLowerConstantIntrinsicsPass(LLVMPassManagerRef PM)
See llvm::createLowerConstantIntrinsicsPass function.
Definition: Scalar.cpp:288
LLVMAddJumpThreadingPass
void LLVMAddJumpThreadingPass(LLVMPassManagerRef PM)
See llvm::createJumpThreadingPass function.
Definition: Scalar.cpp:171
LLVMAddSimplifyLibCallsPass
void LLVMAddSimplifyLibCallsPass(LLVMPassManagerRef PM)
See llvm::createSimplifyLibCallsPass function.
Definition: Scalar.cpp:244
LLVMAddUnifyFunctionExitNodesPass
void LLVMAddUnifyFunctionExitNodesPass(LLVMPassManagerRef PM)
See llvm::createUnifyFunctionExitNodesPass function.
Definition: Scalar.cpp:296
LLVMAddDemoteMemoryToRegisterPass
void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM)
See llvm::demotePromoteMemoryToRegisterPass function.
Definition: Scalar.cpp:252
LLVMAddLoopUnrollAndJamPass
void LLVMAddLoopUnrollAndJamPass(LLVMPassManagerRef PM)
See llvm::createLoopUnrollAndJamPass function.
Definition: Scalar.cpp:207
LLVMAddScalarizerPass
void LLVMAddScalarizerPass(LLVMPassManagerRef PM)
See llvm::createScalarizerPass function.
Definition: Scalar.cpp:147
LLVMAddAlignmentFromAssumptionsPass
void LLVMAddAlignmentFromAssumptionsPass(LLVMPassManagerRef PM)
See llvm::createAlignmentFromAssumptionsPass function.
Definition: Scalar.cpp:135
LLVMAddLoopDeletionPass
void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM)
See llvm::createLoopDeletionPass function.
Definition: Scalar.cpp:183
LLVMAddInstructionCombiningPass
void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM)
See llvm::createInstructionCombiningPass function.
Definition: InstructionCombining.cpp:4730
LLVMAddTailCallEliminationPass
void LLVMAddTailCallEliminationPass(LLVMPassManagerRef PM)
See llvm::createTailCallEliminationPass function.
Definition: Scalar.cpp:248
LLVMAddBitTrackingDCEPass
void LLVMAddBitTrackingDCEPass(LLVMPassManagerRef PM)
See llvm::createBitTrackingDCEPass function.
Definition: Scalar.cpp:131
LLVMAddVerifierPass
void LLVMAddVerifierPass(LLVMPassManagerRef PM)
See llvm::createVerifierPass function.
Definition: Scalar.cpp:256
LLVMAddIndVarSimplifyPass
void LLVMAddIndVarSimplifyPass(LLVMPassManagerRef PM)
See llvm::createIndVarSimplifyPass function.
Definition: Scalar.cpp:163
LLVMAddEarlyCSEPass
void LLVMAddEarlyCSEPass(LLVMPassManagerRef PM)
See llvm::createEarlyCSEPass function.
Definition: Scalar.cpp:264
LLVMAddDCEPass
void LLVMAddDCEPass(LLVMPassManagerRef PM)
See llvm::createDeadCodeEliminationPass function.
Definition: Scalar.cpp:127
LLVMPassManagerRef
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:127
LLVMAddMergedLoadStoreMotionPass
void LLVMAddMergedLoadStoreMotionPass(LLVMPassManagerRef PM)
See llvm::createMergedLoadStoreMotionPass function.
Definition: Scalar.cpp:159
LLVMAddDeadStoreEliminationPass
void LLVMAddDeadStoreEliminationPass(LLVMPassManagerRef PM)
See llvm::createDeadStoreEliminationPass function.
Definition: Scalar.cpp:143
LLVMAddSCCPPass
void LLVMAddSCCPPass(LLVMPassManagerRef PM)
See llvm::createSCCPPass function.
Definition: Scalar.cpp:227
LLVM_C_EXTERN_C_END
#define LLVM_C_EXTERN_C_END
Definition: ExternC.h:36
LLVMAddInstructionSimplifyPass
void LLVMAddInstructionSimplifyPass(LLVMPassManagerRef PM)
See llvm::createInstSimplifyLegacyPass function.
Definition: Scalar.cpp:167
LLVMAddScalarReplAggregatesPass
void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM)
See llvm::createSROAPass function.
Definition: Scalar.cpp:231
LLVMAddLoopIdiomPass
void LLVMAddLoopIdiomPass(LLVMPassManagerRef PM)
See llvm::createLoopIdiomPass function.
Definition: Scalar.cpp:191
LLVMAddLoopRotatePass
void LLVMAddLoopRotatePass(LLVMPassManagerRef PM)
See llvm::createLoopRotatePass function.
Definition: Scalar.cpp:195
LLVMAddBasicAliasAnalysisPass
void LLVMAddBasicAliasAnalysisPass(LLVMPassManagerRef PM)
See llvm::createBasicAliasAnalysisPass function.
Definition: Scalar.cpp:284
LLVM_C_EXTERN_C_BEGIN
#define LLVM_C_EXTERN_C_BEGIN
Definition: ExternC.h:35
LLVMAddLowerExpectIntrinsicPass
void LLVMAddLowerExpectIntrinsicPass(LLVMPassManagerRef PM)
See llvm::createLowerExpectIntrinsicPass function.
Definition: Scalar.cpp:292
LLVMAddScalarReplAggregatesPassWithThreshold
void LLVMAddScalarReplAggregatesPassWithThreshold(LLVMPassManagerRef PM, int Threshold)
See llvm::createSROAPass function.
Definition: Scalar.cpp:239
LLVMAddLowerAtomicPass
void LLVMAddLowerAtomicPass(LLVMPassManagerRef PM)
See llvm::createLowerAtomicPass function.
Definition: Scalar.cpp:211
LLVMAddNewGVNPass
void LLVMAddNewGVNPass(LLVMPassManagerRef PM)
See llvm::createGVNPass function.
Definition: Scalar.cpp:155
LLVMAddLoopUnrollPass
void LLVMAddLoopUnrollPass(LLVMPassManagerRef PM)
See llvm::createLoopUnrollPass function.
Definition: Scalar.cpp:203
LLVMAddMemCpyOptPass
void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM)
See llvm::createMemCpyOptPass function.
Definition: Scalar.cpp:215
LLVMAddGVNPass
void LLVMAddGVNPass(LLVMPassManagerRef PM)
See llvm::createGVNPass function.
Definition: Scalar.cpp:151
LLVMAddEarlyCSEMemSSAPass
void LLVMAddEarlyCSEMemSSAPass(LLVMPassManagerRef PM)
See llvm::createEarlyCSEPass function.
Definition: Scalar.cpp:268
LLVMAddScalarReplAggregatesPassSSA
void LLVMAddScalarReplAggregatesPassSSA(LLVMPassManagerRef PM)
See llvm::createSROAPass function.
Definition: Scalar.cpp:235
LLVMAddLICMPass
void LLVMAddLICMPass(LLVMPassManagerRef PM)
See llvm::createLICMPass function.
Definition: Scalar.cpp:179
ExternC.h
LLVMAddAggressiveDCEPass
void LLVMAddAggressiveDCEPass(LLVMPassManagerRef PM)
See llvm::createAggressiveDCEPass function.
Definition: Scalar.cpp:123