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

Method const_array

crates/rustc_codegen_nvvm/src/consts.rs:37–39  ·  view source on GitHub ↗
(&self, ty: &'ll Type, elts: &[&'ll Value])

Source from the content-addressed store, hash-verified

35
36impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
37 pub fn const_array(&self, ty: &'ll Type, elts: &[&'ll Value]) -> &'ll Value {
38 unsafe { llvm::LLVMConstArray(ty, elts.as_ptr(), elts.len() as c_uint) }
39 }
40
41 pub fn const_bytes(&self, bytes: &[u8]) -> &'ll Value {
42 bytes_in_context(self.llcx, bytes)

Callers 1

Calls 2

as_ptrMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected