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

Add atomic load/store intrinsics to the compiler. #6437

Closed
wants to merge 3 commits into from

Conversation

Thiez
Copy link
Contributor

@Thiez Thiez commented May 12, 2013

This pull request adds 4 atomic intrinsics to the compiler, in preparation for #5042.

  • atomic_load(src: &int) -> int performs an atomic sequentially consistent load.
  • atomic_load_acq(src: &int) -> int performs an atomic acquiring load.
  • atomic_store(dst: &mut int, val: int) performs an atomic sequentially consistent store.
  • atomic_store_rel(dst: &mut int, val: int) performs an atomic releasing store.

For more information about the whole acquire/release thing: http://llvm.org/docs/Atomics.html

r?

Thiez added 2 commits May 12, 2013 23:23
… intrinsics.

The default versions (atomic_load and atomic_store) are sequentially consistent.
The atomic_load_acq intrinsic acquires as described in [1].
The atomic_store_rel intrinsic releases as described in [1].

[1]: http://llvm.org/docs/Atomics.html
@Thiez
Copy link
Contributor Author

Thiez commented May 12, 2013

It never is, it seems I neglected to remove that after copying the original definition of Load. It has been removed now.
r? @brson

@brson
Copy link
Contributor

brson commented May 12, 2013

Thanks! 🌷

@Thiez
Copy link
Contributor Author

Thiez commented May 13, 2013

r?

bors added a commit that referenced this pull request May 13, 2013
This pull request adds 4 atomic intrinsics to the compiler, in preparation for #5042.

* `atomic_load(src: &int) -> int` performs an atomic sequentially consistent load.
* `atomic_load_acq(src: &int) -> int` performs an atomic acquiring load.
* `atomic_store(dst: &mut int, val: int)` performs an atomic sequentially consistent store.
* `atomic_store_rel(dst: &mut int, val: int)` performs an atomic releasing store.

For more information about the whole acquire/release thing: http://llvm.org/docs/Atomics.html

r?
@bors bors closed this May 13, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 5, 2022
…fate

Extend `extra_unused_lifetimes` to handle impl lifetimes

Fixes rust-lang#6437 (cc: `@carols10cents)`

changelog: fix rust-lang#6437
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.

4 participants