Skip to content

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

Merged
HansKristian-Work merged 1 commit intoKhronosGroup:mainfrom
Try:msl-atomics-fix
Sep 25, 2023
Merged

MSL: fix extraction of global variables, in case of atomics#2203
HansKristian-Work merged 1 commit intoKhronosGroup:mainfrom
Try:msl-atomics-fix

Conversation

@Try
Copy link
Copy Markdown
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
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