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

Method by

cranelift/codegen/meta/src/cdsl/types.rs:200–206  ·  view source on GitHub ↗
(self, lanes: u16)

Source from the content-addressed store, hash-verified

198 }
199
200 pub fn by(self, lanes: u16) -> ValueType {
201 if lanes == 1 {
202 self.into()
203 } else {
204 ValueType::Vector(VectorType::new(self, lanes.into()))
205 }
206 }
207
208 pub fn to_dynamic(self, lanes: u16) -> ValueType {
209 ValueType::DynamicVector(DynamicVectorType::new(self, lanes.into()))

Callers 1

concrete_typesMethod · 0.45

Calls 1

newFunction · 0.50

Tested by

no test coverage detected