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

[Flang][OpenMP] Re-implement lowering of DISTRIBUTE PARALLEL DO #135

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

skatrak
Copy link

@skatrak skatrak commented Aug 7, 2024

This patch updates the Flang lowering process for distribute parallel do to follow the "hoisted omp.parallel" representation. Now temporary allocations produced while lowering the loop body reside inside of that operation instead of the loop wrappers' parent region.

Special handling of omp.parallel with regards to alloca creation is removed, as it's no longer necessary to make this distinction. Impacted Lit tests are updated according to the new representation.

Complete PR stack:

This patch removes the `LoopWrapperInterface` from `omp.parallel` and updates
the semantics of the interface to make loop wrapper restrictions mandatory to
operations that have it, rather than a role they might optionally take.

MLIR operation verifiers are updated to expect the "hoisted omp.parallel"
representation for `distribute parallel do`, to be later implemented in place
of a loop wrapper `omp.parallel`.
This patch updates the Flang lowering process for `distribute parallel do` to
follow the "hoisted `omp.parallel`" representation. Now temporary allocations
produced while lowering the loop body reside inside of that operation instead
of the loop wrappers' parent region.

Special handling of `omp.parallel` with regards to alloca creation is removed,
as it's no longer necessary to make this distinction. Impacted Lit tests are
updated according to the new representation.
Base automatically changed from skatrak/dpd-01-interface to amd-trunk-dev August 13, 2024 10:26
@skatrak skatrak merged commit 13ae6e0 into amd-trunk-dev Aug 13, 2024
2 of 4 checks passed
@skatrak skatrak deleted the skatrak/dpd-02-flang branch August 13, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant