[OPENMP, NVPTX] Reduce the number of the globalized variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 26 Jun 2018 17:24:03 +0000 (17:24 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 26 Jun 2018 17:24:03 +0000 (17:24 +0000)
commit91433f6877482a71fe3d04735d69b107a53edd26
tree70813e5acbe3f270c6fccfdd949f7e79bcb269f2
parent3d1e4d6fa6f88426d60dfed93d705599ffe0270a
[OPENMP, NVPTX] Reduce the number of the globalized variables.

Patch tries to make better analysis of the variables that should be
globalized. From now, instead of all parallel directives it will check
only distribute parallel .. directives and check only for
firstprivte/lastprivate variables if they must be globalized.

llvm-svn: 335632
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_distribute_parallel_generic_mode_codegen.cpp [new file with mode: 0644]