[Mlir-commits] [mlir] [MLIR][ODS] Re-enable direct implementation of type interfaces with method bodies (PR #166335)

Andi Drebes llvmlistbot at llvm.org
Wed Nov 5 00:46:40 PST 2025


================
@@ -637,8 +637,11 @@ void DefGen::emitTraitMethods(const InterfaceTrait &trait) {
   for (auto &method : iface.getMethods()) {
     // Don't declare if the method has a body. Or if the method has a default
     // implementation and the def didn't request that it always be declared.
-    if (method.getBody() || (method.getDefaultImplementation() &&
-                             !alwaysDeclared.count(method.getName()))) {
+    if (method.getBody()) {
+      continue;
+    }
----------------
andidr wrote:

Seems so ;)

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


More information about the Mlir-commits mailing list