llvm.org GIT mirror llvm / 2dd4f35
llvm-c: Split Utils out of Scalar.h To fix layering (so that Scalar.h, a libScalarOpts header, isn't included from Utils - which libScalarOpts depends on). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328839 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 1 year, 6 months ago
3 changed file(s) with 51 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
9494 /** See llvm::createPartiallyInlineLibCallsPass function. */
9595 void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM);
9696
97 /** See llvm::createLowerSwitchPass function. */
98 void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM);
99
100 /** See llvm::createPromoteMemoryToRegisterPass function. */
101 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
102
10397 /** See llvm::createReassociatePass function. */
10498 void LLVMAddReassociatePass(LLVMPassManagerRef PM);
10599
0 /*===-- Utils.h - Transformation Utils Library C Interface ------*- C++ -*-===*\
1 |* *|
2 |* The LLVM Compiler Infrastructure *|
3 |* *|
4 |* This file is distributed under the University of Illinois Open Source *|
5 |* License. See LICENSE.TXT for details. *|
6 |* *|
7 |*===----------------------------------------------------------------------===*|
8 |* *|
9 |* This header declares the C interface to libLLVMTransformUtils.a, which *|
10 |* implements various transformation utilities of the LLVM IR. *|
11 |* *|
12 |* Many exotic languages can interoperate with C code but have a harder time *|
13 |* with C++ due to name mangling. So in addition to C, this interface enables *|
14 |* tools written in such languages. *|
15 |* *|
16 \*===----------------------------------------------------------------------===*/
17
18 #ifndef LLVM_C_TRANSFORMS_UTILS_H
19 #define LLVM_C_TRANSFORMS_UTILS_H
20
21 #include "llvm-c/Types.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 /**
28 * @defgroup LLVMCTransformsUtils Transformation Utilities
29 * @ingroup LLVMCTransforms
30 *
31 * @{
32 */
33
34 /** See llvm::createLowerSwitchPass function. */
35 void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM);
36
37 /** See llvm::createPromoteMemoryToRegisterPass function. */
38 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
39
40 /**
41 * @}
42 */
43
44 #ifdef __cplusplus
45 }
46 #endif /* defined(__cplusplus) */
47
48 #endif
49
1313
1414 #include "llvm/Transforms/Utils.h"
1515 #include "llvm-c/Initialization.h"
16 #include "llvm-c/Transforms/Scalar.h"
16 #include "llvm-c/Transforms/Utils.h"
1717 #include "llvm/IR/LegacyPassManager.h"
1818 #include "llvm/InitializePasses.h"
1919 #include "llvm/PassRegistry.h"