[PATCH] D106165: [flang][OpenMP] Add semantic check for target nesting

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 10:19:05 PDT 2021


peixin created this revision.
peixin added reviewers: kiranchandramohan, clementval, richard.barton.arm, jdoerfert, sameeranjoshi, praveen, SouraVX, sscalpone, arnamoy10, bryanpkc.
peixin added a project: LLVM.
Herald added subscribers: guansong, yaxunl.
peixin requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.

This patch implements the following check for TARGET construct:

  OpenMP Version 5.0 Target construct restriction: If a target update,
  target data, target enter data, or target exit data construct is
  encountered during execution of a target region, the behavior is
  unspecified.

Also add one test case for the check.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106165

Files:
  flang/lib/Semantics/check-directive-structure.h
  flang/lib/Semantics/check-omp-structure.cpp
  flang/lib/Semantics/check-omp-structure.h
  flang/test/Semantics/omp-target01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106165.359375.patch
Type: text/x-patch
Size: 5382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210716/a8064e09/attachment.bin>


More information about the llvm-commits mailing list