MLIR  20.0.0git
Classes | Typedefs
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

struct  IsLocation
 This trait is used to determine if an attribute is a location or not. More...
 
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 >
 This trait is used to determine if an attribute is mutable or not. More...
 

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 = typedef 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 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.