xref: /openbsd-src/gnu/llvm/llvm/include/llvm-c/Transforms/Vectorize.h (revision 09467b48e8bc8b4905716062da846024139afbf2)
1*09467b48Spatrick /*===---------------------------Vectorize.h --------------------- -*- C -*-===*\
2*09467b48Spatrick |*===----------- Vectorization Transformation Library C Interface ---------===*|
3*09467b48Spatrick |*                                                                            *|
4*09467b48Spatrick |* Part of the LLVM Project, under the Apache License v2.0 with LLVM          *|
5*09467b48Spatrick |* Exceptions.                                                                *|
6*09467b48Spatrick |* See https://llvm.org/LICENSE.txt for license information.                  *|
7*09467b48Spatrick |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception                    *|
8*09467b48Spatrick |*                                                                            *|
9*09467b48Spatrick |*===----------------------------------------------------------------------===*|
10*09467b48Spatrick |*                                                                            *|
11*09467b48Spatrick |* This header declares the C interface to libLLVMVectorize.a, which          *|
12*09467b48Spatrick |* implements various vectorization transformations of the LLVM IR.           *|
13*09467b48Spatrick |*                                                                            *|
14*09467b48Spatrick |* Many exotic languages can interoperate with C code but have a harder time  *|
15*09467b48Spatrick |* with C++ due to name mangling. So in addition to C, this interface enables *|
16*09467b48Spatrick |* tools written in such languages.                                           *|
17*09467b48Spatrick |*                                                                            *|
18*09467b48Spatrick \*===----------------------------------------------------------------------===*/
19*09467b48Spatrick 
20*09467b48Spatrick #ifndef LLVM_C_TRANSFORMS_VECTORIZE_H
21*09467b48Spatrick #define LLVM_C_TRANSFORMS_VECTORIZE_H
22*09467b48Spatrick 
23*09467b48Spatrick #include "llvm-c/ExternC.h"
24*09467b48Spatrick #include "llvm-c/Types.h"
25*09467b48Spatrick 
26*09467b48Spatrick LLVM_C_EXTERN_C_BEGIN
27*09467b48Spatrick 
28*09467b48Spatrick /**
29*09467b48Spatrick  * @defgroup LLVMCTransformsVectorize Vectorization transformations
30*09467b48Spatrick  * @ingroup LLVMCTransforms
31*09467b48Spatrick  *
32*09467b48Spatrick  * @{
33*09467b48Spatrick  */
34*09467b48Spatrick 
35*09467b48Spatrick /** See llvm::createLoopVectorizePass function. */
36*09467b48Spatrick void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
37*09467b48Spatrick 
38*09467b48Spatrick /** See llvm::createSLPVectorizerPass function. */
39*09467b48Spatrick void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM);
40*09467b48Spatrick 
41*09467b48Spatrick /**
42*09467b48Spatrick  * @}
43*09467b48Spatrick  */
44*09467b48Spatrick 
45*09467b48Spatrick LLVM_C_EXTERN_C_END
46*09467b48Spatrick 
47*09467b48Spatrick #endif
48