MLIR 22.0.0git
mlir::AttributeTrait Namespace Reference

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

Classes

class  IsDynamicAttr
struct  IsLocation
 This trait is used to determine if an attribute is a location or not. More...

Typedefs

template<typename ConcreteType, template< typename > class TraitType>
using TraitBase = detail::StorageUserTraitBase<ConcreteType, TraitType>
 This class represents the base of an attribute trait.
template<typename ConcreteType>
using IsMutable = detail::StorageUserTrait::IsMutable<ConcreteType>
 This trait is used to determine if an attribute is mutable or not.

Detailed Description

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

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 = detail::StorageUserTrait::IsMutable<ConcreteType>

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

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

Definition at line 288 of file Attributes.h.

◆ TraitBase

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

This class represents the base of an attribute trait.

Definition at line 242 of file Attributes.h.