[all-commits] [llvm/llvm-project] d56e0d: clang/OpenCL: set sqrt fp accuracy on call to Z4sq...
Romaric Jodin via All-commits
all-commits at lists.llvm.org
Thu Nov 30 23:35:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d56e0d07cc5ee8e334fd1ad403eef0b1a771384f
https://github.com/llvm/llvm-project/commit/d56e0d07cc5ee8e334fd1ad403eef0b1a771384f
Author: Romaric Jodin <89833130+rjodinchr at users.noreply.github.com>
Date: 2023-12-01 (Fri, 01 Dec 2023)
Changed paths:
M clang/lib/CodeGen/CGCall.cpp
M clang/lib/Headers/opencl-c-base.h
M clang/lib/Headers/opencl-c.h
M clang/lib/Sema/OpenCLBuiltins.td
M clang/test/CodeGenOpenCL/sqrt-fpmath.cl
Log Message:
-----------
clang/OpenCL: set sqrt fp accuracy on call to Z4sqrt (#66651)
This is reverting the previous implementation to avoid adding inline
function in opencl headers.
This was breaking clspv flow google/clspv#1231, while
https://reviews.llvm.org/D156743 mentioned that just decorating the call
node with `!pfmath` was enough.
This PR is implementing this idea.
The test has been updated with this implementation.
More information about the All-commits
mailing list