Struct cranelift_codegen_meta::cdsl::typevar::TypeSet
source · pub(crate) struct TypeSet {
pub lanes: BTreeSet<u16>,
pub dynamic_lanes: BTreeSet<u16>,
pub ints: BTreeSet<u16>,
pub floats: BTreeSet<u16>,
pub refs: BTreeSet<u16>,
}
Fields§
§lanes: BTreeSet<u16>
§dynamic_lanes: BTreeSet<u16>
§ints: BTreeSet<u16>
§floats: BTreeSet<u16>
§refs: BTreeSet<u16>
Implementations§
source§impl TypeSet
impl TypeSet
fn new(
lanes: BTreeSet<u16>,
dynamic_lanes: BTreeSet<u16>,
ints: BTreeSet<u16>,
floats: BTreeSet<u16>,
refs: BTreeSet<u16>
) -> Self
sourcefn image(&self, derived_func: DerivedFunc) -> TypeSet
fn image(&self, derived_func: DerivedFunc) -> TypeSet
Return the image of self across the derived function func.
sourcefn half_width(&self) -> TypeSet
fn half_width(&self) -> TypeSet
Return a TypeSet describing the image of self across halfwidth.
sourcefn double_width(&self) -> TypeSet
fn double_width(&self) -> TypeSet
Return a TypeSet describing the image of self across doublewidth.
sourcefn half_vector(&self) -> TypeSet
fn half_vector(&self) -> TypeSet
Return a TypeSet describing the image of self across halfvector.
sourcefn double_vector(&self) -> TypeSet
fn double_vector(&self) -> TypeSet
Return a TypeSet describing the image of self across doublevector.
fn dynamic_to_vector(&self) -> TypeSet
fn concrete_types(&self) -> Vec<ValueType>
sourcefn get_singleton(&self) -> ValueType
fn get_singleton(&self) -> ValueType
Return the singleton type represented by self. Can only call on typesets containing 1 type.