Emit the following code for 'single' directive with 'firtstprivate' clause:
if (@__kmpc_single()) { <init for firstprivates> @__kmpc_end_single(); } @__kmpc_cancel_barrier(); // To avoid data race in firstprivate init
Paths
| Differential D9223
[OPENMP] Codegen for 'firstprivate' clause in 'single' directive. ClosedPublic Authored by ABataev on Apr 23 2015, 6:53 AM.
Details Summary Emit the following code for 'single' directive with 'firtstprivate' clause: if (@__kmpc_single()) { <init for firstprivates> @__kmpc_end_single(); } @__kmpc_cancel_barrier(); // To avoid data race in firstprivate init
Diff Detail
Event TimelineClosed by commit rL235694: [OPENMP] Codegen for 'firstprivate' clause in 'single' directive. (authored by ABataev). · Explain WhyApr 23 2015, 9:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 24352 cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp
cfe/trunk/test/OpenMP/single_firstprivate_codegen.cpp
|