This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Generate declare pre/post dealloc function
ClosedPublic

Authored by clementval on Aug 9 2023, 11:25 AM.

Details

Summary

Generate the function dealing with the action on deallocation (pre/post) of
a declare variable.

Diff Detail

Event Timeline

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

Looks great! Just one thing - should an update also be added for this case? For proper cleanup - I would lean towards yes. Otherwise the descriptor in memory has dangling pointer and invalid fields.

clementval updated this revision to Diff 548787.Aug 9 2023, 3:24 PM

Split pre/post function

clementval retitled this revision from [flang][openacc] Generate declare post dealloc function to [flang][openacc] Generate declare pre/post dealloc function.Aug 9 2023, 3:25 PM
clementval edited the summary of this revision. (Show Details)
razvanlupusoru accepted this revision.Aug 10 2023, 10:15 AM

Looks great!

This revision is now accepted and ready to land.Aug 10 2023, 10:15 AM