This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add loop bounds to scf.foreach_thread.
ClosedPublic

Authored by pifon2a on Feb 14 2023, 11:14 PM.

Diff Detail

Event Timeline

pifon2a created this revision.Feb 14 2023, 11:14 PM
pifon2a requested review of this revision.Feb 14 2023, 11:14 PM
Herald added a project: Restricted Project. · View Herald Transcript

Would it make sense to split this PR into two: rename and addition of step/lb/ub?

Would it make sense to split this PR into two: rename and addition of step/lb/ub?

I would prefer doing it in one.

Would it make sense to split this PR into two: rename and addition of step/lb/ub?

I would prefer doing it in one.

Please reconsider, the important logic changes that need to be reviewed independently are drowned into the massive NFC cruft ..

Reconsidered :)

pifon2a updated this revision to Diff 497605.Feb 15 2023, 2:38 AM

Revert unchanged file.

"Is anybody out there?"

pifon2a retitled this revision from [mlir] Add loop bounds to scf.foreach_thread and rename it to scf.forall. to [mlir] Add loop bounds to scf.foreach_thread..Feb 15 2023, 6:19 AM
mehdi_amini added inline comments.Feb 15 2023, 9:26 AM
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
518

I suspect the doc should have some updates?

mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
1148

This is testing if it has 1 or more steps, but the comment says "if it has just a single step."

pifon2a marked 2 inline comments as done.Feb 16 2023, 12:28 PM
pifon2a updated this revision to Diff 498122.Feb 16 2023, 12:29 PM

Introduce mixed form.

Looks great, thanks much @pifon2a !

This revision is now accepted and ready to land.Feb 16 2023, 12:54 PM
pifon2a updated this revision to Diff 498259.Feb 16 2023, 11:30 PM

remove logging

pifon2a updated this revision to Diff 498262.Feb 16 2023, 11:55 PM

Update tests

This revision was landed with ongoing or failed builds.Feb 16 2023, 11:58 PM
This revision was automatically updated to reflect the committed changes.