[all-commits] [llvm/llvm-project] 338dee: [NFC][libclc] Refactor _CLC_*_VECTORIZE macros to ...

Wenju He via All-commits all-commits at lists.llvm.org
Mon Jun 30 02:19:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 338dee0742ce2b64cd5cc6d4f46f959262a08e48
      https://github.com/llvm/llvm-project/commit/338dee0742ce2b64cd5cc6d4f46f959262a08e48
  Author: Wenju He <wenju.he at intel.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M libclc/clc/include/clc/clcmacro.h
    M libclc/clc/include/clc/geometric/clc_fast_distance.h
    M libclc/clc/include/clc/geometric/clc_fast_length.h
    M libclc/clc/include/clc/geometric/clc_fast_normalize.h
    M libclc/clc/include/clc/math/clc_exp_helper.h
    M libclc/clc/include/clc/math/clc_half_cos.h
    M libclc/clc/include/clc/math/clc_half_divide.h
    M libclc/clc/include/clc/math/clc_half_exp.h
    M libclc/clc/include/clc/math/clc_half_exp10.h
    M libclc/clc/include/clc/math/clc_half_exp2.h
    M libclc/clc/include/clc/math/clc_half_log.h
    M libclc/clc/include/clc/math/clc_half_log10.h
    M libclc/clc/include/clc/math/clc_half_log2.h
    M libclc/clc/include/clc/math/clc_half_powr.h
    M libclc/clc/include/clc/math/clc_half_recip.h
    M libclc/clc/include/clc/math/clc_half_rsqrt.h
    M libclc/clc/include/clc/math/clc_half_sin.h
    M libclc/clc/include/clc/math/clc_half_sqrt.h
    M libclc/clc/include/clc/math/clc_half_tan.h
    M libclc/clc/include/clc/math/clc_native_cos.h
    M libclc/clc/include/clc/math/clc_native_divide.h
    M libclc/clc/include/clc/math/clc_native_exp.h
    M libclc/clc/include/clc/math/clc_native_exp10.h
    M libclc/clc/include/clc/math/clc_native_exp2.h
    M libclc/clc/include/clc/math/clc_native_log.h
    M libclc/clc/include/clc/math/clc_native_log10.h
    M libclc/clc/include/clc/math/clc_native_log2.h
    M libclc/clc/include/clc/math/clc_native_powr.h
    M libclc/clc/include/clc/math/clc_native_recip.h
    M libclc/clc/include/clc/math/clc_native_rsqrt.h
    M libclc/clc/include/clc/math/clc_native_sin.h
    M libclc/clc/include/clc/math/clc_native_sqrt.h
    M libclc/clc/include/clc/math/clc_native_tan.h
    M libclc/clc/include/clc/math/clc_sincos_helpers.h
    M libclc/clc/include/clc/math/gentype.inc
    A libclc/clc/include/clc/shared/binary_def_scalarize.inc
    A libclc/clc/include/clc/shared/ternary_def_scalarize.inc
    A libclc/clc/include/clc/shared/unary_def_scalarize.inc
    M libclc/clc/lib/amdgcn/math/clc_fmax.cl
    M libclc/clc/lib/amdgcn/math/clc_fmin.cl
    M libclc/clc/lib/amdgcn/math/clc_ldexp_override.cl
    M libclc/clc/lib/amdgpu/math/clc_native_exp2.cl
    M libclc/clc/lib/amdgpu/math/clc_sqrt_fp64.cl
    M libclc/clc/lib/clspv/math/clc_sw_fma.cl
    M libclc/clc/lib/generic/integer/clc_clz.cl
    M libclc/clc/lib/generic/integer/clc_ctz.cl
    M libclc/clc/lib/generic/math/clc_erf.cl
    M libclc/clc/lib/generic/math/clc_erfc.cl
    M libclc/clc/lib/generic/math/clc_fmax.cl
    M libclc/clc/lib/generic/math/clc_fmin.cl
    M libclc/clc/lib/generic/math/clc_fmod.cl
    M libclc/clc/lib/generic/math/clc_ldexp.cl
    M libclc/clc/lib/generic/math/clc_log.cl
    M libclc/clc/lib/generic/math/clc_log10.cl
    M libclc/clc/lib/generic/math/clc_log2.cl
    M libclc/clc/lib/generic/math/clc_remainder.cl
    M libclc/clc/lib/generic/math/clc_sincos_helpers.cl
    M libclc/clc/lib/generic/math/clc_sw_fma.cl
    M libclc/clc/lib/generic/math/clc_tgamma.cl
    M libclc/clc/lib/r600/math/clc_fmax.cl
    M libclc/clc/lib/r600/math/clc_fmin.cl
    M libclc/clc/lib/r600/math/clc_native_rsqrt.cl
    M libclc/clc/lib/r600/math/clc_rsqrt_override.cl
    M libclc/opencl/include/clc/opencl/geometric/fast_distance.h
    M libclc/opencl/include/clc/opencl/geometric/fast_length.h
    M libclc/opencl/include/clc/opencl/geometric/fast_normalize.h
    M libclc/opencl/include/clc/opencl/math/half_cos.h
    M libclc/opencl/include/clc/opencl/math/half_exp.h
    M libclc/opencl/include/clc/opencl/math/half_exp10.h
    M libclc/opencl/include/clc/opencl/math/half_exp2.h
    M libclc/opencl/include/clc/opencl/math/half_log.h
    M libclc/opencl/include/clc/opencl/math/half_log10.h
    M libclc/opencl/include/clc/opencl/math/half_log2.h
    M libclc/opencl/include/clc/opencl/math/half_recip.h
    M libclc/opencl/include/clc/opencl/math/half_rsqrt.h
    M libclc/opencl/include/clc/opencl/math/half_sin.h
    M libclc/opencl/include/clc/opencl/math/half_sqrt.h
    M libclc/opencl/include/clc/opencl/math/half_tan.h
    M libclc/opencl/include/clc/opencl/math/native_cos.h
    M libclc/opencl/include/clc/opencl/math/native_exp.h
    M libclc/opencl/include/clc/opencl/math/native_exp10.h
    M libclc/opencl/include/clc/opencl/math/native_exp2.h
    M libclc/opencl/include/clc/opencl/math/native_log.h
    M libclc/opencl/include/clc/opencl/math/native_log10.h
    M libclc/opencl/include/clc/opencl/math/native_log2.h
    M libclc/opencl/include/clc/opencl/math/native_recip.h
    M libclc/opencl/include/clc/opencl/math/native_rsqrt.h
    M libclc/opencl/include/clc/opencl/math/native_sin.h
    M libclc/opencl/include/clc/opencl/math/native_sqrt.h
    M libclc/opencl/include/clc/opencl/math/native_tan.h

  Log Message:
  -----------
  [NFC][libclc] Refactor _CLC_*_VECTORIZE macros to functions in .inc files (#145678)

With this PR, if we have customized implementation for scalar or vector
length = 2, we don't need to write new macros, e.g.
https://github.com/intel/llvm/blob/fb18321705f6/libclc/clc/include/clc/clcmacro.h#L15

Undef __HALF_ONLY, __FLOAT_ONLY and __DOUBLE_ONLY at the end of
clc/include/clc/math/gentype.inc

llvm-diff shows no change to nvptx64--nvidiacl.bc and amdgcn--amdhsa.bc



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