[libc-commits] [PATCH] D151486: [libc] Add macro LIBC_THREAD_LOCAL.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 25 12:32:47 PDT 2023


sivachandra created this revision.
sivachandra added a reviewer: jhuber6.
Herald added subscribers: libc-commits, jdoerfert, tschuett.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

It resolves to thread_local on all platform except for the GPUs on which
it resolves to nothing. The use of thread_local in the source code has been
replaced with the new macro.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151486

Files:
  libc/src/__support/StringUtil/CMakeLists.txt
  libc/src/__support/StringUtil/error_to_string.cpp
  libc/src/__support/StringUtil/signal_to_string.cpp
  libc/src/__support/macros/attributes.h
  libc/src/__support/threads/CMakeLists.txt
  libc/src/__support/threads/thread.cpp
  libc/src/__support/threads/thread.h
  libc/src/errno/CMakeLists.txt
  libc/src/errno/libc_errno.cpp
  libc/src/errno/libc_errno.h
  libc/src/stdlib/CMakeLists.txt
  libc/src/stdlib/rand_util.cpp
  libc/src/stdlib/rand_util.h
  utils/bazel/llvm-project-overlay/libc/BUILD.bazel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151486.525751.patch
Type: text/x-patch
Size: 9163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230525/bf45293a/attachment.bin>


More information about the libc-commits mailing list