Trait melior::ir::type::TypeLike

source ·
pub trait TypeLike<'c> {
Show 38 methods // Required method fn to_raw(&self) -> MlirType; // Provided methods fn context(&self) -> ContextRef<'c> { ... } fn id(&self) -> TypeId<'c> { ... } fn dialect(&self) -> Dialect<'c> { ... } fn dump(&self) { ... } fn is_any_quantized_type(&self) -> bool { ... } fn is_bf16(&self) -> bool { ... } fn is_calibrated_quantized_type(&self) -> bool { ... } fn is_complex(&self) -> bool { ... } fn is_f16(&self) -> bool { ... } fn is_f32(&self) -> bool { ... } fn is_f64(&self) -> bool { ... } fn is_float8e4m3fn(&self) -> bool { ... } fn is_float8e5m2(&self) -> bool { ... } fn is_function(&self) -> bool { ... } fn is_index(&self) -> bool { ... } fn is_integer(&self) -> bool { ... } fn is_mem_ref(&self) -> bool { ... } fn is_none(&self) -> bool { ... } fn is_opaque(&self) -> bool { ... } fn is_pdl_attribute_type(&self) -> bool { ... } fn is_pdl_operation_type(&self) -> bool { ... } fn is_pdl_range_type(&self) -> bool { ... } fn is_pdl_type(&self) -> bool { ... } fn is_pdl_type_type(&self) -> bool { ... } fn is_pdl_value_type(&self) -> bool { ... } fn is_quantized_type(&self) -> bool { ... } fn is_ranked_tensor(&self) -> bool { ... } fn is_shaped(&self) -> bool { ... } fn is_tensor(&self) -> bool { ... } fn is_transform_any_op_type(&self) -> bool { ... } fn is_transform_operation_type(&self) -> bool { ... } fn is_tuple(&self) -> bool { ... } fn is_uniform_quantized_per_axis_type(&self) -> bool { ... } fn is_uniform_quantized_type(&self) -> bool { ... } fn is_unranked_mem_ref(&self) -> bool { ... } fn is_unranked_tensor(&self) -> bool { ... } fn is_vector(&self) -> bool { ... }
}
Expand description

Trait for type-like types.

Required Methods§

source

fn to_raw(&self) -> MlirType

Converts a type into a raw object.

Provided Methods§

source

fn context(&self) -> ContextRef<'c>

Returns a context.

source

fn id(&self) -> TypeId<'c>

Returns an ID.

source

fn dialect(&self) -> Dialect<'c>

Returns a dialect.

source

fn dump(&self)

Dumps a type.

source

fn is_any_quantized_type(&self) -> bool

Returns true if a type is any quantized type.

source

fn is_bf16(&self) -> bool

Returns true if a type is bf16.

source

fn is_calibrated_quantized_type(&self) -> bool

Returns true if a type is calibrated quantized type.

source

fn is_complex(&self) -> bool

Returns true if a type is complex.

source

fn is_f16(&self) -> bool

Returns true if a type is f16.

source

fn is_f32(&self) -> bool

Returns true if a type is f32.

source

fn is_f64(&self) -> bool

Returns true if a type is f64.

source

fn is_float8e4m3fn(&self) -> bool

Returns true if a type is float8e4m3fn.

source

fn is_float8e5m2(&self) -> bool

Returns true if a type is float8e5m2.

source

fn is_function(&self) -> bool

Returns true if a type is function.

source

fn is_index(&self) -> bool

Returns true if a type is index.

source

fn is_integer(&self) -> bool

Returns true if a type is integer.

source

fn is_mem_ref(&self) -> bool

Returns true if a type is mem ref.

source

fn is_none(&self) -> bool

Returns true if a type is none.

source

fn is_opaque(&self) -> bool

Returns true if a type is opaque.

source

fn is_pdl_attribute_type(&self) -> bool

Returns true if a type is pdl attribute type.

source

fn is_pdl_operation_type(&self) -> bool

Returns true if a type is pdl operation type.

source

fn is_pdl_range_type(&self) -> bool

Returns true if a type is pdl range type.

source

fn is_pdl_type(&self) -> bool

Returns true if a type is pdl type.

source

fn is_pdl_type_type(&self) -> bool

Returns true if a type is pdl type type.

source

fn is_pdl_value_type(&self) -> bool

Returns true if a type is pdl value type.

source

fn is_quantized_type(&self) -> bool

Returns true if a type is quantized type.

source

fn is_ranked_tensor(&self) -> bool

Returns true if a type is ranked tensor.

source

fn is_shaped(&self) -> bool

Returns true if a type is shaped.

source

fn is_tensor(&self) -> bool

Returns true if a type is tensor.

source

fn is_transform_any_op_type(&self) -> bool

Returns true if a type is transform any op type.

source

fn is_transform_operation_type(&self) -> bool

Returns true if a type is transform operation type.

source

fn is_tuple(&self) -> bool

Returns true if a type is tuple.

source

fn is_uniform_quantized_per_axis_type(&self) -> bool

Returns true if a type is uniform quantized per axis type.

source

fn is_uniform_quantized_type(&self) -> bool

Returns true if a type is uniform quantized type.

source

fn is_unranked_mem_ref(&self) -> bool

Returns true if a type is unranked mem ref.

source

fn is_unranked_tensor(&self) -> bool

Returns true if a type is unranked tensor.

source

fn is_vector(&self) -> bool

Returns true if a type is vector.

Implementors§

source§

impl<'c> TypeLike<'c> for FunctionType<'c>

source§

impl<'c> TypeLike<'c> for IntegerType<'c>

source§

impl<'c> TypeLike<'c> for MemRefType<'c>

source§

impl<'c> TypeLike<'c> for RankedTensorType<'c>

source§

impl<'c> TypeLike<'c> for TupleType<'c>

source§

impl<'c> TypeLike<'c> for Type<'c>