This is an archive of the discontinued LLVM Phabricator instance.

[mlir][openacc] Use new reduction design in acc.parallel
ClosedPublic

Authored by clementval on May 22 2023, 1:25 PM.

Details

Summary

After D150818 the reduction clause is represented
with a acc.reduction.recipe operation and an operand.
This patch updates the acc.parallel op for the new design.

Diff Detail

Event Timeline

clementval created this revision.May 22 2023, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 1:25 PM
clementval requested review of this revision.May 22 2023, 1:25 PM
jeanPerier accepted this revision.May 22 2023, 11:46 PM

Looks great!

This revision is now accepted and ready to land.May 22 2023, 11:46 PM
razvanlupusoru accepted this revision.May 24 2023, 8:08 AM

Other than the name change, this looks great to me.

mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
638–640

Same feedback as on another change - I would prefer this list being called reductionRecipes.

Rename reductions to reductionRecipes

clementval marked an inline comment as done.May 24 2023, 9:13 AM
razvanlupusoru accepted this revision.May 24 2023, 9:46 AM

This is great. Thank you for the renaming.