diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2022-03-24 08:26:32 -0400 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2022-03-24 19:38:30 -0400 |
commit | bfda79341bb5e5d8eb9a8fa63958ecfe75f57d78 (patch) | |
tree | 98e0c99c09470441c24229df9f791b4d889b6a35 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 33d2a780a1397cb0203692019fc95f0784eff0fe (diff) | |
download | llvm-bfda79341bb5e5d8eb9a8fa63958ecfe75f57d78.zip llvm-bfda79341bb5e5d8eb9a8fa63958ecfe75f57d78.tar.gz llvm-bfda79341bb5e5d8eb9a8fa63958ecfe75f57d78.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions