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

Method as_int

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

Get a type with the same number of lanes as this type, but with the lanes replaced by integers of the same size.

(self)

Source from the content-addressed store, hash-verified

158 /// Get a type with the same number of lanes as this type, but with the lanes replaced by
159 /// integers of the same size.
160 pub fn as_int(self) -> Self {
161 self.replace_lanes(match self.lane_type() {
162 I8 => I8,
163 I16 | F16 => I16,
164 I32 | F32 => I32,
165 I64 | F64 => I64,
166 I128 | F128 => I128,
167 _ => unimplemented!(),
168 })
169 }
170
171 /// Get a type with the same number of lanes as this type, but with lanes that are half the
172 /// number of bits.

Callers 2

stepFunction · 0.80
vectorizelanes_allFunction · 0.80

Calls 2

replace_lanesMethod · 0.80
lane_typeMethod · 0.45

Tested by

no test coverage detected