[all-commits] [llvm/llvm-project] 4c94af: [ADT] Add more ArrayRef <-> StringRef conversion f...

Steven Wu via All-commits all-commits at lists.llvm.org
Fri Oct 6 13:55:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c94aff508eed06b8af43e2d61bd8a5e397927a8
      https://github.com/llvm/llvm-project/commit/4c94aff508eed06b8af43e2d61bd8a5e397927a8
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M llvm/include/llvm/ADT/StringExtras.h
    M llvm/unittests/ADT/StringExtrasTest.cpp

  Log Message:
  -----------
  [ADT] Add more ArrayRef <-> StringRef conversion functions

Add new functions in StringExtras to convert byte size type array to
StringRef and vice versa.

Reviewed By: benlangmuir, dexonsmith

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


  Commit: d07c3cf667160cc55944bf2b5ed337a435649649
      https://github.com/llvm/llvm-project/commit/d07c3cf667160cc55944bf2b5ed337a435649649
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    A llvm/include/llvm/Support/ThreadSafeAllocator.h
    M llvm/unittests/Support/CMakeLists.txt
    A llvm/unittests/Support/ThreadSafeAllocatorTest.cpp

  Log Message:
  -----------
  [Support] Introduce ThreadSafeAllocator

Add support for ThreadSafeAllocator, which is needed for a CAS
implementation, which requires thread safe allocation for data storage.

Reviewed By: dblaikie

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


  Commit: 5d2a7101b72a8cae8c4c1f7a11ede7f656efd583
      https://github.com/llvm/llvm-project/commit/5d2a7101b72a8cae8c4c1f7a11ede7f656efd583
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    A llvm/include/llvm/ADT/LazyAtomicPointer.h
    M llvm/unittests/ADT/CMakeLists.txt
    A llvm/unittests/ADT/LazyAtomicPointerTest.cpp

  Log Message:
  -----------
  [ADT] Introduce LazyAtomicPointer

LazyAtomicPointer is a lock-free pointer that can coordinate concurrent
writes to a pointer using a generator.

Reviewed By: benlangmuir

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


Compare: https://github.com/llvm/llvm-project/compare/ce8ed0008713...5d2a7101b72a


More information about the All-commits mailing list