[PATCH] [OPENMP] Codegen for 'omp critical' directive.
Alexey Bataev
a.bataev at hotmail.com
Thu Sep 4 20:27:47 PDT 2014
Hi doug.gregor, hfinkel, rjmccall, rsmith, fraggamuffin, ejstotzer,
This patch adds codegen for constructs:
#pragma omp critical [name]
<body>
It generates global variable ".gomp_critical_user_[name].var" of type int32[8]. Then it generates library call "__kmpc_critical(loc, gtid, .gomp_critical_user_[name].var)", code for <body> statement and final call "__kmpc_end_critical(loc, gtid, .gomp_critical_user_[name].var)".
http://reviews.llvm.org/D5202
Files:
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/critical_codegen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5202.13298.patch
Type: text/x-patch
Size: 7913 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140905/2b40a741/attachment.bin>
More information about the cfe-commits
mailing list