[all-commits] [llvm/llvm-project] 9297ba: [libomp] Add kmp_str_ref (ADT 1/2) (#176162)

Robert Imschweiler via All-commits all-commits at lists.llvm.org
Mon Jun 15 09:19:18 PDT 2026


  Branch: refs/heads/users/ro-i/omp-vector
  Home:   https://github.com/llvm/llvm-project
  Commit: 9297baa6d13ef56d2174ee34f2cd99622a9eb3fd
      https://github.com/llvm/llvm-project/commit/9297baa6d13ef56d2174ee34f2cd99622a9eb3fd
  Author: Robert Imschweiler <robert.imschweiler at amd.com>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M openmp/runtime/src/CMakeLists.txt
    A openmp/runtime/src/kmp_adt.cpp
    A openmp/runtime/src/kmp_adt.h
    M openmp/runtime/src/kmp_str.cpp
    M openmp/runtime/src/kmp_str.h
    A openmp/runtime/unittests/ADT/CMakeLists.txt
    A openmp/runtime/unittests/ADT/TestStringRef.cpp
    M openmp/runtime/unittests/CMakeLists.txt
    M openmp/runtime/unittests/String/TestKmpStr.cpp

  Log Message:
  -----------
  [libomp] Add kmp_str_ref (ADT 1/2) (#176162)

libomp currently has two limitations:
1) although it's C++, it doesn't link against the C++ stdlib 2) it
cannot link against the implementation of LLVM ADTs

These limitations shall not be altered at the moment.

As a result, this commit introduces kmp_str_ref, which is similar to
LLVM's StringRef. It currently only includes methods I need at the
moment, but it's easily extensible.


  Commit: af6361633cc0f57863709450c756133af6692d28
      https://github.com/llvm/llvm-project/commit/af6361633cc0f57863709450c756133af6692d28
  Author: Robert Imschweiler <robert.imschweiler at amd.com>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M openmp/runtime/src/kmp_adt.h
    M openmp/runtime/unittests/ADT/CMakeLists.txt
    A openmp/runtime/unittests/ADT/TestVector.cpp

  Log Message:
  -----------
  [libomp] Add kmp_vector (ADT 2/2)

See rationale in the commit adding kmp_str_ref.

This commit introduces kmp_vector, a class intended primarily for small
vectors. It currently only includes methods I need at the moment, but
it's easily extensible.


Compare: https://github.com/llvm/llvm-project/compare/e629ad7be290...af6361633cc0

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list