[Mlir-commits] [mlir] [mlir][bufferization] Add tensor-like and memref-like interfaces (PR #134220)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Apr 4 00:51:17 PDT 2025
================
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
+#include "mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h"
----------------
ftynse wrote:
As suggested by the path, this tests libIR capabilities. We rarely use this style of unit tests. The way to test this would be to write a test-only pass that, e.g., looks at function signatures and adds an attribute to the function indicating whether the types of the function results implement certain interface. It can then live in `mlir/test/lib/Dialect/Bufferization`. There is already a precedent.
https://github.com/llvm/llvm-project/pull/134220
More information about the Mlir-commits
mailing list