This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF] Add bufferization hook for scf.foreach_thread and terminator.
ClosedPublic

Authored by nicolasvasilache on Jun 1 2022, 4:25 AM.

Details

Summary

scf.foreach_thread results alias with the underlying scf.foreach_thread.parallel_insert_slice destination operands
and they bufferize to equivalent buffers in the absence of other conflicts.
scf.foreach_thread.parallel_insert_slice conflict detection is similar to tensor.insert_slice conflict detection.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 4:25 AM
nicolasvasilache requested review of this revision.Jun 1 2022, 4:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 4:25 AM

Add a 2D bufferization test and fix related bugs.

springerm accepted this revision.Jun 2 2022, 11:58 PM
springerm added inline comments.
mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
853

I deleted this recently. Just remove the entire function

This revision is now accepted and ready to land.Jun 2 2022, 11:58 PM
This revision was landed with ongoing or failed builds.Jun 3 2022, 12:19 AM
This revision was automatically updated to reflect the committed changes.