[all-commits] [llvm/llvm-project] 61f11f: [Flang][OpenMP][OpenACC] Fix exit out of a region ...
sameeranjoshi via All-commits
all-commits at lists.llvm.org
Thu Oct 29 22:34:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 61f11f807cfc359b38b9e22d005456f924464c30
https://github.com/llvm/llvm-project/commit/61f11f807cfc359b38b9e22d005456f924464c30
Author: sameeran joshi <sameeranjayant.joshi at amd.com>
Date: 2020-10-30 (Fri, 30 Oct 2020)
Changed paths:
M flang/lib/Semantics/check-acc-structure.cpp
M flang/lib/Semantics/check-acc-structure.h
M flang/lib/Semantics/check-directive-structure.h
M flang/lib/Semantics/check-omp-structure.cpp
M flang/test/Semantics/omp-clause-validity01.f90
Log Message:
-----------
[Flang][OpenMP][OpenACC] Fix exit out of a region in OpenMP parallel construct.
>From below mentioned standard references
OpenACC 3.0 Standards document
840 • A program may not branch into or out of an OpenACC parallel construct
OpenMP 5.0 Standards document
A program that branches into or out of a parallel region is non-conforming.
This patch
Resolves the issue of exit out of a parallel region, other branching out issues like goto statements are not handled with this patch.
Moves code from D87906 to be reused by other OpenMP/OpenACC to check-directive-structure.h.
Adds support in OpenMP parallel construct and a test case to verify.
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D88655
More information about the All-commits
mailing list