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

Method data

crates/rustc_codegen_nvvm/src/lto.rs:32–39  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

30
31impl ModuleBufferMethods for ModuleBuffer {
32 fn data(&self) -> &[u8] {
33 unsafe {
34 trace!("Retrieving data in module buffer");
35 let ptr = llvm::LLVMRustModuleBufferPtr(self.0);
36 let len = llvm::LLVMRustModuleBufferLen(self.0);
37 std::slice::from_raw_parts(ptr, len)
38 }
39 }
40}
41
42impl Drop for ModuleBuffer {

Callers 10

codegenFunction · 0.45
codegen_bitcode_modulesFunction · 0.45
run_thinFunction · 0.45
optimize_thinFunction · 0.45
LLVMRustPrintTargetCPUsFunction · 0.45
CallDemangleMethod · 0.45
passEnumerateMethod · 0.45
LLVMRustThinLTOBufferPtrFunction · 0.45
LLVMRustGetSectionNameFunction · 0.45
LLVMRustModuleBufferPtrFunction · 0.45

Calls 5

LLVMRustModuleBufferPtrFunction · 0.85
LLVMRustModuleBufferLenFunction · 0.85
LLVMRustThinLTOBufferPtrFunction · 0.85
LLVMRustThinLTOBufferLenFunction · 0.85
from_raw_partsFunction · 0.50

Tested by

no test coverage detected