MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / first_result

Method first_result

cranelift/codegen/src/ir/dfg.rs:1076–1080  ·  view source on GitHub ↗

Get the first result of an instruction. This function panics if the instruction doesn't have any result.

(&self, inst: Inst)

Source from the content-addressed store, hash-verified

1074 ///
1075 /// This function panics if the instruction doesn't have any result.
1076 pub fn first_result(&self, inst: Inst) -> Value {
1077 self.results[inst]
1078 .first(&self.value_lists)
1079 .unwrap_or_else(|| panic!("{inst} has no results"))
1080 }
1081
1082 /// Test if `inst` has any result values currently.
1083 pub fn has_results(&self, inst: Inst) -> bool {

Callers 15

call_memcmpMethod · 0.80
insert_load_storeFunction · 0.80
insert_fcvt_sequenceFunction · 0.80
mutateMethod · 0.80
add_nan_canon_seqFunction · 0.80
expand_stack_loadFunction · 0.80
vmctx_addrFunction · 0.80
ctrl_typevarMethod · 0.80

Calls 1

firstMethod · 0.45