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

Method lane_count

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

Get the number of lanes in this SIMD vector type. A scalar type is the same as a SIMD vector type with one lane, so it returns 1.

(self)

Source from the content-addressed store, hash-verified

273 ///
274 /// A scalar type is the same as a SIMD vector type with one lane, so it returns 1.
275 pub fn lane_count(self) -> u32 {
276 if self.is_dynamic_vector() {
277 0
278 } else {
279 1 << self.log2_lane_count()
280 }
281 }
282
283 /// Get the total number of bits used to represent this type.
284 pub fn bits(self) -> u32 {

Callers 15

nextMethod · 0.45
stepFunction · 0.45
extractlanesFunction · 0.45
splatFunction · 0.45
insert_bitcastFunction · 0.45
insert_ins_ext_laneFunction · 0.45
valid_for_targetFunction · 0.45
do_souper_harvestFunction · 0.45
bitsMethod · 0.45
wider_or_equalMethod · 0.45
gen_retval_loadsMethod · 0.45
abi_prepare_argsMethod · 0.45

Calls 2

is_dynamic_vectorMethod · 0.80
log2_lane_countMethod · 0.80

Tested by

no test coverage detected