[all-commits] [llvm/llvm-project] 77de8a: [AMDGPU][clang] provide device implementation for ...

choikwa via All-commits all-commits at lists.llvm.org
Mon May 19 11:11:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77de8a0c0abc9d245a7c6278670554b47ae183ea
      https://github.com/llvm/llvm-project/commit/77de8a0c0abc9d245a7c6278670554b47ae183ea
  Author: choikwa <5455710+choikwa at users.noreply.github.com>
  Date:   2025-05-19 (Mon, 19 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
    M clang/lib/CodeGen/TargetInfo.h
    M clang/lib/CodeGen/Targets/AMDGPU.cpp
    A clang/test/CodeGen/logb_scalbn.c

  Log Message:
  -----------
  [AMDGPU][clang] provide device implementation for __builtin_logb and … (#129347)

…__builtin_scalbn

Clang generates library calls for __builtin_* functions which can be a
problem for GPUs that cannot handle them. This patch generates call to
device implementation for __builtin_logb and ldexp intrinsic for
__builtin_scalbn.



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