[PATCH] D60907: [OpenMP][WIP] Add math functions support in OpenMP offloading

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 11:23:36 PDT 2019


ABataev added inline comments.


================
Comment at: lib/Headers/__clang_openmp_math.h:14
+double __kmpc_pow(double, double);
+double __kmpc_sin(double);
+
----------------
Also, versions for float and long double


================
Comment at: lib/Headers/__clang_openmp_math.h:21
+// Define existing function to call kmpc functions.
+__attribute__((always_inline, used)) static double pow(double a, double b) {
+  return __kmpc_pow(a, b);
----------------
Add `powf(float)`, `powl(long double)`, `sinf(float)`, `sinl(long double)`


Repository:
  rC Clang

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

https://reviews.llvm.org/D60907





More information about the cfe-commits mailing list