Home
last modified time | relevance | path

Searched refs:ValueType (Results 1 – 5 of 5) sorted by relevance

/wasmtime-44.0.1/cranelift/codegen/meta/src/cdsl/
H A Dtypes.rs18 pub(crate) enum ValueType { enum
24 impl ValueType { impl
33 ValueType::Lane(l) => l.doc(), in doc()
64 ValueType::Lane(l) => l.number(), in number()
81 impl fmt::Display for ValueType { implementation
84 ValueType::Lane(l) => l.fmt(f), in fmt()
92 impl From<LaneType> for ValueType { implementation
94 ValueType::Lane(lane) in from()
99 impl From<VectorType> for ValueType { implementation
101 ValueType::Vector(vector) in from()
[all …]
H A Dtypevar.rs8 use crate::cdsl::types::{LaneType, ValueType};
54 pub fn new_singleton(value_type: ValueType) -> Self { in new_singleton()
59 ValueType::Lane(lane_type) => (lane_type, 1), in new_singleton()
60 ValueType::Vector(vec_type) => { in new_singleton()
63 ValueType::DynamicVector(vec_type) => ( in new_singleton()
123 pub fn singleton_type(&self) -> Option<ValueType> { in singleton_type() argument
278 impl From<ValueType> for TypeVar {
279 fn from(value_type: ValueType) -> Self { in from()
498 fn concrete_types(&self) -> Vec<ValueType> { in concrete_types() argument
520 fn get_singleton(&self) -> ValueType { in get_singleton() argument
[all …]
/wasmtime-44.0.1/cranelift/codegen/meta/src/
H A Dgen_types.rs14 fn emit_type(ty: &cdsl_types::ValueType, fmt: &mut Formatter) { in emit_type() argument
25 for vec in cdsl_types::ValueType::all_lane_types() in emit_vectors()
26 .map(|ty| (ty, cdsl_types::ValueType::from(ty).membytes())) in emit_vectors()
31 emit_type(&cdsl_types::ValueType::from(vec), fmt); in emit_vectors()
38 for vec in cdsl_types::ValueType::all_lane_types() in emit_dynamic_vectors()
39 .map(|ty| (ty, cdsl_types::ValueType::from(ty).membytes())) in emit_dynamic_vectors()
44 emit_type(&cdsl_types::ValueType::from(vec), fmt); in emit_dynamic_vectors()
51 for ty in cdsl_types::ValueType::all_lane_types().map(cdsl_types::ValueType::from) { in emit_types()
/wasmtime-44.0.1/crates/wasi-nn/src/backend/
H A Donnx.rs15 value::{Tensor as OrtTensor, ValueType},
374 fn convert_value_type(vt: &ValueType) -> Result<(Vec<i64>, TensorType), BackendError> { in convert_value_type()
376 ValueType::Tensor { ty, shape, .. } => { in convert_value_type()
/wasmtime-44.0.1/cranelift/codegen/meta/src/shared/
H A Dinstructions.rs7 use crate::cdsl::types::{LaneType, ValueType};
682 let i8: &TypeVar = &ValueType::from(LaneType::from(types::Int::I8)).into(); in define()
683 let f16_: &TypeVar = &ValueType::from(LaneType::from(types::Float::F16)).into(); in define()
684 let f32_: &TypeVar = &ValueType::from(LaneType::from(types::Float::F32)).into(); in define()
685 let f64_: &TypeVar = &ValueType::from(LaneType::from(types::Float::F64)).into(); in define()
686 let f128_: &TypeVar = &ValueType::from(LaneType::from(types::Float::F128)).into(); in define()