This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] Codegen for 'private' clause in 'sections' directive.
ClosedPublic

Authored by ABataev on Apr 23 2015, 10:11 PM.

Details

Summary

If there are 2 or more sections in a 'section' directive the following code is generated:

<default init for privates>
@__kmpc_for_static_init_4();
<BODY for sections directive>
@__kmpc_for_static_fini()

If there is only one section, the following code is generated:

if (@__kmpc_single()) {
<default init for privates>
@__kmpc_end_single();
}

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev updated this revision to Diff 24354.Apr 23 2015, 10:11 PM
ABataev retitled this revision from to [OPENMP] Codegen for 'private' clause in 'sections' 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.