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

Method nonnull_metadata

crates/rustc_codegen_nvvm/src/builder.rs:649–657  ·  view source on GitHub ↗
(&mut self, load: &'ll Value)

Source from the content-addressed store, hash-verified

647 }
648
649 fn nonnull_metadata(&mut self, load: &'ll Value) {
650 unsafe {
651 llvm::LLVMSetMetadata(
652 load,
653 llvm::MetadataType::MD_nonnull as c_uint,
654 llvm::LLVMMDNodeInContext(self.cx.llcx, ptr::null(), 0),
655 );
656 }
657 }
658
659 fn type_metadata(&mut self, _function: &'ll Value, _typeid: String) {
660 // LLVM CFI doesnt make sense on the GPU

Callers 1

scalar_load_metadataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected