This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF] Add scf::ForeachThread canonicalization.
ClosedPublic

Authored by nicolasvasilache on Jun 20 2022, 11:50 PM.

Details

Summary

This revision adds the necessary plumbing for canonicalizing scf::ForeachThread with the
AffineOpSCFCanonicalizationPattern.
In the process the loopMatcher helper is updated to take OpFoldResult instead of just values.
This allows composing various scenarios without the need for an artificial builder.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jun 20 2022, 11:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2022, 11:50 PM
springerm accepted this revision.Jun 21 2022, 12:22 AM
This revision is now accepted and ready to land.Jun 21 2022, 12:22 AM