Enum cranelift_codegen::data_value::DataValue [−][src]
pub enum DataValue {
B(bool),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
F32(Ieee32),
F64(Ieee64),
V128([u8; 16]),
}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]
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 PartialOrd<DataValue> for DataValue[src]
impl PartialOrd<DataValue> for DataValue[src]