[PATCH] [OPENMP] Codegen for "omp flush" directive.

Alexey Bataev a.bataev at hotmail.com
Mon Nov 17 01:20:40 PST 2014


Hi rjmccall, fraggamuffin, ejstotzer,

For each "omp flush" directive a call to "void __kmpc_flush(ident_t *, ...)" function is generated.
Directive "omp flush" may have an associated list of variables to flush, but currently runtime function ignores them. So the patch generates just "call __kmpc_flush(ident_t *<loc>)".

http://reviews.llvm.org/D6292

Files:
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CGOpenMPRuntime.h
  lib/CodeGen/CGStmtOpenMP.cpp
  test/OpenMP/flush_codegen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6292.16281.patch
Type: text/x-patch
Size: 4766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141117/a9ea2630/attachment.bin>


More information about the cfe-commits mailing list