[PATCH] D42122: Make GlobalValues with non-default visibilility dso_local

Rafael Avila de Espindola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 11:51:03 PST 2018


espindola created this revision.
espindola added reviewers: rnk, sfertile.
Herald added subscribers: hiraditya, eraman, emaste.

This is similar to r322317, but for visibility. It is not as neat because we have to special case extern_weak.

The idea is the same as the previous change, make the transition to explicit dso_local easier for the frontends. With this they only have to add dso_local to symbols where we need some external information to decide if it is dso_local (like it being part of an ELF executable.


https://reviews.llvm.org/D42122

Files:
  clang/test/OpenMP/target_codegen_registration.cpp
  clang/test/OpenMP/target_parallel_codegen_registration.cpp
  clang/test/OpenMP/target_parallel_for_codegen_registration.cpp
  clang/test/OpenMP/target_parallel_for_simd_codegen_registration.cpp
  clang/test/OpenMP/target_simd_codegen_registration.cpp
  clang/test/OpenMP/target_teams_codegen_registration.cpp
  clang/test/OpenMP/target_teams_distribute_codegen_registration.cpp
  clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp
  clang/test/OpenMP/target_teams_distribute_simd_codegen_registration.cpp
  lld/test/ELF/lto/internalize-llvmused.ll
  lld/test/ELF/lto/visibility.ll
  llvm/include/llvm/IR/GlobalValue.h
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/test/Bitcode/dso_location.ll
  llvm/test/Linker/funcimport.ll
  llvm/test/Other/extract.ll
  llvm/test/ThinLTO/X86/export.ll
  llvm/test/ThinLTO/X86/funcimport.ll
  llvm/test/ThinLTO/X86/local_name_conflict.ll
  llvm/test/ThinLTO/X86/referenced_by_constant.ll
  llvm/test/Transforms/FunctionImport/funcimport.ll
  llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll
  llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal1.ll
  llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
  llvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc-internal.ll
  llvm/test/Transforms/WholeProgramDevirt/export-single-impl.ll
  llvm/test/tools/gold/X86/emit-llvm.ll
  llvm/test/tools/gold/X86/thinlto_linkonceresolution.ll
  llvm/test/tools/llvm-split/internal.ll
  llvm/test/tools/llvm-split/unnamed.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42122.130004.patch
Type: text/x-patch
Size: 28083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180116/12f2f024/attachment.bin>


More information about the llvm-commits mailing list