Displaying 3 results from an estimated 3 matches for "unsafecell".
2017 Aug 26
2
Unaligned atomic load/store
...aligned if you will). Here's a small piece of LLVM IR
exhibiting this (emitted by the Rust compiler):
target datalayout = "e-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
target triple = "avr-unknown-unknown"
%"atomic::AtomicI16" = type { %"core::cell::UnsafeCell<i16>", [0 x i8] }
%"core::cell::UnsafeCell<i16>" = type { i16, [0 x i8] }
define void @foo(%"atomic::AtomicI16"*) {
start:
%_15 = alloca i16, align 1
%1 = getelementptr inbounds %"atomic::AtomicI16", %"atomic::AtomicI16"* %0, i16 0, i3...
2014 Jul 29
3
[LLVMdev] Enhancing BasicAliasAnalysis for Rust
Since Rust references usually never aliases it would be nice if we could
exploit this for code generation. One idea I had to improve alias analysis
is to insert metadata on pointer loads. !inheritalias could be added to
load instructions to indicate that if we know all the aliases of the
pointer we load from, then we also know all the aliases of the pointer
value loaded. Given that pointer loads
2023 Apr 05
3
[PATCH v2 0/2] rust: virtio: add virtio support
This used to be a single patch, but I split it into two with the
addition of struct Scatterlist.
Again a bit new with Rust submissions. I was told by Gary Guo to
rebase on top of rust-next, but it seems *very* behind?
The first patch does not build on its own due to a dead_code warning.
It is hard to not have dead code when one is adding infrastructure to be
used by others at a later