[all-commits] [llvm/llvm-project] 9fa81a: [libclc] Move step to the CLC library; add missing...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu May 22 01:54:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fa81a486e317c7201318d710559093b3a5233bb
      https://github.com/llvm/llvm-project/commit/9fa81a486e317c7201318d710559093b3a5233bb
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M libclc/clc/include/clc/clcmacro.h
    A libclc/clc/include/clc/common/clc_step.h
    M libclc/clc/lib/generic/SOURCES
    A libclc/clc/lib/generic/common/clc_step.cl
    A libclc/clc/lib/generic/common/clc_step.inc
    M libclc/opencl/include/clc/opencl/common/step.inc
    M libclc/opencl/lib/generic/common/step.cl
    A libclc/opencl/lib/generic/common/step.inc

  Log Message:
  -----------
  [libclc] Move step to the CLC library; add missing half variants (#140936)

The half variants were missing but are trivial to implement. There were
some incorrect mixed type overloads (step(float, double)) which aren't
in the OpenCL specification and so have been removed.

Like certain other builtins the CLC step function only deals with
identical types. The OpenCL layer is responsible for casting the scalar
argument to a vector.

This commit also trivially vectorizes the CLC function, generating
better bytecode.



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