[PATCH] D154790: [HIP] Use native math functions for `-fcuda-approx-transcendentals`

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 9 16:30:16 PDT 2023


arsenm added inline comments.


================
Comment at: clang/lib/Headers/__clang_hip_math.h:163
+__DEVICE__
+float __expf(float __x) { return __ocml_native_exp_f32(__x); }
+
----------------
arsenm wrote:
> __builtin_expf 
Maybe this should just be __builtin_amdgcn_exp2f


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

https://reviews.llvm.org/D154790



More information about the cfe-commits mailing list