[all-commits] [llvm/llvm-project] bfda79: [OpenMP] Add a semantic check for updating hidden ...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Mar 24 16:38:47 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bfda79341bb5e5d8eb9a8fa63958ecfe75f57d78
https://github.com/llvm/llvm-project/commit/bfda79341bb5e5d8eb9a8fa63958ecfe75f57d78
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-03-24 (Thu, 24 Mar 2022)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaOpenMP.cpp
M clang/test/OpenMP/target_update_messages.cpp
Log Message:
-----------
[OpenMP] Add a semantic check for updating hidden or internal values
A previous patch removed the compiler generating offloading entries
for variables that were declared on the device but were internal or
hidden. This allowed us to compile programs but turns any attempt to run
'#pragma omp target update' on one of those variables a silent failure.
This patch adds a check in the semantic analysis for if the user is
attempting the update a variable on the device from the host that is not
externally visible.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D122403
More information about the All-commits
mailing list