This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] Initial codegen for 'parallel sections' directive.
ClosedPublic

Authored by ABataev on Apr 13 2015, 1:22 AM.

Details

Summary

Emits code for outlined 'parallel' directive with the implicitly inlined 'sections' directive:

...
call __kmpc_fork_call(..., outlined_function, ...);
...

define internal void outlined_function(...) {
  <code for implicit sections directive>;
}

Diff Detail

Event Timeline

ABataev updated this revision to Diff 23666.Apr 13 2015, 1:22 AM
ABataev retitled this revision from to [OPENMP] Initial codegen for 'parallel sections' directive..
ABataev updated this object.
ABataev edited the test plan for this revision. (Show Details)
ABataev added a subscriber: Unknown Object (MLST).
rjmccall edited edge metadata.Apr 13 2015, 12:58 PM

Looks good.

lib/CodeGen/CGStmtOpenMP.cpp
888

You use this twice; it doesn't seem worthwhile.

John, thanks for the review.

lib/CodeGen/CGStmtOpenMP.cpp
888

Removed, thanks!

This revision was automatically updated to reflect the committed changes.