[all-commits] [llvm/llvm-project] 452fa6: [libc] Change the GPU to use builtin memory functi...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Oct 4 05:03:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 452fa6b86da76809252c6a1d4514603f19838703
      https://github.com/llvm/llvm-project/commit/452fa6b86da76809252c6a1d4514603f19838703
  Author: Joseph Huber <35342157+jhuber6 at users.noreply.github.com>
  Date:   2023-10-04 (Wed, 04 Oct 2023)

  Changed paths:
    A libc/src/string/memory_utils/generic/builtin.h
    M libc/src/string/memory_utils/inline_memcpy.h
    M libc/src/string/memory_utils/inline_memmove.h
    M libc/src/string/memory_utils/inline_memset.h

  Log Message:
  -----------
  [libc] Change the GPU to use builtin memory functions (#68003)

Summary:
The GPU build is special in the sense that we always know that
up-to-date `clang` is always going to be the compiler. This allows us to
rely directly on builtins, which allow us to push a lot of this
complexity into the backend. Backend implementations are favored on
the GPU because it allows us to do a lot more target specific
optimizations. This patch changes over the common memory functions to
use builtin versions when building for AMDGPU or NVPTX.




More information about the All-commits mailing list