This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Summary

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

Depends on D151146

Diff Detail

Event Timeline

clementval created this revision.May 22 2023, 1:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 1:37 PM
clementval requested review of this revision.May 22 2023, 1:37 PM
jeanPerier added inline comments.May 22 2023, 11:49 PM
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
586

Isn't this change also part of D151149?

clementval added inline comments.May 23 2023, 8:41 AM
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
586

These lines check for the reduction list. In D151149 they check the privatizations list.

Rename reductions to reductionRecipes

razvanlupusoru accepted this revision.May 24 2023, 9:47 AM

This is great. Thank you for the renaming.

This revision is now accepted and ready to land.May 24 2023, 9:47 AM
clementval closed this revision.May 24 2023, 10:48 AM