[libc-commits] [PATCH] D156263: [libc][libm][GPU] Populated libmgpu.a with both built-in, HIP Math, and CUDA Math functions

Matt Arsenault via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 14 09:40:32 PDT 2023


arsenm added a comment.

In D156263#4585564 <https://reviews.llvm.org/D156263#4585564>, @jhuber6 wrote:

> @arsenm Do we support things like `__builtin_atanf`? IIRC all the builtins for things like `sin` and `sinf` were kind of broken and shouldn't be used.

No, there's no underlying llvm intrinsic for atan, it's essentially an alias for the libcall only. llvm.sin and llvm.cos do exist but are just codegened in a fast math way only


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156263/new/

https://reviews.llvm.org/D156263



More information about the libc-commits mailing list