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

Method concrete_types

cranelift/codegen/meta/src/cdsl/typevar.rs:498–517  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

496 }
497
498 fn concrete_types(&self) -> Vec<ValueType> {
499 let mut ret = Vec::new();
500 for &num_lanes in &self.lanes {
501 for &bits in &self.ints {
502 ret.push(LaneType::int_from_bits(bits).by(num_lanes));
503 }
504 for &bits in &self.floats {
505 ret.push(LaneType::float_from_bits(bits).by(num_lanes));
506 }
507 }
508 for &num_lanes in &self.dynamic_lanes {
509 for &bits in &self.ints {
510 ret.push(LaneType::int_from_bits(bits).to_dynamic(num_lanes));
511 }
512 for &bits in &self.floats {
513 ret.push(LaneType::float_from_bits(bits).to_dynamic(num_lanes));
514 }
515 }
516 ret
517 }
518
519 /// Return the singleton type represented by self. Can only call on typesets containing 1 type.
520 fn get_singleton(&self) -> ValueType {

Callers 1

get_singletonMethod · 0.80

Calls 4

to_dynamicMethod · 0.80
newFunction · 0.50
pushMethod · 0.45
byMethod · 0.45

Tested by

no test coverage detected