Generate the register function for global declare
variable. This function is meant to be called after the
actual data is allocated. Patch to insert the function call
and attribute will follow.
Depends on D157338
Paths
| Differential D157339
[flang][openacc] Generate the declare register function ClosedPublic Authored by clementval on Aug 7 2023, 3:04 PM.
Details Summary Generate the register function for global declare Depends on D157338
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 7 2023, 3:04 PM Comment Actions The "register" function looks great - but it is incomplete. Also, attachment needs to happen - aka the device descriptor needs to point to the device data. From an IR perspective, to achieve this we need to generate the varPtrPtr. No need to do it in this change since this is not declare clause specific - but seems this functionality will need added at some point.
This revision is now accepted and ready to land.Aug 8 2023, 5:31 PM This revision was landed with ongoing or failed builds.Aug 9 2023, 10:25 AM Closed by commit rGade0aa6163e0: [flang][openacc] Generate the declare register function (authored by clementval). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 548671 flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-declare.f90
|
As I thought more about this today, I prefer the following naming:
The routines should be suffixed with something more descriptive like "_acc_declare_update_box_post_alloc" and "_acc_declare_update_box_post_dealloc"
The attribute can either be names "acc.declare_register"/"acc.declare_unregister" or "acc.declare_inform"/"acc.declare_renounce"