[all-commits] [llvm/llvm-project] ddbd21: [OPENMP]Do not add TGT_OMP_TARGET_PARAM flag to no...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Wed Aug 12 07:15:37 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ddbd21d288f6ff7d175f18ddee0ee6407626445a
https://github.com/llvm/llvm-project/commit/ddbd21d288f6ff7d175f18ddee0ee6407626445a
Author: Alexey Bataev <a.bataev at hotmail.com>
Date: 2020-08-12 (Wed, 12 Aug 2020)
Changed paths:
M clang/lib/CodeGen/CGOpenMPRuntime.cpp
M clang/test/OpenMP/target_map_codegen_18.inc
M clang/test/OpenMP/target_map_codegen_20.cpp
M clang/test/OpenMP/target_map_codegen_31.cpp
M clang/test/OpenMP/target_map_codegen_32.cpp
M clang/test/OpenMP/target_teams_map_codegen.cpp
Log Message:
-----------
[OPENMP]Do not add TGT_OMP_TARGET_PARAM flag to non-captured mapped arguments.
If the arguments are mapped, but are actually not used in the target
region, the compiler still adds attribute TGT_OMP_TARGET_PARAM for such
arguments. It makes the libomptarget to add such parameters to the list
of arguments, passed to the kernel at the runtime, and may lead to
incorrect results/crashes during execution.
Differential Revision: https://reviews.llvm.org/D85755
More information about the All-commits
mailing list