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

Method image

cranelift/codegen/meta/src/cdsl/typevar.rs:408–420  ·  view source on GitHub ↗

Return the image of self across the derived function func.

(&self, derived_func: DerivedFunc)

Source from the content-addressed store, hash-verified

406
407 /// Return the image of self across the derived function func.
408 fn image(&self, derived_func: DerivedFunc) -> TypeSet {
409 match derived_func {
410 DerivedFunc::LaneOf => self.lane_of(),
411 DerivedFunc::AsTruthy => self.as_truthy(),
412 DerivedFunc::HalfWidth => self.half_width(),
413 DerivedFunc::DoubleWidth => self.double_width(),
414 DerivedFunc::SplitLanes => self.half_width().double_vector(),
415 DerivedFunc::MergeLanes => self.double_width().half_vector(),
416 DerivedFunc::DynamicToVector => self.dynamic_to_vector(),
417 DerivedFunc::Narrower => self.clone(),
418 DerivedFunc::Wider => self.clone(),
419 }
420 }
421
422 /// Return a TypeSet describing the image of self across lane_of.
423 fn lane_of(&self) -> TypeSet {

Callers 1

get_typesetMethod · 0.45

Calls 8

double_vectorMethod · 0.80
half_vectorMethod · 0.80
lane_ofMethod · 0.45
as_truthyMethod · 0.45
half_widthMethod · 0.45
double_widthMethod · 0.45
dynamic_to_vectorMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected