Skip to content

Conversation

@wenju-he
Copy link
Contributor

No description provided.

@wenju-he
Copy link
Contributor Author

@frasercrmck please help to review? thanks.

Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I note that this uses __OPENCL_C_VERSION__ which technically isn't available for OpenCL 1.0 or 1.1. However, clang defines this macro even for those versions, so we have a consistent version checking mechanism. See here. I think it's okay to depend on clang-specific behaviour. We already rely on cl_clang_storage_class_specifiers.

@frasercrmck frasercrmck added the libclc libclc OpenCL library label Apr 15, 2025
@frasercrmck frasercrmck merged commit 5529024 into llvm:main Apr 15, 2025
10 checks passed
@wenju-he wenju-he deleted the libclc-ctz branch April 15, 2025 22:47
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.

2 participants