[all-commits] [llvm/llvm-project] f70967: [OPENMP52] Support Support omp_cur_iteration modif...

jyu2-git via All-commits all-commits at lists.llvm.org
Thu Jul 6 11:53:45 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f70967fdc4736a5c5150db294be55fa9e7792bb8
  Author: Jennifer Yu <jennifer.yu at intel.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/include/clang/Basic/OpenMPKinds.def
    M clang/lib/AST/OpenMPClause.cpp
    M clang/lib/CodeGen/CGOpenMPRuntime.h
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/ordered_ast_print.cpp
    M clang/test/OpenMP/ordered_doacross_codegen.c
    M clang/test/OpenMP/ordered_messages.cpp

  Log Message:
  [OPENMP52] Support Support omp_cur_iteration modifier for doacross

This is just syntax to make it easier for the user. It doesn't add any
new functionality.

doacross(sink: omp_cur_iteration - 1)
Equivalent to
doacross(sink: ConterVar - 1, ...)

doacross(source: omp_cur_iteration)
Equivalent to

And restriction is:
OMP5.2 p.327

If vector is specified with the omp_cur_iteration keyword and with
sink as the dependence-type then it must be omp_cur_iteration - 1.

If vector is specified with source as the dependence-type then it must be

Differential Revision: https://reviews.llvm.org/D154556

More information about the All-commits mailing list