Enum cranelift_codegen::data_value::DataValue [−][src]
Represent a data value. Where Value is an SSA reference, DataValue is the type + value that would be referred to by a Value.
Variants
B(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
F32(Ieee32)
F64(Ieee64)
Implementations
impl DataValue
[src]
pub fn from_integer(
imm: i64,
ty: Type
) -> Result<DataValue, DataValueCastFailure>
[src]
imm: i64,
ty: Type
) -> Result<DataValue, DataValueCastFailure>
Try to cast an immediate integer (a wrapped i64
on most Cranelift instructions) to the
given Cranelift Type.
pub fn ty(&self) -> Type
[src]
pub fn is_vector(&self) -> bool
[src]
Return true if the value is a vector (i.e. DataValue::V128
).
pub unsafe fn write_value_to(&self, p: *mut u128)
[src]
Write a DataValue to a memory location.
pub unsafe fn read_value_from(p: *const u128, ty: Type) -> Self
[src]
Trait Implementations
impl Clone for DataValue
[src]
impl Debug for DataValue
[src]
impl Display for DataValue
[src]
impl From<[u8; 16]> for DataValue
[src]
impl From<Ieee32> for DataValue
[src]
impl From<Ieee64> for DataValue
[src]
impl From<Offset32> for DataValue
[src]
impl From<bool> for DataValue
[src]
impl From<i16> for DataValue
[src]
impl From<i32> for DataValue
[src]
impl From<i64> for DataValue
[src]
impl From<i8> for DataValue
[src]
impl From<u16> for DataValue
[src]
impl From<u32> for DataValue
[src]
impl From<u64> for DataValue
[src]
impl From<u8> for DataValue
[src]
impl PartialEq<DataValue> for DataValue
[src]
impl PartialOrd<DataValue> for DataValue
[src]
fn partial_cmp(&self, other: &DataValue) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for DataValue
[src]
impl TryInto<[u8; 16]> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<[u8; 16], Self::Error>
[src]
impl TryInto<Ieee32> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Ieee32, Self::Error>
[src]
impl TryInto<Ieee64> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Ieee64, Self::Error>
[src]
impl TryInto<bool> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<bool, Self::Error>
[src]
impl TryInto<i16> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i16, Self::Error>
[src]
impl TryInto<i32> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i32, Self::Error>
[src]
impl TryInto<i64> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i64, Self::Error>
[src]
impl TryInto<i8> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i8, Self::Error>
[src]
impl TryInto<u16> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<u16, Self::Error>
[src]
impl TryInto<u32> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<u32, Self::Error>
[src]
impl TryInto<u64> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<u64, Self::Error>
[src]
impl TryInto<u8> for DataValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,