This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF] Add a ParallelCombiningOpInterface to decouple scf::PerformConcurrently from its contained operations
ClosedPublic

Authored by nicolasvasilache on Jun 29 2022, 2:39 PM.

Details

Summary

This allows purging references of scf.ForeachThreadOp and scf.PerformConcurrentlyOp from
ParallelInsertSliceOp.
This will allowmoving the op closer to tensor::InsertSliceOp with which it should share much more
code.

In the future, the decoupling will also allow extending the type of ops that can be used in the
parallel combinator as well as semantics related to multiple concurrent inserts to the same
result.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jun 29 2022, 2:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 2:39 PM

Add another helper method.

Rebase + fixes.

This revision is now accepted and ready to land.Jun 30 2022, 9:20 AM