MLIR 22.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 *memcpyFunctionName = "memcpy";
14constexpr const char *cppStandardLibraryHeader = "cstdlib";
15constexpr const char *cStandardLibraryHeader = "stdlib.h";
16constexpr const char *cppStringLibraryHeader = "cstring";
17constexpr const char *cStringLibraryHeader = "string.h";
18
19namespace mlir {
20class DialectRegistry;
21class RewritePatternSet;
22class TypeConverter;
23
25
27 const TypeConverter &converter);
28
29void registerConvertMemRefToEmitCInterface(DialectRegistry &registry);
30} // namespace mlir
31
32#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 * alignedAllocFunctionName
Include the generated interface declarations.
void populateMemRefToEmitCTypeConversion(TypeConverter &typeConverter)
const FrozenRewritePatternSet & patterns
void populateMemRefToEmitCConversionPatterns(RewritePatternSet &patterns, const TypeConverter &converter)
void registerConvertMemRefToEmitCInterface(DialectRegistry &registry)