[all-commits] [llvm/llvm-project] d32e71: [libclc] Move fmod, remainder & remquo to the CLC ...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Thu Mar 27 07:53:42 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d32e71d7c732c37fd28241b85f501d7a192aa22c
https://github.com/llvm/llvm-project/commit/d32e71d7c732c37fd28241b85f501d7a192aa22c
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2025-03-27 (Thu, 27 Mar 2025)
Changed paths:
A libclc/clc/include/clc/math/binary_def_via_fp32.inc
A libclc/clc/include/clc/math/clc_fmod.h
A libclc/clc/include/clc/math/clc_remainder.h
A libclc/clc/include/clc/math/clc_remquo.h
M libclc/clc/include/clc/math/gentype.inc
A libclc/clc/include/clc/math/remquo_decl.inc
M libclc/clc/lib/generic/SOURCES
A libclc/clc/lib/generic/math/clc_fmod.cl
A libclc/clc/lib/generic/math/clc_remainder.cl
A libclc/clc/lib/generic/math/clc_remquo.cl
M libclc/clspv/lib/SOURCES
M libclc/generic/include/clc/math/remquo.h
R libclc/generic/include/clc/math/remquo.inc
R libclc/generic/include/math/clc_fmod.h
R libclc/generic/include/math/clc_remainder.h
R libclc/generic/include/math/clc_remquo.h
M libclc/generic/lib/SOURCES
R libclc/generic/lib/math/clc_fmod.cl
R libclc/generic/lib/math/clc_remainder.cl
R libclc/generic/lib/math/clc_remquo.cl
M libclc/generic/lib/math/fmod.cl
M libclc/generic/lib/math/remainder.cl
M libclc/generic/lib/math/remquo.cl
M libclc/generic/lib/math/remquo.inc
M libclc/spirv/lib/SOURCES
Log Message:
-----------
[libclc] Move fmod, remainder & remquo to the CLC library (#132054)
These functions were already nominally in the CLC namespace; this commit
just formally moves them over.
Note that 'half' versions of these CLC functions are now provided.
Previously the corresponding OpenCL builtins would forward directly to
the 'float' versions of the CLC builtins. Now the OpenCL builtins call
the 'half' CLC builtins, which themselves call the 'float' CLC versions.
This keeps the interface between the OpenCL and CLC libraries neater and
keeps the CLC library self-contained.
No changes to the generated code for non-SPIR-V targets is observed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list