llvm-project
5270be70 - RuntimeLibcalls: Add sqrtf to the Hexagon runtime libcall set (#210909)

Commit
43 days ago
RuntimeLibcalls: Add sqrtf to the Hexagon runtime libcall set (#210909) 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@anthropic.com>
Author
Parents
Loading