[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / include / llvm-c / Transforms / Vectorize.h
blobe383481fe4f417756822ecc46becf41515b9e71b
1 /*===---------------------------Vectorize.h --------------------- -*- C -*-===*\
2 |*===----------- Vectorization Transformation Library C Interface ---------===*|
3 |* *|
4 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
5 |* Exceptions. *|
6 |* See https://llvm.org/LICENSE.txt for license information. *|
7 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
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 \*===----------------------------------------------------------------------===*/
20 #ifndef LLVM_C_TRANSFORMS_VECTORIZE_H
21 #define LLVM_C_TRANSFORMS_VECTORIZE_H
23 #include "llvm-c/Types.h"
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 /**
30 * @defgroup LLVMCTransformsVectorize Vectorization transformations
31 * @ingroup LLVMCTransforms
33 * @{
36 /** See llvm::createLoopVectorizePass function. */
37 void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
39 /** See llvm::createSLPVectorizerPass function. */
40 void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM);
42 /**
43 * @}
46 #ifdef __cplusplus
48 #endif /* defined(__cplusplus) */
50 #endif