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

Method get_intrinsic

crates/rustc_codegen_nvvm/src/context.rs:381–389  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

379 }
380
381 pub(crate) fn get_intrinsic(&self, key: &str) -> &'ll Value {
382 trace!("Retrieving intrinsic with name `{}`", key);
383 if let Some(v) = self.intrinsics.borrow().get(key).cloned() {
384 return v;
385 }
386
387 self.declare_intrinsic(key)
388 .unwrap_or_else(|| bug!("unknown intrinsic '{}'", key))
389 }
390
391 pub(crate) fn insert_intrinsic(
392 &self,

Callers 11

override_libm_functionFunction · 0.80
get_simple_intrinsicFunction · 0.80
abortMethod · 0.80
assumeMethod · 0.80
expectMethod · 0.80
va_startMethod · 0.80
va_endMethod · 0.80
checked_binopMethod · 0.80
atomic_loadMethod · 0.80

Calls 3

borrowMethod · 0.80
declare_intrinsicMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected