MLIR  19.0.0git
ConvertVectorToLLVM.h
Go to the documentation of this file.
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 
12 
13 namespace mlir {
14 class LLVMTypeConverter;
15 
16 /// Collect a set of patterns to convert from Vector contractions to LLVM Matrix
17 /// Intrinsics. To lower to assembly, the LLVM flag -lower-matrix-intrinsics
18 /// will be needed when invoking LLVM.
19 void populateVectorToLLVMMatrixConversionPatterns(LLVMTypeConverter &converter,
20  RewritePatternSet &patterns);
21 
22 /// Collect a set of patterns to convert from the Vector dialect to LLVM.
24  LLVMTypeConverter &converter, RewritePatternSet &patterns,
25  bool reassociateFPReductions = false, bool force32BitVectorIndices = false);
26 
27 } // namespace mlir
28 
29 #endif // MLIR_CONVERSION_VECTORTOLLVM_CONVERTVECTORTOLLVM_H_
Include the generated interface declarations.
void populateVectorToLLVMConversionPatterns(LLVMTypeConverter &converter, RewritePatternSet &patterns, bool reassociateFPReductions=false, bool force32BitVectorIndices=false)
Collect a set of patterns to convert from the Vector dialect to LLVM.
void populateVectorToLLVMMatrixConversionPatterns(LLVMTypeConverter &converter, RewritePatternSet &patterns)
Collect a set of patterns to convert from Vector contractions to LLVM Matrix Intrinsics.