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

Method array_alloca

crates/rustc_codegen_nvvm/src/builder.rs:463–469  ·  view source on GitHub ↗
(&mut self, ty: &'ll Type, len: &'ll Value, align: Align)

Source from the content-addressed store, hash-verified

461 }
462
463 fn array_alloca(&mut self, ty: &'ll Type, len: &'ll Value, align: Align) -> &'ll Value {
464 unsafe {
465 let alloca = llvm::LLVMBuildArrayAlloca(self.llbuilder, ty, len, unnamed());
466 llvm::LLVMSetAlignment(alloca, align.bytes() as c_uint);
467 alloca
468 }
469 }
470
471 fn load(&mut self, _: &'ll Type, ptr: &'ll Value, align: Align) -> &'ll Value {
472 trace!("Load `{:?}`", ptr);

Callers

nothing calls this directly

Calls 1

unnamedFunction · 0.85

Tested by

no test coverage detected