[all-commits] [llvm/llvm-project] daeee5: [libc] Add macro LIBC_THREAD_LOCAL.

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu May 25 12:54:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: daeee56798c51e8f007e8e8e6e677a420b14c9ef
      https://github.com/llvm/llvm-project/commit/daeee56798c51e8f007e8e8e6e677a420b14c9ef
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

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

  Log Message:
  -----------
  [libc] Add macro LIBC_THREAD_LOCAL.

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.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D151486




More information about the All-commits mailing list