[PATCH] D69316: [OpenMP 5.0] target update list items need not be contiguous (Sema)

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 25 07:47:50 PDT 2019


ABataev added inline comments.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:14450
 
+      if (HasMeetPointer && !IsLastArraySection) {
+        SemaRef.Diag(ELoc, diag::err_omp_pointer_type_not_last)
----------------
Ad the check for the version of OpenMP standard, it must be allowed only for OpenMP >= 50.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:14470
           AllowWholeSizeArraySection = false;
-      } else if (AllowUnitySizeArraySection && NotUnity) {
+      } else if (DKind != OMPD_target_update &&
+         (AllowUnitySizeArraySection && NotUnity)) {
----------------
Same here, allow only for OpenMP >= 50. Also, split the patch into 2 parts, one for pointers stuff and another one for target update directive.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69316/new/

https://reviews.llvm.org/D69316





More information about the cfe-commits mailing list