Enum cranelift_codegen_meta::cdsl::types::ValueType
source · pub(crate) enum ValueType {
Lane(LaneType),
Reference(ReferenceType),
Vector(VectorType),
DynamicVector(DynamicVectorType),
}
Expand description
A concrete SSA value type.
All SSA values have a type that is described by an instance of ValueType
or one of its subclasses.
Variants§
Implementations§
source§impl ValueType
impl ValueType
sourcepub fn all_lane_types() -> LaneTypeIterator ⓘ
pub fn all_lane_types() -> LaneTypeIterator ⓘ
Iterate through all of the lane types.
pub fn all_reference_types() -> ReferenceTypeIterator ⓘ
sourcepub fn doc(&self) -> String
pub fn doc(&self) -> String
Return a string containing the documentation comment for this type.
sourcepub fn lane_count(&self) -> u64
pub fn lane_count(&self) -> u64
Return the number of lanes.
Trait Implementations§
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.
source§impl From<ReferenceType> for ValueType
impl From<ReferenceType> for ValueType
Create a ValueType from a given reference type.
source§fn from(reference: ReferenceType) -> Self
fn from(reference: ReferenceType) -> Self
Converts to this type from the input type.
source§impl From<VectorType> for ValueType
impl From<VectorType> for ValueType
Create a ValueType from a given vector type.
source§fn from(vector: VectorType) -> Self
fn from(vector: VectorType) -> Self
Converts to this type from the input type.
source§impl PartialEq<ValueType> for ValueType
impl PartialEq<ValueType> for ValueType
impl Eq for ValueType
impl StructuralEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more