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

Method lane_type

cranelift/codegen/src/ir/types.rs:40–46  ·  view source on GitHub ↗

Get the lane type of this SIMD vector type. A lane type is the same as a SIMD vector type with one lane, so it returns itself.

(self)

Source from the content-addressed store, hash-verified

38 ///
39 /// A lane type is the same as a SIMD vector type with one lane, so it returns itself.
40 pub fn lane_type(self) -> Self {
41 if self.0 < constants::VECTOR_BASE {
42 self
43 } else {
44 Self(constants::LANE_BASE | (self.0 & 0x0f))
45 }
46 }
47
48 /// The type transformation that returns the lane type of a type variable; it is just a
49 /// renaming of lane_type() to be used in context where we think in terms of type variable

Callers 15

emit_zeroFunction · 0.45
stepFunction · 0.45
icmpFunction · 0.45
extractlanesFunction · 0.45
vectorizelanes_allFunction · 0.45
shift_amtFunction · 0.45
lane_ofMethod · 0.45
log2_lane_bitsMethod · 0.45
lane_bitsMethod · 0.45
boundsMethod · 0.45
as_truthy_pedanticMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected