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

Method create_compiler_used_variable

crates/rustc_codegen_nvvm/src/context.rs:242–247  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

240 }
241
242 fn create_compiler_used_variable(&self) {
243 self.create_used_variable_impl(
244 "llvm.compiler.used\0".as_ptr().cast(),
245 &*self.compiler_used_statics.borrow(),
246 );
247 }
248
249 fn declare_c_main(&self, _fn_type: Self::Type) -> Option<Self::Function> {
250 // no point for gpu kernels

Callers 1

module_codegenFunction · 0.80

Calls 4

as_ptrMethod · 0.80
borrowMethod · 0.80
castMethod · 0.45

Tested by

no test coverage detected