Hal Finkel | 8a3aebe | 2012-02-01 05:51:45 +0000 | [diff] [blame] | 1 | /*===---------------------------Vectorize.h --------------------- -*- C -*-===*\ |
Hal Finkel | c34e511 | 2012-02-01 03:51:43 +0000 | [diff] [blame] | 2 | |*===----------- Vectorization Transformation Library C Interface ---------===*| |
| 3 | |* *| |
| 4 | |* The LLVM Compiler Infrastructure *| |
| 5 | |* *| |
| 6 | |* This file is distributed under the University of Illinois Open Source *| |
| 7 | |* License. See LICENSE.TXT for details. *| |
| 8 | |* *| |
| 9 | |*===----------------------------------------------------------------------===*| |
| 10 | |* *| |
| 11 | |* This header declares the C interface to libLLVMVectorize.a, which *| |
| 12 | |* implements various vectorization transformations of the LLVM IR. *| |
| 13 | |* *| |
| 14 | |* Many exotic languages can interoperate with C code but have a harder time *| |
| 15 | |* with C++ due to name mangling. So in addition to C, this interface enables *| |
| 16 | |* tools written in such languages. *| |
| 17 | |* *| |
| 18 | \*===----------------------------------------------------------------------===*/ |
| 19 | |
| 20 | #ifndef LLVM_C_TRANSFORMS_VECTORIZE_H |
| 21 | #define LLVM_C_TRANSFORMS_VECTORIZE_H |
| 22 | |
Eric Christopher | a6b9600 | 2015-12-18 01:46:52 +0000 | [diff] [blame] | 23 | #include "llvm-c/Types.h" |
Hal Finkel | c34e511 | 2012-02-01 03:51:43 +0000 | [diff] [blame] | 24 | |
| 25 | #ifdef __cplusplus |
| 26 | extern "C" { |
| 27 | #endif |
| 28 | |
Gregory Szorc | 34c863a | 2012-03-21 03:54:29 +0000 | [diff] [blame] | 29 | /** |
| 30 | * @defgroup LLVMCTransformsVectorize Vectorization transformations |
| 31 | * @ingroup LLVMCTransforms |
| 32 | * |
| 33 | * @{ |
| 34 | */ |
| 35 | |
Benjamin Kramer | a74129a | 2012-10-20 12:53:26 +0000 | [diff] [blame] | 36 | /** See llvm::createLoopVectorizePass function. */ |
| 37 | void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM); |
| 38 | |
Benjamin Kramer | c86fdf1 | 2013-04-11 11:36:36 +0000 | [diff] [blame] | 39 | /** See llvm::createSLPVectorizerPass function. */ |
| 40 | void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM); |
| 41 | |
Gregory Szorc | 34c863a | 2012-03-21 03:54:29 +0000 | [diff] [blame] | 42 | /** |
| 43 | * @} |
| 44 | */ |
| 45 | |
Hal Finkel | c34e511 | 2012-02-01 03:51:43 +0000 | [diff] [blame] | 46 | #ifdef __cplusplus |
| 47 | } |
| 48 | #endif /* defined(__cplusplus) */ |
| 49 | |
| 50 | #endif |