MLIR  19.0.0git
Classes | Typedefs
mlir::AttributeTrait Namespace Reference

This trait is used to determine if an attribute is mutable or not. More...

Classes

class  IsDynamicAttr
 

Typedefs

template<typename ConcreteType , template< typename > class TraitType>
using TraitBase = detail::StorageUserTraitBase< ConcreteType, TraitType >
 This class represents the base of an attribute trait. More...
 
template<typename ConcreteType >
using IsMutable = detail::StorageUserTrait::IsMutable< ConcreteType >
 

Detailed Description

This trait is used to determine if an attribute is mutable or not.

This trait is used to determine if an attribute is a dynamic attribute or not; it should only be implemented by dynamic attributes.

It is attached on an attribute if the corresponding ImplType defines a mutate function with proper signature.

Note: This is only required because dynamic attributes do not have a static/single TypeID.

Typedef Documentation

◆ IsMutable

template<typename ConcreteType >
using mlir::AttributeTrait::IsMutable = typedef detail::StorageUserTrait::IsMutable<ConcreteType>

Definition at line 330 of file Attributes.h.

◆ TraitBase

template<typename ConcreteType , template< typename > class TraitType>
using mlir::AttributeTrait::TraitBase = typedef detail::StorageUserTraitBase<ConcreteType, TraitType>

This class represents the base of an attribute trait.

Definition at line 284 of file Attributes.h.