MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / lookup_const_u64

Method lookup_const_u64

crates/rustc_codegen_spirv/src/builder_spirv.rs:674–680  ·  view source on GitHub ↗
(&self, def: SpirvValue)

Source from the content-addressed store, hash-verified

672 }
673
674 pub fn lookup_const_u64(&self, def: SpirvValue) -> Option<u64> {
675 match self.lookup_const(def)? {
676 SpirvConst::U32(v) => Some(v as u64),
677 SpirvConst::U64(v) => Some(v),
678 _ => None,
679 }
680 }
681
682 pub fn file_line_col_range_for_debuginfo(
683 &self,

Callers 14

sizeofMethod · 0.80
fmtMethod · 0.80
displayMethod · 0.80
const_to_opt_uintMethod · 0.80
const_to_opt_u128Method · 0.80
create_const_alloc2Method · 0.80
emit_access_chainMethod · 0.80
recurse_load_typeMethod · 0.80
recurse_store_typeMethod · 0.80
memset_const_patternMethod · 0.80
memcpyMethod · 0.80

Calls 1

lookup_constMethod · 0.80

Tested by

no test coverage detected