This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add a new version of the SPMD deinit kernel function
ClosedPublic

Authored by gtbercea on Nov 27 2018, 1:08 PM.

Details

Summary

This patch adds a new runtime for the SPMD deinit kernel function which replaces the previous function. The new function takes as argument the flag which signals whether the runtime is required or not. This enables the compiler to optimize out the part of the deinit function which are not needed.

Diff Detail

Repository
rC Clang

Event Timeline

gtbercea created this revision.Nov 27 2018, 1:08 PM
gtbercea updated this revision to Diff 175570.Nov 27 2018, 1:19 PM
Delete old function.
ABataev added inline comments.Nov 27 2018, 1:21 PM
test/OpenMP/nvptx_target_parallel_codegen.cpp
71

Add the argument checks in all updated tests.

gtbercea updated this revision to Diff 175573.Nov 27 2018, 1:47 PM
Add constant values to function calls.
This revision is now accepted and ready to land.Nov 29 2018, 9:13 AM
This revision was automatically updated to reflect the committed changes.