[OPENMP] Codegen for "omp flush" directive.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 20 Nov 2014 04:34:54 +0000 (04:34 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 20 Nov 2014 04:34:54 +0000 (04:34 +0000)
commitcc37cc1db2153870aa7ec6cf086bbb241a56a8ff
tree5d0ee5330fce738d01ea8ed3ed838f244f827dce
parent30ef77a780d563fbca76aa5df450d1b44e0267a5
[OPENMP] Codegen for "omp flush" directive.
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>, i32 0)".
Differential Revision: http://reviews.llvm.org/D6292

llvm-svn: 222409
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/flush_codegen.cpp [new file with mode: 0644]