Skip to content

Add storage class memory semantics bit to LLVM IR atomic translation#3826

Merged
MrSidims merged 1 commit into
KhronosGroup:mainfrom
aobolensk:worktree-agent-ab106d42acfe6cae0
Jul 9, 2026
Merged

Add storage class memory semantics bit to LLVM IR atomic translation#3826
MrSidims merged 1 commit into
KhronosGroup:mainfrom
aobolensk:worktree-agent-ab106d42acfe6cae0

Conversation

@aobolensk

@aobolensk aobolensk commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Deduce storage class memory semantic from the pointer accessed by atomic intrinsics

Inspired by llvm/llvm-project#193696, llvm/llvm-project#195049

@MrSidims

MrSidims commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Per SPIR-V spec section 3.32 (Memory Semantics), atomic operations must combine the ordering bits ... with the relevant storage class bit ...

The description is misleading. There is no such spec requirement. Instead we should tell: deduce storage class memory semantic from the pointer accessed by atomic intrinsics

@MrSidims
MrSidims requested review from svenvh and vmaksimo July 7, 2026 18:24
@aobolensk

Copy link
Copy Markdown
Contributor Author

Per SPIR-V spec section 3.32 (Memory Semantics), atomic operations must combine the ordering bits ... with the relevant storage class bit ...

The description is misleading. There is no such spec requirement. Instead we should tell: deduce storage class memory semantic from the pointer accessed by atomic intrinsics

Modified description

@MrSidims
MrSidims merged commit 0a6abf0 into KhronosGroup:main Jul 9, 2026
8 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