This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Generate pre/post alloc/dealloc function for in subroutine declare
ClosedPublic

Authored by clementval on Aug 16 2023, 11:21 AM.

Details

Summary

Lowering was missing to generate the pre/post alloc/dealloc
functions for the acc declare variables. This patch adds the generation.
These functions have the descriptor as their unique argument.

Diff Detail

Event Timeline

clementval created this revision.Aug 16 2023, 11:21 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 16 2023, 11:21 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Aug 16 2023, 11:21 AM
razvanlupusoru accepted this revision.Aug 16 2023, 11:25 AM

Thank you for fixing this issue. Just a small concern on the exit operation for two cases - otherwise change looks good.

flang/lib/Lower/OpenACC.cpp
2764

DeleteOp

2804

DeleteOp?

This revision is now accepted and ready to land.Aug 16 2023, 11:25 AM

Update exit op

clementval marked 2 inline comments as done.Aug 16 2023, 11:39 AM
clementval added inline comments.
flang/lib/Lower/OpenACC.cpp
2764

Makes sense. Just updated.

clementval marked an inline comment as done.

Fix op name

razvanlupusoru accepted this revision.Aug 16 2023, 11:52 AM
This revision was landed with ongoing or failed builds.Aug 16 2023, 1:04 PM
This revision was automatically updated to reflect the committed changes.