We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2357fb6 + 99e783d commit 26242beCopy full SHA for 26242be
src/intrinsics/mod.rs
@@ -870,11 +870,12 @@ fn codegen_regular_intrinsic_call<'tcx>(
870
// FIXME use a compiler fence once Cranelift supports it
871
fx.bcx.ins().fence();
872
}
873
- _ if intrinsic.as_str().starts_with("atomic_load") => {
+ sym::atomic_load => {
874
intrinsic_args!(fx, args => (ptr); intrinsic);
875
let ptr = ptr.load_scalar(fx);
876
877
let ty = generic_args.type_at(0);
878
+ let _ord = generic_args.const_at(1).to_value(); // FIXME: forward this to cranelift once they support that
879
match ty.kind() {
880
ty::Uint(UintTy::U128) | ty::Int(IntTy::I128) => {
881
// FIXME implement 128bit atomics
0 commit comments