Skip to content

Conversation

wenju-he
Copy link
Contributor

@wenju-he wenju-he commented Sep 5, 2025

Commit d50f2ef removes _CLC_V_V_VP_VECTORIZE from header file, but
the macro is still used in our downstream code:
https://github.com/intel/llvm/blob/0433e4d6f5c9/libclc/libspirv/lib/ptx-nvidiacl/math/modf.cl#L30
https://github.com/intel/llvm/blob/0433e4d6f5c9/libclc/libspirv/lib/ptx-nvidiacl/math/sincos.cl#L31

We can either revert d50f2ef or replace macro with use of
unary_def_with_ptr_scalarize.inc. This PR uses the latter approach.

@wenju-he wenju-he requested a review from frasercrmck September 5, 2025 02:53
@llvmbot llvmbot added the libclc libclc OpenCL library label Sep 5, 2025
@wenju-he wenju-he changed the title Revert "[NFC][libclc] Move _CLC_V_V_VP_VECTORIZE macro into clc_lgamma_r.cl and delete clcmacro.h (#156280)" [libclc] Replace _CLC_V_V_VP_VECTORIZE macro with use of unary_def_with_ptr_scalarize.inc Sep 5, 2025
@wenju-he wenju-he changed the title [libclc] Replace _CLC_V_V_VP_VECTORIZE macro with use of unary_def_with_ptr_scalarize.inc [NFC][libclc] Replace _CLC_V_V_VP_VECTORIZE macro with use of unary_def_with_ptr_scalarize.inc Sep 5, 2025
@wenju-he wenju-he merged commit 00b13c4 into llvm:main Sep 9, 2025
9 checks passed
@wenju-he wenju-he deleted the revert-move-_CLC_V_V_VP_VECTORIZE branch September 9, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libclc libclc OpenCL library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants