MLIR  20.0.0git
Public Member Functions | List of all members
mlir::AttrTypeImmediateSubElementWalker Class Reference

AttrTypeSubElementHandler. More...

#include "mlir/IR/AttrTypeSubElements.h"

Public Member Functions

 AttrTypeImmediateSubElementWalker (function_ref< void(Attribute)> walkAttrsFn, function_ref< void(Type)> walkTypesFn)
 
void walk (Attribute element)
 Walk an attribute. More...
 
void walk (Type element)
 Walk a type. More...
 
template<typename RangeT >
void walkRange (RangeT &&elements)
 Walk a range of attributes or types. More...
 

Detailed Description

AttrTypeSubElementHandler.

This class is used by AttrTypeSubElementHandler instances to walking sub attributes and types.

Definition at line 332 of file AttrTypeSubElements.h.

Constructor & Destructor Documentation

◆ AttrTypeImmediateSubElementWalker()

mlir::AttrTypeImmediateSubElementWalker::AttrTypeImmediateSubElementWalker ( function_ref< void(Attribute)>  walkAttrsFn,
function_ref< void(Type)>  walkTypesFn 
)
inline

Definition at line 334 of file AttrTypeSubElements.h.

Member Function Documentation

◆ walk() [1/2]

void AttrTypeImmediateSubElementWalker::walk ( Attribute  element)

◆ walk() [2/2]

void AttrTypeImmediateSubElementWalker::walk ( Type  element)

Walk a type.

Definition at line 325 of file AttrTypeSubElements.cpp.

◆ walkRange()

template<typename RangeT >
void mlir::AttrTypeImmediateSubElementWalker::walkRange ( RangeT &&  elements)
inline

The documentation for this class was generated from the following files: