4 Commits

Author SHA1 Message Date
Nick Kreeger
3a1288c0fb
[mlir][Utils] Add verifyElementTypesMatch helper (NFC) (#176668)
This change builds on #174336 and #175880, which introduced shared
VerificationUtils with verifyDynamicDimensionCount() and
verifyRanksMatch() methods.

This patch adds a new verifyElementTypesMatch() verification utility
that checks if two shaped types have matching element types and emits
consistent error messages. The utility is applied to several ops across
the MemRef and Vector dialects.
2026-01-23 16:41:00 +00:00
Andrzej Warzyński
ae425ab913
[mlir][nfc] Fix function definition names post #175880 (#176586)
Ensure that the input argument names for `verifyRanksMatch` in the
function definition match those in the declaration.
2026-01-17 19:06:44 +00:00
Nick Kreeger
585efb4c74
[mlir][Utils] Add verifyRanksMatch helper (NFC) (#175880)
This change builds on https://github.com/llvm/llvm-project/pull/174336,
which introduced shared VerificationUtils with an initial
verifyDynamicDimensionCount() method.

This patch adds a new verifyRanksMatch() verification utility that
checks if two shaped types have matching ranks and emits consistent
error messages. The utility is applied to several ops across multiple
MLIR dialects.

---------

Co-authored-by: Andrzej Warzyński <andrzej.warzynski@gmail.com>
2026-01-17 18:50:51 +00:00
Nick Kreeger
e289b2e765
[mlir][Utils] Add VerificationUtils (NFC) (#174336)
Introduces `VerificationUtils` to consolidate common operation
verification patterns in MLIR. This initial implementation provides
`verifyDynamicDimensionCount()` to reduce code duplication across
dialect verifiers.

This is an NFC (No Functional Change) refactoring that improves code
maintainability by extracting reusable verification logic into a shared
utility.
2026-01-12 16:52:44 +00:00