MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / volatile_load

Method volatile_load

crates/rustc_codegen_nvvm/src/builder.rs:480–487  ·  view source on GitHub ↗
(&mut self, _: &'ll Type, ptr: &'ll Value)

Source from the content-addressed store, hash-verified

478 }
479
480 fn volatile_load(&mut self, _: &'ll Type, ptr: &'ll Value) -> &'ll Value {
481 trace!("Volatile load `{:?}`", ptr);
482 unsafe {
483 let load = llvm::LLVMBuildLoad(self.llbuilder, ptr, unnamed());
484 llvm::LLVMSetVolatile(load, llvm::True);
485 load
486 }
487 }
488
489 fn atomic_load(
490 &mut self,

Callers 1

Calls 1

unnamedFunction · 0.85

Tested by

no test coverage detected