[Mlir-commits] [mlir] [MLIR][ODS] Re-enable direct implementation of type interfaces with method bodies (PR #166335)
Andi Drebes
llvmlistbot at llvm.org
Tue Nov 4 20:45:03 PST 2025
================
@@ -637,8 +637,10 @@ 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;
+ } else if (method.getDefaultImplementation() &&
----------------
andidr wrote:
Done.
https://github.com/llvm/llvm-project/pull/166335
More information about the Mlir-commits
mailing list