rust/compiler/rustc_codegen_ssa/src
Guillaume Gomez 4755173cf6
Rollup merge of #96935 - thomcc:atomicptr-strict-prov, r=dtolnay
Allow arithmetic and certain bitwise ops on AtomicPtr

This is mainly to support migrating from `AtomicUsize`, for the strict provenance experiment.

This is a pretty dubious set of APIs, but it should be sufficient to allow code that's using `AtomicUsize` to manipulate a tagged pointer atomically. It's under a new feature gate, `#![feature(strict_provenance_atomic_ptr)]`, but I'm not sure if it needs its own tracking issue. I'm happy to make one, but it's not clear that it's needed.

I'm unsure if it needs changes in the various non-LLVM backends. Because we just cast things to integers anyway (and were already doing so), I doubt it.

API change proposal: https://github.com/rust-lang/libs-team/issues/60

Fixes #95492
2022-07-06 20:43:23 +02:00
..
back Rollup merge of #98214 - petrochenkov:islike, r=compiler-errors 2022-06-24 16:43:45 +09:00
coverageinfo Remove in_band_lifetimes from rustc_codegen_ssa 2021-12-15 00:41:41 -05:00
debuginfo account for endianness in debuginfo for const args 2022-06-14 16:12:34 +02:00
mir Rollup merge of #96935 - thomcc:atomicptr-strict-prov, r=dtolnay 2022-07-06 20:43:23 +02:00
traits Add llvm.type.checked.load intrinsic 2022-06-14 14:50:52 +02:00
base.rs Rollup merge of #97738 - Kixiron:zst-panic, r=eddyb 2022-06-07 11:41:08 +02:00
common.rs rustc_codegen_ssa: derive copy and clone for various enums 2022-05-25 10:34:35 +02:00
glue.rs use unchecked mul to compute slice sizes 2022-06-14 17:09:07 -04:00
lib.rs Rollup merge of #97423 - m-ou-se:memory-ordering-intrinsics, r=tmiasko 2022-06-29 10:28:18 +05:30
meth.rs Add llvm.type.checked.load intrinsic 2022-06-14 14:50:52 +02:00
mono_item.rs Add codegen for global_asm! sym operands 2022-04-15 14:36:30 +01:00
target_features.rs Add some unstable target features for the wasm target codegen 2022-06-06 15:01:17 -07:00