[Mlir-commits] [mlir] [mlir] Make MemoryEffectsOpInterface optional. (PR #187427)
Mehdi Amini
llvmlistbot at llvm.org
Thu Mar 19 02:31:47 PDT 2026
================
@@ -213,6 +213,12 @@ class MemoryEffectOpInterfaceFallbackModel
callbacks.getEffects(wrap(op), cEffects, callbacks.userData);
}
+ bool hasKnownMemoryEffects(Operation *op) const {
+ if (callbacks.hasKnownMemoryEffects)
+ return callbacks.hasKnownMemoryEffects(wrap(op));
+ return true;
+ }
----------------
joker-eph wrote:
Nit: The C API is missing testing
https://github.com/llvm/llvm-project/pull/187427
More information about the Mlir-commits
mailing list