[all-commits] [llvm/llvm-project] 60ff9c: [libc] Add support for `powi` as an LLVM libc exte...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Jul 9 18:51:57 PDT 2024


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

  Changed paths:
    M libc/config/gpu/entrypoints.txt
    M libc/docs/math/index.rst
    M libc/spec/llvm_libc_ext.td
    M libc/src/math/CMakeLists.txt
    M libc/src/math/amdgpu/CMakeLists.txt
    M libc/src/math/amdgpu/declarations.h
    A libc/src/math/amdgpu/powi.cpp
    A libc/src/math/amdgpu/powif.cpp
    M libc/src/math/nvptx/CMakeLists.txt
    M libc/src/math/nvptx/declarations.h
    A libc/src/math/nvptx/powi.cpp
    A libc/src/math/nvptx/powif.cpp
    A libc/src/math/powi.h
    A libc/src/math/powif.h

  Log Message:
  -----------
  [libc] Add support for `powi` as an LLVM libc extension on the GPU (#98236)

Summary:
This function is used by the CUDA / HIP / OpenMP headers and exists as
an NVIDIA extension basically. This function is implemented in the C23
standard as `pown`, but for now we need to provide `powi` for backwards
compatibility. In the future this entrypoint will just be a redirect to
`pown` once that is implemented.



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