[all-commits] [llvm/llvm-project] 362b11: [flang][openacc] Avoid privatizing symbols during ...
Razvan Lupusoru via All-commits
all-commits at lists.llvm.org
Wed Oct 18 14:55:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 362b1157868c019e28ffca545a7d85c46c375ded
https://github.com/llvm/llvm-project/commit/362b1157868c019e28ffca545a7d85c46c375ded
Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
Date: 2023-10-18 (Wed, 18 Oct 2023)
Changed paths:
M flang/lib/Semantics/resolve-directives.cpp
M flang/test/Semantics/OpenACC/acc-symbols01.f90
Log Message:
-----------
[flang][openacc] Avoid privatizing symbols during semantics (#69506)
During flang handling of semantics of OpenACC private/firstprivate/
reduction clauses (including the implicitly private loop IV), a new
scoped symbol was being created. This could lead to ambiguity in the
lowered FIR - aka having multiple fir.declare for the same symbol.
Because lowering of OpenACC does not materialize the meaning of the
private clauses (by actually creating a scoped local symbol), it does
not make sense to create a new symbol in semantics either.
I updated the acc-symbols01.f90 test to reflect this updated approach.
Technically, the test could be removed, but it made sense to keep in
place to highlight this intentional decision.
More information about the All-commits
mailing list