[OpenMP] Adjust arguments of nvptx runtime functions
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 22 Nov 2017 14:46:49 +0000 (14:46 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 22 Nov 2017 14:46:49 +0000 (14:46 +0000)
commit891c7fb19daad97e34b2f7742ac03403930722f7
treedae7143047e3415bb317097953db8e5f1e6d04c4
parentf9fc42e50b5dfe1d12036f1da5381b4c7a9f7be3
[OpenMP] Adjust arguments of nvptx runtime functions

In the future the compiler will analyze whether the OpenMP
runtime needs to be (fully) initialized and avoid that overhead
if possible. The functions already take an argument to transfer
that information to the runtime, so pass in the default value 1.
(This is needed for binary compatibility with libomptarget-nvptx
currently being upstreamed.)

Differential Revision: https://reviews.llvm.org/D40354

llvm-svn: 318836
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_parallel_codegen.cpp
clang/test/OpenMP/nvptx_target_codegen.cpp
clang/test/OpenMP/nvptx_target_teams_codegen.cpp
clang/test/OpenMP/nvptx_teams_reduction_codegen.cpp