MLIR
20.0.0git
|
This class provides support for interacting with the SubElementInterfaces for different types of parameters. More...
#include "mlir/IR/AttrTypeSubElements.h"
Public Types | |
using | DefaultHandlerTag = void |
Tag indicating that this handler does not support sub-elements. More... | |
Static Public Member Functions | |
static void | walk (const T ¶m, AttrTypeImmediateSubElementWalker &walker) |
Default walk implementation that does nothing. More... | |
template<typename ParamT > | |
static decltype(auto) | replace (ParamT &¶m, AttrSubElementReplacements &attrRepls, TypeSubElementReplacements &typeRepls) |
Default replace implementation just forwards the parameter. More... | |
This class provides support for interacting with the SubElementInterfaces for different types of parameters.
An implementation of this class should be provided for any parameter class that may contain an attribute or type. There are two main methods of this class that need to be implemented:
walk
This method should traverse into any sub elements of the parameter using the provided walker, or by invoking handlers for sub-types.
replace
This method should extract any necessary sub elements using the provided replacer, or by invoking handlers for sub-types. The new post-replacement parameter value should be returned.
Definition at line 394 of file AttrTypeSubElements.h.
using mlir::AttrTypeSubElementHandler< T, Enable >::DefaultHandlerTag = void |
Tag indicating that this handler does not support sub-elements.
Definition at line 408 of file AttrTypeSubElements.h.
|
inlinestatic |
Default replace implementation just forwards the parameter.
Definition at line 401 of file AttrTypeSubElements.h.
Referenced by mlir::AttrTypeSubElementHandler< std::tuple< Ts... >, std::enable_if_t< has_sub_attr_or_type_v< Ts... > > >::replace().
|
inlinestatic |
Default walk implementation that does nothing.
Definition at line 396 of file AttrTypeSubElements.h.
Referenced by mlir::AttrTypeSubElementHandler< std::tuple< Ts... >, std::enable_if_t< has_sub_attr_or_type_v< Ts... > > >::walk().