Set the isOptional flag for the self clause. Move the optional and parenthesis part of the parser. Update the rest of the code to deal with the optional value.
Preparatory work for D106968.
Paths
| Differential D106965
[flang][openacc][NFC] Make self clause value optional in ACC.td and extract the parser ClosedPublic Authored by clementval on Jul 28 2021, 8:05 AM.
Details Summary Set the isOptional flag for the self clause. Move the optional and parenthesis part of the parser. Update the rest of the code to deal with the optional value. Preparatory work for D106968.
Diff Detail
Unit TestsFailed Event Timelineclementval added a child revision: D106968: [flang][openacc] Use TableGen to generate the clause parser. clementval added reviewers: kiranktp, kiranchandramohan, jdoerfert, SouraVX, sscalpone.Jul 28 2021, 8:18 AM Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 8 2022, 4:54 AM
Comment Actions LGTM.
This revision is now accepted and ready to land.Jul 8 2022, 5:49 AM This revision was landed with ongoing or failed builds.Jul 8 2022, 6:45 AM Closed by commit rG36e24da8eb56: [flang][openacc][NFC] Make self clause value optional in ACC.td and extract the… (authored by clementval). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 362392 flang/lib/Lower/OpenACC.cpp
flang/lib/Parser/openacc-parsers.cpp
flang/lib/Semantics/check-acc-structure.cpp
llvm/include/llvm/Frontend/OpenACC/ACC.td
|
I guess you mean if it is not a logical expression or an object list it is an empty self clause and should be represented by the selfAttr. If so, I think this is not nested correctly.