[all-commits] [llvm/llvm-project] ea6858: [libclc] Reduce include usage in OpenCL builtins (...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Mon Jul 7 02:20:50 PDT 2025


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

  Changed paths:
    M libclc/opencl/include/clc/opencl/clc.h
    M libclc/opencl/include/clc/opencl/integer/abs.h
    M libclc/opencl/include/clc/opencl/integer/abs_diff.h
    M libclc/opencl/include/clc/opencl/integer/add_sat.h
    M libclc/opencl/include/clc/opencl/integer/clz.h
    M libclc/opencl/include/clc/opencl/integer/ctz.h
    M libclc/opencl/include/clc/opencl/integer/hadd.h
    M libclc/opencl/include/clc/opencl/integer/mad24.h
    M libclc/opencl/include/clc/opencl/integer/mad_hi.h
    M libclc/opencl/include/clc/opencl/integer/mad_sat.h
    M libclc/opencl/include/clc/opencl/integer/mul24.h
    M libclc/opencl/include/clc/opencl/integer/mul_hi.h
    M libclc/opencl/include/clc/opencl/integer/popcount.h
    M libclc/opencl/include/clc/opencl/integer/rhadd.h
    M libclc/opencl/include/clc/opencl/integer/rotate.h
    M libclc/opencl/include/clc/opencl/integer/sub_sat.h
    M libclc/opencl/include/clc/opencl/integer/upsample.h
    A libclc/opencl/include/clc/opencl/opencl-base.h
    M libclc/opencl/lib/generic/integer/abs.cl
    M libclc/opencl/lib/generic/integer/abs_diff.cl
    M libclc/opencl/lib/generic/integer/add_sat.cl
    M libclc/opencl/lib/generic/integer/clz.cl
    M libclc/opencl/lib/generic/integer/ctz.cl
    M libclc/opencl/lib/generic/integer/hadd.cl
    M libclc/opencl/lib/generic/integer/mad24.cl
    M libclc/opencl/lib/generic/integer/mad_hi.cl
    M libclc/opencl/lib/generic/integer/mad_sat.cl
    M libclc/opencl/lib/generic/integer/mul24.cl
    M libclc/opencl/lib/generic/integer/mul_hi.cl
    M libclc/opencl/lib/generic/integer/popcount.cl
    M libclc/opencl/lib/generic/integer/rhadd.cl
    M libclc/opencl/lib/generic/integer/rotate.cl
    M libclc/opencl/lib/generic/integer/sub_sat.cl
    M libclc/opencl/lib/generic/integer/upsample.cl

  Log Message:
  -----------
  [libclc] Reduce include usage in OpenCL builtins (#146840)

This commit starts the process of reducing the amount of code included
by OpenCL builtins, hopefully reducing build times in the process.

It introduces a minimal OpenCL header - opencl-base.h - which includes
only the OpenCL type definitions and the macros necessary for
declaring/defining functions.

Where the OpenCL builtin implementations would currently include the
whole of <clc/opencl/clc.h>, which defines *all* OpenCL builtins, now
they include only the specific declaration they need.

This mirrors how the CLC builtins are defined.



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