[PATCH] [OPENMP] Codegen for 'omp barrier' directive.

Alexey Bataev a.bataev at hotmail.com
Fri Nov 28 04:44:42 PST 2014


Hi rjmccall, ejstotzer, fraggamuffin,

Adds generation of call to "i32 __kmpc_cancel_barrier(ident_t *, i32)" libcall for explicitly specified barriers (OMP_IDENT_BARRIER_EXPL flag is added to "flags" field of "ident_t" structure).
Also this patch replaces all calls to "__kmpc_barrier" function by calls of "__kmpc_cancel_barrier" function which provides additional functionality for OpenMP 4.0.
Also, library specific enum OpenMPLocationFlags moved to private section of CGOpenMPRuntime class to make it more independent from library implementation.

http://reviews.llvm.org/D6447

Files:
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CGOpenMPRuntime.h
  lib/CodeGen/CGStmtOpenMP.cpp
  test/OpenMP/parallel_firstprivate_codegen.cpp
  test/OpenMP/parallel_private_codegen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6447.16723.patch
Type: text/x-patch
Size: 10595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141128/d13a79b5/attachment.bin>


More information about the cfe-commits mailing list