[all-commits] [llvm/llvm-project] 85feb9: [OpenMP] Fix setting visibility on declare target ...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Oct 9 06:00:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85feb9347f77859a877e767692e1c11d00cf6ffd
https://github.com/llvm/llvm-project/commit/85feb9347f77859a877e767692e1c11d00cf6ffd
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-10-09 (Mon, 09 Oct 2023)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/test/OpenMP/declare_target_codegen.cpp
M clang/test/OpenMP/declare_target_constexpr_codegen.cpp
Log Message:
-----------
[OpenMP] Fix setting visibility on declare target variables
Summary:
A previous patch changed the logic to force external visibliity on
declare target variables. This is because they need to be exported in
the dynamic symbol table to be usable as the standard depicts. However,
the logic was always setting the visibility to `protected`, which would
override some symbols. For example, when calling `libc` functions for
CPU offloading. This patch changes the logic to only fire if the
variable has hidden visibliity to start with.
More information about the All-commits
mailing list