This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Make 1:N type conversion tests less brittle.
ClosedPublic

Authored by ingomueller-net on Apr 11 2023, 6:38 AM.

Details

Summary

They had previously not followed the best practices; I must have
commited these in a rush. In particular, they used hard-coded SSA names
instead of patterns. This patch changes that, uses CHECK-DAG more
instead of CHECK-NEXT, and makes all function names unique.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2023, 6:38 AM
ingomueller-net requested review of this revision.Apr 11 2023, 6:38 AM

I realized that my new names weren't accurate: both functions can yield argument or target materializations depending on which ops are converted, so it does not make sense to have target or source in their names. Instead, I named them based on the (original) function signature.

mehdi_amini accepted this revision.Apr 12 2023, 10:43 PM

Thanks for the update! :)

This revision is now accepted and ready to land.Apr 12 2023, 10:43 PM