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

#include <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 (const Attribute &attr)
 

Public Attributes

ValueType * bind_value
 

Detailed Description

template<typename AttrClass, typename ValueType = typename std::enable_if<std::is_base_of<Attribute, AttrClass>::value, AttrClass>::type::ValueType, typename = typename std::enable_if<!std::is_void<ValueType>::value>::type>
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.

Constructor & Destructor Documentation

◆ attr_value_binder()

template<typename AttrClass , typename ValueType = typename std::enable_if<std::is_base_of<Attribute, AttrClass>::value, AttrClass>::type::ValueType, typename = typename std::enable_if<!std::is_void<ValueType>::value>::type>
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.

Member Function Documentation

◆ match()

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

Member Data Documentation

◆ bind_value

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

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