[Mlir-commits] [mlir] [mlir] Declare promised interfaces for all dialects [2/3] (PR #78368)

Mehdi Amini llvmlistbot at llvm.org
Tue Jan 30 00:26:53 PST 2024


================
@@ -63,6 +64,9 @@ void mlir::bufferization::BufferizationDialect::initialize() {
 #include "mlir/Dialect/Bufferization/IR/BufferizationOps.cpp.inc"
       >();
   addInterfaces<BufferizationInlinerInterface>();
+  declarePromisedInterface<func::CallOp, BufferizableOpInterface>();
+  declarePromisedInterface<func::FuncOp, BufferizableOpInterface>();
+  declarePromisedInterface<func::ReturnOp, BufferizableOpInterface>();
----------------
joker-eph wrote:

It is a bit unexpected to me that one dialect would define promises for ops in another dialect!

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


More information about the Mlir-commits mailing list