Struct cranelift_codegen_meta::cdsl::types::DynamicVectorType
source · Expand description
A concrete dynamic SIMD vector type.
A vector type has a lane type which is an instance of LaneType
,
and a positive number of lanes.
Fields§
§base: LaneType
§unscaled_lanes: u64
Implementations§
source§impl DynamicVectorType
impl DynamicVectorType
sourcepub fn new(base: LaneType, unscaled_lanes: u64) -> Self
pub fn new(base: LaneType, unscaled_lanes: u64) -> Self
Initialize a new type with base
lane type and a minimum number of lanes.
sourcepub fn doc(&self) -> String
pub fn doc(&self) -> String
Return a string containing the documentation comment for this vector type.
sourcepub fn minimum_lane_count(&self) -> u64
pub fn minimum_lane_count(&self) -> u64
Return the number of lanes.
sourcepub fn number(&self) -> u16
pub fn number(&self) -> u16
Find the unique number associated with this vector type.
Dynamic vector types are encoded in the same manner as VectorType
,
with lane type in the low 4 bits and the log2(lane_count). We add the
VECTOR_BASE
to move these numbers into the range beyond the fixed
SIMD types.
Trait Implementations§
source§impl Clone for DynamicVectorType
impl Clone for DynamicVectorType
source§fn clone(&self) -> DynamicVectorType
fn clone(&self) -> DynamicVectorType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DynamicVectorType
impl Debug for DynamicVectorType
source§impl Display for DynamicVectorType
impl Display for DynamicVectorType
source§impl From<DynamicVectorType> for ValueType
impl From<DynamicVectorType> for ValueType
Create a ValueType from a given dynamic vector type.
source§fn from(vector: DynamicVectorType) -> Self
fn from(vector: DynamicVectorType) -> Self
Converts to this type from the input type.