1//===- MemRefToLLVM.h - MemRef to LLVM dialect conversion -------*- C++ -*-===//
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
9#ifndef MLIR_CONVERSION_MEMREFTOLLVM_MEMREFTOLLVM_H
10#define MLIR_CONVERSION_MEMREFTOLLVM_MEMREFTOLLVM_H
11
12#include <memory>
13
14namespace mlir {
15class DialectRegistry;
16class Pass;
17class LLVMTypeConverter;
18class RewritePatternSet;
19
20#define GEN_PASS_DECL_FINALIZEMEMREFTOLLVMCONVERSIONPASS
21#include "mlir/Conversion/Passes.h.inc"
22
23/// Collect a set of patterns to convert memory-related operations from the
24/// MemRef dialect to the LLVM dialect.
25void populateFinalizeMemRefToLLVMConversionPatterns(
26 LLVMTypeConverter &converter, RewritePatternSet &patterns);
27
28void registerConvertMemRefToLLVMInterface(DialectRegistry &registry);
29
30} // namespace mlir
31
32#endif // MLIR_CONVERSION_MEMREFTOLLVM_MEMREFTOLLVM_H
33

source code of mlir/include/mlir/Conversion/MemRefToLLVM/MemRefToLLVM.h