This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][transform][python] Verify modules in mix-in tests.
ClosedPublic

Authored by ingomueller-net on Aug 12 2023, 10:18 AM.

Details

Summary

The tests of the mix-in classes of the Python bindings currently passed
even if the ops constructed by the mix-ins under test failed to verify.
This is because the assembled IR is still printed in generic form even
if it does not verify, and the CHECK statements are formulated in such
a lenient way that they also match that generic form. This patch adds
explicit verification to the decorator that is used for all test
functions.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2023, 10:18 AM
ingomueller-net requested review of this revision.Aug 12 2023, 10:18 AM
springerm accepted this revision.Aug 14 2023, 12:52 AM
This revision is now accepted and ready to land.Aug 14 2023, 12:52 AM