aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2025-02-27 12:30:24 +0000
committerGitHub <noreply@github.com>2025-02-27 12:30:24 +0000
commit285b411e4635e8db2526d653488ee54dad2bff34 (patch)
tree3d41ccc653d2a5f5eccf7e28b0e3e1b4f32bdbf5 /clang/lib/CodeGen/CodeGenModule.cpp
parent0865a3872ceb65af2660baf6951a4cee44b65fb1 (diff)
downloadllvm-285b411e4635e8db2526d653488ee54dad2bff34.zip
llvm-285b411e4635e8db2526d653488ee54dad2bff34.tar.gz
llvm-285b411e4635e8db2526d653488ee54dad2bff34.tar.bz2
[libclc] Move sqrt to CLC library (#128748)
This is fairly straightforward for most targets. We use the element-wise sqrt builtin by default. We also remove a legacy pre-filtering of the input argument, which the intrinsic now officially handles. AMDGPU provides its own implementation of sqrt for double types. This commit moves this into the implementation of CLC sqrt. It uses weak linkage on the 'default' CLC sqrt to allow AMDGPU to only override the builtin for the types it cares about.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions