Skip to content

Conversation

@frasercrmck
Copy link
Contributor

Previously the OpenCL address space overloads of remquo would call into the one and only 'private' CLC remquo. This was an outlier compared with the other pointer-argumented maths builtins.

This commit moves the definitions of all address space overloads to the CLC library to give more control over each address space to CLC implementers.

There are some minor changes to the generated bytecode but it's simply moving IR instructions around.

Previously the OpenCL address space overloads of remquo would call into
the one and only 'private' CLC remquo. This was an outlier compared with
the other pointer-argumented maths builtins.

This commit moves the definitions of all address space overloads to the
CLC library to give more control over each address space to CLC
implementers.

There are some minor changes to the generated bytecode but it's simply
moving IR instructions around.
@frasercrmck frasercrmck requested a review from arsenm May 21, 2025 09:44
@frasercrmck frasercrmck added the libclc libclc OpenCL library label May 21, 2025
@github-actions
Copy link

github-actions bot commented May 21, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@frasercrmck frasercrmck merged commit 0bc7f41 into llvm:main May 21, 2025
9 checks passed
@frasercrmck frasercrmck deleted the libclc-clc-remquo-addrspaces branch May 21, 2025 10:26
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