2 Commits

Author SHA1 Message Date
Stefan Weigl-Bosker
f9181a82fd
[MLIR][IndexingMapOpInterface]: Validate maps and operands before composing loop ranges (#173434)
Fixes https://github.com/llvm/llvm-project/issues/173374, Fixes
https://github.com/llvm/llvm-project/issues/173568

After d31ba5256327d30f264c2f671bf197877b242cde, we only checked the
operand and result ranks after building `endLoopRangeValues`, which
leads to crashes in a couple of cases (see tests).
2026-01-05 16:28:44 -08:00
Nicolas Vasilache
d31ba52563
[mlir][Interface] Factor out common IndexingMapOpInterface behavior in a new generic interface (#145313)
Refactor the verifiers to make use of the common bits and make
`vector.contract` also use this interface.
In the process, the confusingly named getStaticShape has disappeared.

Note: the verifier for IndexingMapOpInterface is currently called
manually from other verifiers as it was unclear how to avoid it taking
precedence over more meaningful error messages
2025-06-24 07:56:32 +02:00