Regions were intentionally left unsupported: https://github.com/llvm/llvm-project/commit/398f04aa49109fd5d1eff2c1946a2956dc6b29c6
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | ||
---|---|---|
1586 | This TODO refers to the region not being passed in in 1520 (well and also no testing for ops with regions with inference). This was being conservative due to lack of evaluation. Change to pass in regions and I think we can remove the conservative checks here. Ideally we had a test that exercised inference with regions too. |
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | ||
---|---|---|
1586 | Now we pass odsState.regions to inferReturnTypes(). Q: Could you expand on what "conservative checks" mean? I'm having some trouble understanding what checks to remove. Q: op-result.td is updated to reflect the change. Would that be enough test coverage? If not, could you provide some guidance on where to add additional test cases? Thanks! |
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp | ||
---|---|---|
1586 | Sure, the check is the one you removed below. I call it conservative as there isn't much technical reason behind the exclusion except I didn't have have a good end to end usage which showed if API was good. Ideally we'd like an execution test with an op, but nothing much was missing that I can think of that a test would show beyond this. So sufficient. |
This TODO refers to the region not being passed in in 1520 (well and also no testing for ops with regions with inference). This was being conservative due to lack of evaluation. Change to pass in regions and I think we can remove the conservative checks here. Ideally we had a test that exercised inference with regions too.