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

Robert Imschweiler via All-commits all-commits at lists.llvm.org
Mon Jun 15 08:21:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d8a394129b3b538071f7774e34c31d7cbf3c882
      https://github.com/llvm/llvm-project/commit/2d8a394129b3b538071f7774e34c31d7cbf3c882
  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.



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