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

Method replace_lanes

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

Get a type with the same number of lanes as `self`, but using `lane` as the lane type.

(self, lane: Self)

Source from the content-addressed store, hash-verified

123
124 /// Get a type with the same number of lanes as `self`, but using `lane` as the lane type.
125 fn replace_lanes(self, lane: Self) -> Self {
126 debug_assert!(lane.is_lane() && !self.is_special());
127 Self((lane.0 & 0x0f) | (self.0 & 0xf0))
128 }
129
130 /// Get a type with the same number of lanes as this type, but with the lanes replaced by
131 /// booleans of the same size.

Callers 4

as_truthy_pedanticMethod · 0.80
as_intMethod · 0.80
half_widthMethod · 0.80
double_widthMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected