diff options
author | Raghu Maddhipatla <7686592+raghavendhra@users.noreply.github.com> | 2024-10-14 08:39:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 08:39:25 -0500 |
commit | 8a7a7a46d09ccd9eabc535bd34a35cb4c2731132 (patch) | |
tree | 77c80dad1ef9c10367f8ec6879b165a799bc77e0 /llvm/unittests/CodeGen/SelectionDAGPatternMatchTest.cpp | |
parent | 11f625cb877cd86282d37ef4c92b848d415d336f (diff) | |
download | llvm-8a7a7a46d09ccd9eabc535bd34a35cb4c2731132.zip llvm-8a7a7a46d09ccd9eabc535bd34a35cb4c2731132.tar.gz llvm-8a7a7a46d09ccd9eabc535bd34a35cb4c2731132.tar.bz2 |
[Flang] [Semantics] [OpenMP] Fix semantic check to not report error for compound OMP TARGET directives. (#112059)
For test program like this variable array is mentioned in both shared
clause and map clause. For OMP TARGET compound directives like this
where we have OMP TARGET TEAMS, map clause applies to TARGET directive
and SHARED clause applies to TEAMS directive. So both SHARED and MAP
clauses can co-exist.
> program test
> implicit none
> integer :: array(10,10),i,j
> !$omp target teams shared(array) map(tofrom:array)
> do i=1,10
> !$omp parallel do
> do j=1,10
> array(j,i)=i+j
> end do
> end do
> !$omp end target teams
> print *, array
> end program test
>
>
Before this PR we were checking for exclusivity for all target
directives set which is now relaxed to exclusivity check not being
applied to compound directives which can accept SHARED clause.
Diffstat (limited to 'llvm/unittests/CodeGen/SelectionDAGPatternMatchTest.cpp')
0 files changed, 0 insertions, 0 deletions