[all-commits] [llvm/llvm-project] dea4f3: [libc] Use is aligned builtin instead of ptrtoint ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 2 05:03:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dea4f3213d84507ca9741faccab789f48c44e00d
      https://github.com/llvm/llvm-project/commit/dea4f3213d84507ca9741faccab789f48c44e00d
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-07-02 (Wed, 02 Jul 2025)

  Changed paths:
    M libc/src/__support/GPU/allocator.cpp

  Log Message:
  -----------
  [libc] Use is aligned builtin instead of ptrtoint (#146402)

Summary:
This avoids a ptrtoint by just using the clang builtin. This is clang
specific but only clang can compile GPU code anyway so I do not bother
with a fallback.



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