MLIR 22.0.0git
MemRefToLLVM.h
Go to the documentation of this file.
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;
20
21#define GEN_PASS_DECL_FINALIZEMEMREFTOLLVMCONVERSIONPASS
22#include "mlir/Conversion/Passes.h.inc"
23
24/// Collect a set of patterns to convert memory-related operations from the
25/// MemRef dialect to the LLVM dialect.
27 const LLVMTypeConverter &converter, RewritePatternSet &patterns,
28 SymbolTableCollection *symbolTables = nullptr);
29
30void registerConvertMemRefToLLVMInterface(DialectRegistry &registry);
31
32} // namespace mlir
33
34#endif // MLIR_CONVERSION_MEMREFTOLLVM_MEMREFTOLLVM_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Conversion from types to the LLVM IR dialect.
The abstract base pass class.
Definition Pass.h:51
This class represents a collection of SymbolTables.
Include the generated interface declarations.
void registerConvertMemRefToLLVMInterface(DialectRegistry &registry)
void populateFinalizeMemRefToLLVMConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, SymbolTableCollection *symbolTables=nullptr)
Collect a set of patterns to convert memory-related operations from the MemRef dialect to the LLVM di...
const FrozenRewritePatternSet & patterns