[PATCH] D52458: [OpenCL] Implement OpenCL math builtins: fp -> fp

Andrew Savonichev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 25 04:11:02 PDT 2018


asavonic created this revision.
Herald added subscribers: cfe-commits, kristina, Anastasia, yaxunl.

This patch adds OpenCL builtin functions that take any built-in
floating point type (float, double, half) and return a value of the
same floating point type.


Repository:
  rC Clang

https://reviews.llvm.org/D52458

Files:
  include/clang/Basic/Builtins.def
  lib/CodeGen/CGBuiltin.cpp
  lib/Sema/SemaChecking.cpp
  test/CodeGenOpenCL/builtin-math.cl
  test/SemaOpenCL/builtin-math.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52458.166847.patch
Type: text/x-patch
Size: 19565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180925/7e3dc820/attachment-0001.bin>


More information about the cfe-commits mailing list