[all-commits] [llvm/llvm-project] 11aea0: RuntimeLibcalls: Add sqrtf to the Hexagon runtime ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Jul 21 01:26:26 PDT 2026


  Branch: refs/heads/users/arsenm/runtime-libcalls/hexagon-add-sqrtf
  Home:   https://github.com/llvm/llvm-project
  Commit: 11aea0b3a10178f44e7cfad950e78b2c67d35f4c
      https://github.com/llvm/llvm-project/commit/11aea0b3a10178f44e7cfad950e78b2c67d35f4c
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M llvm/include/llvm/IR/RuntimeLibcalls.td

  Log Message:
  -----------
  RuntimeLibcalls: Add sqrtf to the Hexagon runtime libcall set

The library definitions go out of the way to avoid adding sqrtf, in favor
of __hexagon_sqrtf. I'm assuming that libm does provide sqrtf, it just
happens that there is a more-preferred function to use. RuntimeLibcallsInfo
should express the full set of functions that do exist, and LibcallLoweringInfo
should express the preference for which calls should be used.

By the current ordering rules, it just so happens __hexagon_sqrtf will win out
for SQRT_F32. Add this to avoid a special case to faciliate future libcall
improvements.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>



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