This is an archive of the discontinued LLVM Phabricator instance.

[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

Repository
rL LLVM

Event Timeline

ABataev updated this revision to Diff 24299.Apr 23 2015, 6:53 AM
ABataev retitled this revision from to [OPENMP] Codegen for 'firstprivate' clause in 'single' directive..
ABataev updated this object.
ABataev edited the test plan for this revision. (Show Details)
ABataev added reviewers: rjmccall, hfinkel.
ABataev added subscribers: fraggamuffin, ejstotzer, Unknown Object (MLST).
This revision was automatically updated to reflect the committed changes.