Trait melior::ir::ValueLike

source ·
pub trait ValueLike<'c> {
    // Required method
    fn to_raw(&self) -> MlirValue;

    // Provided methods
    fn type(&self) -> Type<'c> { ... }
    fn is_block_argument(&self) -> bool { ... }
    fn is_operation_result(&self) -> bool { ... }
    fn dump(&self) { ... }
}
Expand description

Trait for value-like types.

Required Methods§

source

fn to_raw(&self) -> MlirValue

Converts a value into a raw value.

Provided Methods§

source

fn type(&self) -> Type<'c>

Returns a type.

source

fn is_block_argument(&self) -> bool

Returns true if a value is a block argument.

source

fn is_operation_result(&self) -> bool

Returns true if a value is an operation result.

source

fn dump(&self)

Dumps a value.

Implementors§

source§

impl<'c, 'a> ValueLike<'c> for BlockArgument<'c, 'a>

source§

impl<'c, 'a> ValueLike<'c> for OperationResult<'c, 'a>

source§

impl<'c, 'a> ValueLike<'c> for Value<'c, 'a>