[flang-commits] [PATCH] D87906: [Flang][OpenACC] Fix for branching out issue in OpenACC parallel construct.

sameeran joshi via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Sep 18 07:46:24 PDT 2020


sameeranjoshi created this revision.
sameeranjoshi added reviewers: clementval, kiranchandramohan, kiranktp, SouraVX.
Herald added a reviewer: DavidTruby.
Herald added a reviewer: sscalpone.
Herald added a project: LLVM.
sameeranjoshi requested review of this revision.

>From OpenACC 3.0 Standards document 
	840 • A program may not branch into or out of an OpenACC parallel construct. 
	Exits are allowed provided it does not cause an exit outside the parallel region.

Test case exits out of the inner do loop, but it is still inside the parallel region.
	Patch tries to extract labels from block attached to a construct,
	If the exit is to a label not in the collected list then flags an error.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87906

Files:
  flang/lib/Semantics/check-acc-structure.cpp
  flang/test/Semantics/acc-branch.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87906.292787.patch
Type: text/x-patch
Size: 4361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200918/d9cb4f79/attachment-0001.bin>


More information about the flang-commits mailing list