Despite handling regions and inferred return types, the builder was never generated for ops with both InferReturnTypeOpInterface and regions.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LG I'm not sure if TODO is addressed fully given condition move
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | ||
---|---|---|
1224 | We don't have any real uses where we utilize the types of the region to determine the type so this check was to conservatively skip until verified that it is useful. You move the check down, what does that change? (out of my cache) |
It's only partially addressed (region and successors -> regions).
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | ||
---|---|---|
1224 | This check was called in two places. In one place it stops a builder with inferredReturnTypes from being generated that does not handle regions (although there isn't any reason it shouldn't, since the extent of region handling is calling odsState.addRegion() N times). In another it does the same, except that builder has code for dealing with regions. The builder gen in these edge cases could use a look-over. |
We don't have any real uses where we utilize the types of the region to determine the type so this check was to conservatively skip until verified that it is useful. You move the check down, what does that change? (out of my cache)