Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSL: fix extraction of global variables, in case of atomics #2203

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

Try
Copy link
Contributor

@Try Try commented Sep 19, 2023

Before:

void testAdd()
{
    uint _29 = atomic_fetch_add_explicit((threadgroup atomic_uint*)&var, 1u, memory_order_relaxed);
}

After:

static inline __attribute__((always_inline))
void testAdd(threadgroup uint& var)
{
...

@HansKristian-Work HansKristian-Work merged commit 6e1fb9b into KhronosGroup:main Sep 25, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants