Andrew Scull | cdfcccc | 2018-10-05 20:58:37 +0100 | [diff] [blame] | 1 | /*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\ |
| 2 | |* *| |
Andrew Walbran | 16937d0 | 2019-10-22 13:54:20 +0100 | [diff] [blame^] | 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 *| |
Andrew Scull | cdfcccc | 2018-10-05 20:58:37 +0100 | [diff] [blame] | 7 | |* *| |
| 8 | |*===----------------------------------------------------------------------===*| |
| 9 | |* *| |
| 10 | |* This header declares the C interface to libLLVMInstCombine.a, which *| |
| 11 | |* combines instructions to form fewer, simple IR instructions. *| |
| 12 | |* *| |
| 13 | \*===----------------------------------------------------------------------===*/ |
| 14 | |
| 15 | #ifndef LLVM_C_TRANSFORMS_INSTCOMBINE_H |
| 16 | #define LLVM_C_TRANSFORMS_INSTCOMBINE_H |
| 17 | |
| 18 | #include "llvm-c/Types.h" |
| 19 | |
| 20 | #ifdef __cplusplus |
| 21 | extern "C" { |
| 22 | #endif |
| 23 | |
| 24 | /** |
| 25 | * @defgroup LLVMCTransformsInstCombine Instruction Combining transformations |
| 26 | * @ingroup LLVMCTransforms |
| 27 | * |
| 28 | * @{ |
| 29 | */ |
| 30 | |
| 31 | /** See llvm::createInstructionCombiningPass function. */ |
| 32 | void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM); |
| 33 | |
| 34 | /** |
| 35 | * @} |
| 36 | */ |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | } |
| 40 | #endif /* defined(__cplusplus) */ |
| 41 | |
| 42 | #endif |
| 43 | |