Lower the acc delcare directive in function/subroutine
to the newly introduced acc.declare operation. Only a single
acc.declare operation is procduced in a function or subroutine
so they don't end up nested.
Depends on D158314
Paths
| Differential D158315
[flang][openacc] Lower acc declare to the new acc.declare function ClosedPublic Authored by clementval on Aug 18 2023, 2:35 PM.
Details Summary Lower the acc delcare directive in function/subroutine Depends on D158314
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 18 2023, 2:35 PM Comment Actions Looks good to me. Thank you!
If this is a hard requirement, then we should probably assert it in the verifier code in D158314. Comment Actions
I am hoping its just for readability. It should NOT be a hard requirement IMO. We should be able to inline functions with declare clauses and allow nesting. Comment Actions
This is not really a requirement of the dialect itself but it's more to simplify the lowering and especially the finalization of the implicit region. This revision is now accepted and ready to land.Aug 18 2023, 2:49 PM Comment Actions
Sounds reasonable. Thank you! Closed by commit rG4d04baeca5d8: [flang][openacc] Lower acc declare to the new acc.declare function (authored by clementval). · Explain WhyAug 21 2023, 12:39 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 551644 flang/lib/Lower/Bridge.cpp
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/HLFIR/acc-declare.f90
flang/test/Lower/OpenACC/acc-declare.f90
|