Skip to content

[Mono] Intrinsify Interlocked.And and Interlocked.Or using LLVM#33253

Merged
EgorBo merged 3 commits intodotnet:masterfrom
EgorBo:intrin-interlocked-and
Mar 10, 2020
Merged

[Mono] Intrinsify Interlocked.And and Interlocked.Or using LLVM#33253
EgorBo merged 3 commits intodotnet:masterfrom
EgorBo:intrin-interlocked-and

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Mar 5, 2020

These APIs were introduced recently in #32216 and already used in several places e.g. in Task, InterlockedBitVector32, SafeHandle, RegexCharClass

It should emit %reg = atomicrmw and (or) in LLVM IR. (and unlike Interlocked.Add these API return old value, see #33102

Addresses (for Mono) #32239

@EgorBo EgorBo merged commit fd1480e into dotnet:master Mar 10, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants