MLIR 23.0.0git
MemRefToEmitC.h
Go to the documentation of this file.
1//===- MemRefToEmitC.h - Convert MemRef to EmitC --------------------------===//
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_MEMREFTOEMITC_MEMREFTOEMITC_H
9#define MLIR_CONVERSION_MEMREFTOEMITC_MEMREFTOEMITC_H
10
11constexpr const char *alignedAllocFunctionName = "aligned_alloc";
12constexpr const char *mallocFunctionName = "malloc";
13constexpr const char *freeFunctionName = "free";
14constexpr const char *memcpyFunctionName = "memcpy";
15constexpr const char *cppStandardLibraryHeader = "cstdlib";
16constexpr const char *cStandardLibraryHeader = "stdlib.h";
17constexpr const char *cppStringLibraryHeader = "cstring";
18constexpr const char *cStringLibraryHeader = "string.h";
19
20namespace mlir {
21class DialectRegistry;
22class RewritePatternSet;
23class TypeConverter;
24
26
27void populateMemRefToEmitCConversionPatterns(RewritePatternSet &patterns,
28 const TypeConverter &converter);
29
30void registerConvertMemRefToEmitCInterface(DialectRegistry &registry);
31} // namespace mlir
32
33#endif // MLIR_CONVERSION_MEMREFTOEMITC_MEMREFTOEMITC_H
constexpr const char * mallocFunctionName
constexpr const char * cppStandardLibraryHeader
constexpr const char * cStringLibraryHeader
constexpr const char * cStandardLibraryHeader
constexpr const char * memcpyFunctionName
constexpr const char * cppStringLibraryHeader
constexpr const char * freeFunctionName
constexpr const char * alignedAllocFunctionName
Include the generated interface declarations.
void populateMemRefToEmitCTypeConversion(TypeConverter &typeConverter)
void populateMemRefToEmitCConversionPatterns(RewritePatternSet &patterns, const TypeConverter &converter)
void registerConvertMemRefToEmitCInterface(DialectRegistry &registry)