[all-commits] [llvm/llvm-project] a8ec17: [OpenMP] Make the exec_mode global have protected ...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Oct 5 12:39:41 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8ec170e01dd0d0cbf8c059aa7addaaf3d886876
https://github.com/llvm/llvm-project/commit/a8ec170e01dd0d0cbf8c059aa7addaaf3d886876
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-10-05 (Wed, 05 Oct 2022)
Changed paths:
M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
M clang/test/OpenMP/nvptx_target_parallel_proc_bind_codegen.cpp
M clang/test/OpenMP/nvptx_target_parallel_reduction_codegen.cpp
M clang/test/OpenMP/nvptx_target_simd_codegen.cpp
M clang/test/OpenMP/nvptx_target_teams_distribute_simd_codegen.cpp
Log Message:
-----------
[OpenMP] Make the exec_mode global have protected visibility
We use protected visibility for almost everything with offloading. This
is because it provides us with the ability to read things from the host
without the expectation that it will be preempted by a shared library
load, bugs related to this have happened when offloading to the host.
This patch just makes the `exec_mode` global generated for each plugin
have protected visibility.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D135285
More information about the All-commits
mailing list