[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


================
@@ -63,6 +76,16 @@ void mlir::bufferization::BufferizationDialect::initialize() {
 #include "mlir/Dialect/Bufferization/IR/BufferizationOps.cpp.inc"
       >();
   addInterfaces<BufferizationInlinerInterface>();
+
+  assert(getContext() != nullptr);
----------------
ftynse wrote:

Nit: `assert(condition && "message")` is the convention in MLIR. I'm also relatively confident that the context is never null if you have a live dialect object.

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


More information about the Mlir-commits mailing list