[Mlir-commits] [llvm] [mlir] [MLIR] Add initial convert-memref-to-emitc pass (PR #85389)

Marius Brehler llvmlistbot at llvm.org
Fri Mar 15 06:22:04 PDT 2024


================
@@ -0,0 +1,29 @@
+//===- MemRefToEmitC.h - Convert MemRef to EmitC --------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+#ifndef MLIR_CONVERSION_MEMREFTOEMITC_MEMREFTOEMITC_H
+#define MLIR_CONVERSION_MEMREFTOEMITC_MEMREFTOEMITC_H
+
+#include "mlir/Pass/Pass.h"
+
+namespace mlir {
+class RewritePatternSet;
+class TypeConverter;
+
+#define GEN_PASS_DECL_CONVERTMEMREFTOEMITC
+#include "mlir/Conversion/Passes.h.inc"
----------------
marbre wrote:

I think it would be nice to move this to a separate `MemRefToEmitCPass.h` file so that `populateMemRefToEmitCConversionPatterns` can be combined with other conversions. That's what was already done for `ArithToEmitC` and `FuncToEmitC`.

https://github.com/llvm/llvm-project/pull/85389


More information about the Mlir-commits mailing list