[all-commits] [llvm/llvm-project] d51525: [libclc] Move lgamma, lgamma_r & tgamma to CLC lib...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Wed Apr 2 07:20:54 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d51525ba36017507fe95ce48e9670b6f4b267016
https://github.com/llvm/llvm-project/commit/d51525ba36017507fe95ce48e9670b6f4b267016
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
A libclc/clc/include/clc/math/clc_lgamma.h
A libclc/clc/include/clc/math/clc_lgamma_r.h
A libclc/clc/include/clc/math/clc_tgamma.h
A libclc/clc/include/clc/math/unary_def_via_fp32.inc
M libclc/clc/lib/generic/SOURCES
A libclc/clc/lib/generic/math/clc_lgamma.cl
A libclc/clc/lib/generic/math/clc_lgamma.inc
A libclc/clc/lib/generic/math/clc_lgamma_r.cl
A libclc/clc/lib/generic/math/clc_lgamma_r.inc
A libclc/clc/lib/generic/math/clc_tgamma.cl
M libclc/generic/include/clc/math/lgamma_r.h
R libclc/generic/include/clc/math/lgamma_r.inc
M libclc/generic/lib/math/lgamma.cl
M libclc/generic/lib/math/lgamma_r.cl
R libclc/generic/lib/math/lgamma_r.inc
M libclc/generic/lib/math/tgamma.cl
Log Message:
-----------
[libclc] Move lgamma, lgamma_r & tgamma to CLC library (#134053)
Also enable half-precision variants of tgamma, which were previously
missing.
Note that unlike recent work, these builtins are not vectorized as part
of this commit. Ultimately all three call into lgamma_r, which has heavy
control flow (including switch statements) that would be difficult to
vectorize. Additionally the lgamma_r algorithm is copyrighted to SunPro
so may need a rewrite in the future anyway.
There are no codegen changes (to non-SPIR-V targets) with this commit,
aside from the new half builtins.
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