| 1 | //===- ConvertVectorToLLVM.h - Utils to convert from the vector dialect ---===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | #ifndef MLIR_CONVERSION_VECTORTOLLVM_CONVERTVECTORTOLLVM_H_ |
| 9 | #define MLIR_CONVERSION_VECTORTOLLVM_CONVERTVECTORTOLLVM_H_ |
| 10 | |
| 11 | #include "mlir/Transforms/DialectConversion.h" |
| 12 | |
| 13 | namespace mlir { |
| 14 | class LLVMTypeConverter; |
| 15 | |
| 16 | /// Collect a set of patterns to convert from the Vector dialect to LLVM. |
| 17 | void populateVectorToLLVMConversionPatterns( |
| 18 | const LLVMTypeConverter &converter, RewritePatternSet &patterns, |
| 19 | bool reassociateFPReductions = false, bool force32BitVectorIndices = false, |
| 20 | bool useVectorAlignment = false, bool enableGEPInboundsNuw = false); |
| 21 | |
| 22 | namespace vector { |
| 23 | void registerConvertVectorToLLVMInterface(DialectRegistry ®istry); |
| 24 | } |
| 25 | } // namespace mlir |
| 26 | |
| 27 | #endif // MLIR_CONVERSION_VECTORTOLLVM_CONVERTVECTORTOLLVM_H_ |
| 28 | |