[PATCH] D156743: [wip] clang/OpenCL: Add inline implementations of sqrt in builtin header
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 31 14:15:18 PDT 2023
arsenm created this revision.
arsenm added reviewers: yaxunl, svenvh, Anastasia.
Herald added a subscriber: Naghasan.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
We want the !fpmath metadata to be attached to the sqrt intrinsic to
make it to the backend lowering.
Doesn't work with the default case with -fdeclare-opencl-builtins
Fixes #64264
https://reviews.llvm.org/D156743
Files:
clang/lib/Headers/opencl-c.h
clang/test/CodeGenOpenCL/sqrt-fpmath.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156743.545805.patch
Type: text/x-patch
Size: 6545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230731/d465938e/attachment-0001.bin>
More information about the cfe-commits
mailing list