[all-commits] [llvm/llvm-project] fe694b: [libclc] Move mad_sat to CLC; optimize for vector ...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon Feb 3 09:51:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe694b18dc518b86eae9aab85ff03abc54e1662f
      https://github.com/llvm/llvm-project/commit/fe694b18dc518b86eae9aab85ff03abc54e1662f
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2025-02-03 (Mon, 03 Feb 2025)

  Changed paths:
    A libclc/clc/include/clc/integer/clc_mad_sat.h
    M libclc/clc/include/clc/integer/definitions.h
    M libclc/clc/lib/clspv/SOURCES
    M libclc/clc/lib/generic/SOURCES
    A libclc/clc/lib/generic/integer/clc_mad_sat.cl
    M libclc/clc/lib/spirv/SOURCES
    M libclc/generic/lib/integer/mad_sat.cl

  Log Message:
  -----------
  [libclc] Move mad_sat to CLC; optimize for vector types (#125517)

This commit moves the mad_sat builtin to the CLC library.

It also optimizes it for vector types by avoiding scalarization. To help
do this it transforms the previous control-flow code into vector select
code. This has also been done for the scalar versions for simplicity.



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