[all-commits] [llvm/llvm-project] 64735a: [libclc] Move sign to the CLC builtins library (#1...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Tue Feb 11 03:15:12 PST 2025


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

  Changed paths:
    M libclc/CMakeLists.txt
    A libclc/clc/include/clc/common/clc_sign.h
    M libclc/clc/include/clc/math/gentype.inc
    M libclc/clc/lib/generic/SOURCES
    A libclc/clc/lib/generic/common/clc_sign.cl
    A libclc/clc/lib/generic/common/clc_sign.inc
    M libclc/generic/include/clc/float/definitions.h
    M libclc/generic/lib/common/sign.cl

  Log Message:
  -----------
  [libclc] Move sign to the CLC builtins library (#115699)

This commit moves the sign builtin's implementation to the CLC library.
It simultaneously optimizes it (for vector types) by removing
control-flow from the implementation.

The __CLC_INTERNAL preprocessor definition has been repurposed (without
the leading underscores) to be passed when building the internal CLC
library. It was only used in one other place to guard an extra maths
preprocessor definition, which we can do unconditionally.



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