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

Method bits

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

Get the total number of bits used to represent this type.

(self)

Source from the content-addressed store, hash-verified

282
283 /// Get the total number of bits used to represent this type.
284 pub fn bits(self) -> u32 {
285 if self.is_dynamic_vector() {
286 0
287 } else {
288 self.lane_bits() * self.lane_count()
289 }
290 }
291
292 /// Get the minimum of lanes in this SIMD vector type, this supports both fixed and
293 /// dynamic types.

Callers 15

build_jump_tableMethod · 0.45
parse_inst_operandsMethod · 0.45
valid_for_targetFunction · 0.45
datavalueMethod · 0.45
souper_type_ofFunction · 0.45
write_operandsFunction · 0.45
swap_bytesMethod · 0.45
write_to_slice_neMethod · 0.45
bitwise_eqMethod · 0.45
is_constant_64bitFunction · 0.45
symbol_value_dataMethod · 0.45
from_virtual_regMethod · 0.45

Calls 3

is_dynamic_vectorMethod · 0.80
lane_bitsMethod · 0.45
lane_countMethod · 0.45

Tested by

no test coverage detected