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

Method load

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

Source from the content-addressed store, hash-verified

469 }
470
471 fn load(&mut self, _: &'ll Type, ptr: &'ll Value, align: Align) -> &'ll Value {
472 trace!("Load `{:?}`", ptr);
473 unsafe {
474 let load = llvm::LLVMBuildLoad(self.llbuilder, ptr, unnamed());
475 llvm::LLVMSetAlignment(load, align.bytes() as c_uint);
476 load
477 }
478 }
479
480 fn volatile_load(&mut self, _: &'ll Type, ptr: &'ll Value) -> &'ll Value {
481 trace!("Volatile load `{:?}`", ptr);

Callers 7

data_layoutFunction · 0.80
target_tripleFunction · 0.80
usize_tyFunction · 0.80
pointer_sizeFunction · 0.80
initFunction · 0.80
load_operandMethod · 0.80

Calls 1

unnamedFunction · 0.85

Tested by

no test coverage detected