MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::detail::attr_value_binder< AttrClass, ValueType, typename > Struct Template Reference

The matcher that matches a certain kind of Attribute and binds the value inside the Attribute. More...

#include "mlir/IR/Matchers.h"

Public Member Functions

 attr_value_binder (ValueType *bv)
 Creates a matcher instance that binds the value to bv if match succeeds. More...
 
bool match (Attribute attr)
 

Public Attributes

ValueType * bind_value
 

Detailed Description

template<typename AttrClass, typename ValueType = typename std::enable_if_t< std::is_base_of<Attribute, AttrClass>::value, AttrClass>::ValueType, typename = std::enable_if_t<!std::is_void<ValueType>::value>>
struct mlir::detail::attr_value_binder< AttrClass, ValueType, typename >

The matcher that matches a certain kind of Attribute and binds the value inside the Attribute.

Definition at line 37 of file Matchers.h.

Constructor & Destructor Documentation

◆ attr_value_binder()

template<typename AttrClass , typename ValueType = typename std::enable_if_t< std::is_base_of<Attribute, AttrClass>::value, AttrClass>::ValueType, typename = std::enable_if_t<!std::is_void<ValueType>::value>>
mlir::detail::attr_value_binder< AttrClass, ValueType, typename >::attr_value_binder ( ValueType *  bv)
inline

Creates a matcher instance that binds the value to bv if match succeeds.

Definition at line 41 of file Matchers.h.

Member Function Documentation

◆ match()

template<typename AttrClass , typename ValueType = typename std::enable_if_t< std::is_base_of<Attribute, AttrClass>::value, AttrClass>::ValueType, typename = std::enable_if_t<!std::is_void<ValueType>::value>>
bool mlir::detail::attr_value_binder< AttrClass, ValueType, typename >::match ( Attribute  attr)
inline

Member Data Documentation

◆ bind_value

template<typename AttrClass , typename ValueType = typename std::enable_if_t< std::is_base_of<Attribute, AttrClass>::value, AttrClass>::ValueType, typename = std::enable_if_t<!std::is_void<ValueType>::value>>
ValueType* mlir::detail::attr_value_binder< AttrClass, ValueType, typename >::bind_value

The documentation for this struct was generated from the following file: