[all-commits] [llvm/llvm-project] bf42a7: [libc] Implement placeholder memory functions on t...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Jul 30 08:15:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf42a7860a208439a0a29f5dcc7a33949c484efb
      https://github.com/llvm/llvm-project/commit/bf42a7860a208439a0a29f5dcc7a33949c484efb
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-07-30 (Tue, 30 Jul 2024)

  Changed paths:
    M libc/config/gpu/entrypoints.txt
    M libc/src/stdlib/CMakeLists.txt
    M libc/src/stdlib/gpu/CMakeLists.txt
    A libc/src/stdlib/gpu/aligned_alloc.cpp
    A libc/src/stdlib/gpu/calloc.cpp
    A libc/src/stdlib/gpu/realloc.cpp

  Log Message:
  -----------
  [libc] Implement placeholder memory functions on the GPU (#101082)

Summary:
These functions are needed for `libc++` to link successfully. We can't
implement them well currently, so simply provide some stand-in
implementations. `realloc` will currently copy garbage and potentially
fault and `aligned_alloc` will work unless your alignment is more than
4K alignment. However, these should work in practice to get tests
running. I will write a real allocator soon™.



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