[−][src]Struct cranelift_codegen_meta::cdsl::types::VectorType
A concrete 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
lanes: u64
Methods
impl VectorType
[src]
pub fn new(base: LaneType, lanes: u64) -> Self
[src]
Initialize a new integer type with n
bits.
pub fn doc(&self) -> String
[src]
Return a string containing the documentation comment for this vector type.
pub fn lane_bits(&self) -> u64
[src]
Return the number of bits in a lane.
pub fn lane_count(&self) -> u64
[src]
Return the number of lanes.
pub fn lane_type(&self) -> LaneType
[src]
Return the lane type.
pub fn number(&self) -> u8
[src]
Find the unique number associated with this vector type.
Vector types are encoded with the lane type in the low 4 bits and log2(lanes) in the high 4 bits, giving a range of 2-256 lanes.
Trait Implementations
impl Clone for VectorType
[src]
fn clone(&self) -> VectorType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VectorType
[src]
impl Display for VectorType
[src]
impl Eq for VectorType
[src]
impl From<VectorType> for ValueType
[src]
Create a ValueType from a given vector type.
fn from(vector: VectorType) -> Self
[src]
impl Hash for VectorType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<VectorType> for VectorType
[src]
fn eq(&self, other: &VectorType) -> bool
[src]
fn ne(&self, other: &VectorType) -> bool
[src]
impl StructuralEq for VectorType
[src]
impl StructuralPartialEq for VectorType
[src]
Auto Trait Implementations
impl RefUnwindSafe for VectorType
impl Send for VectorType
impl Sync for VectorType
impl Unpin for VectorType
impl UnwindSafe for VectorType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,