apple / swift-atomics

Low-level atomic operations for Swift
Apache License 2.0
1.06k stars 50 forks source link

Add support for using LLVM intrinsics instead of C atomics #74

Closed lorentey closed 1 year ago

lorentey commented 1 year ago

This adds a special build variant where C atomics are replaced with LLVM intrinsics.

This is not going to be enabled by default, because the use of -parse-stdlib is currently verboten for Swift packages.

However, it is an important step forward: once https://github.com/apple/swift/issues/56105 gets fixed, and we figure out how to allow the use of builtins from Swift packages, then this package could do away with defining a C module altogether.

Checklist

lorentey commented 1 year ago

Cc @glessard

lorentey commented 1 year ago

@swift-ci test