Skip to content

Commit 27bf96d

Browse files
committed
remove 'unordered' atomic intrinsics
1 parent 0eb0b8c commit 27bf96d

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

compiler/rustc_codegen_ssa/src/mir/intrinsic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
336336
};
337337

338338
let parse_ordering = |bx: &Bx, s| match s {
339-
"unordered" => Unordered,
340339
"relaxed" => Relaxed,
341340
"acquire" => Acquire,
342341
"release" => Release,

library/core/src/intrinsics/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,6 @@ pub unsafe fn atomic_load_acquire<T: Copy>(src: *const T) -> T;
439439
#[rustc_intrinsic]
440440
#[rustc_nounwind]
441441
pub unsafe fn atomic_load_relaxed<T: Copy>(src: *const T) -> T;
442-
/// Do NOT use this intrinsic; "unordered" operations do not exist in our memory model!
443-
/// In terms of the Rust Abstract Machine, this operation is equivalent to `src.read()`,
444-
/// i.e., it performs a non-atomic read.
445-
#[rustc_intrinsic]
446-
#[rustc_nounwind]
447-
pub unsafe fn atomic_load_unordered<T: Copy>(src: *const T) -> T;
448442

449443
/// Stores the value at the specified memory location.
450444
/// `T` must be an integer or pointer type.
@@ -473,12 +467,6 @@ pub unsafe fn atomic_store_release<T: Copy>(dst: *mut T, val: T);
473467
#[rustc_intrinsic]
474468
#[rustc_nounwind]
475469
pub unsafe fn atomic_store_relaxed<T: Copy>(dst: *mut T, val: T);
476-
/// Do NOT use this intrinsic; "unordered" operations do not exist in our memory model!
477-
/// In terms of the Rust Abstract Machine, this operation is equivalent to `dst.write(val)`,
478-
/// i.e., it performs a non-atomic write.
479-
#[rustc_intrinsic]
480-
#[rustc_nounwind]
481-
pub unsafe fn atomic_store_unordered<T: Copy>(dst: *mut T, val: T);
482470

483471
/// Stores the value at the specified memory location, returning the old value.
484472
/// `T` must be an integer or pointer type.

0 commit comments

Comments
 (0)