[clang] [AMDGPU][clang] provide device implementation for __builtin_logb and … (PR #129347)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 20:08:10 PST 2025


choikwa wrote:

I would have preferred to do the overloads in the target specific header file, but __builtin_*  methods couldn't be overloaded. I noticed that hip math header already overloads 'double logb(double)' by calling ocml version, so I mirrored that in clang. If there is better approach, I am interested.

https://github.com/llvm/llvm-project/pull/129347


More information about the cfe-commits mailing list