[all-commits] [llvm/llvm-project] 12cdf4: [libclc] Move (add|sub)_sat to CLC; optimize (#124...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Wed Jan 29 03:13:02 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12cdf4330d32ce073f88dfaa1ab9a32327b9ef38
      https://github.com/llvm/llvm-project/commit/12cdf4330d32ce073f88dfaa1ab9a32327b9ef38
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2025-01-29 (Wed, 29 Jan 2025)

  Changed paths:
    A libclc/clc/include/clc/integer/clc_add_sat.h
    A libclc/clc/include/clc/integer/clc_sub_sat.h
    M libclc/clc/lib/clspv/SOURCES
    M libclc/clc/lib/generic/SOURCES
    A libclc/clc/lib/generic/integer/clc_add_sat.cl
    A libclc/clc/lib/generic/integer/clc_sub_sat.cl
    M libclc/clc/lib/spirv/SOURCES
    M libclc/clc/lib/spirv64/SOURCES
    M libclc/generic/lib/integer/add_sat.cl
    M libclc/generic/lib/integer/sub_sat.cl
    M libclc/generic/lib/math/clc_ldexp.cl

  Log Message:
  -----------
  [libclc] Move (add|sub)_sat to CLC; optimize (#124903)

Using the `__builtin_elementwise_(add|sub)_sat` functions allows us to
directly optimize to the desired intrinsic, and avoid scalarization for
vector types.



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