Previously it would not consider ops with DeclareOpInterfaceMethods<InferTypeOpInterface> as having the InferTypeOpInterface
interfaces added. The OpInterface nested inside DeclareOpInterfaceMethods is not retained so that one could query it, so check for the the C++ class directly (a bit raw/low level).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/tools/mlir-tblgen/OpFormatGen.cpp | ||
---|---|---|
2357 | Should we have a method op.hasCppInterface("::mlir::InferTypeOpInterface") or something like that? |
mlir/tools/mlir-tblgen/OpFormatGen.cpp | ||
---|---|---|
2357 | Good idea, I'll do that in follow up (I'm not crazy about the C++ names , so might consider if there is a different way to do this/some unwrapping like is done for OpTraitList). |
Should we have a method op.hasCppInterface("::mlir::InferTypeOpInterface") or something like that?