Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mlir] introduce transform.loop.forall_to_for #65474

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

ftynse
Copy link
Member

@ftynse ftynse commented Sep 6, 2023

Add a straightforward sequentialization transform from scf.forall to a nest of scf.for in absence of results and expose it as a transform op. This is helpful in combination with other transform ops, particularly fusion, that work best on parallel-by-construction scf.forall but later need to target sequential for loops.

Add a straightforward sequentialization transform from `scf.forall` to a
nest of `scf.for` in absence of results and expose it as a transform op.
This is helpful in combination with other transform ops, particularly
fusion, that work best on parallel-by-construction `scf.forall` but
later need to target sequential `for` loops.
@ftynse ftynse merged commit 4fbb5f9 into llvm:main Sep 20, 2023
@ftynse ftynse deleted the td-halide-ready-4 branch September 20, 2023 16:53
MaheshRavishankar pushed a commit that referenced this pull request Apr 24, 2024
#89636)

This PR extracts the existing `scf.forall` to `scf.for` conversion logic
inside a transform op (#65474)
into a standalone function which can be used in other transformations
and adds a `scf-forall-to-for` pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants