My Project
Public Member Functions | Public Attributes | List of all members
mlir::detail::constant_op_binder< AttrT > Struct Template Reference

#include <Matchers.h>

Public Member Functions

 constant_op_binder (AttrT *bind_value)
 
bool match (Operation *op)
 

Public Attributes

AttrT * bind_value
 

Detailed Description

template<typename AttrT>
struct mlir::detail::constant_op_binder< AttrT >

The matcher that matches a constant foldable operation that has no side effect, no operands and produces a single result.

Constructor & Destructor Documentation

◆ constant_op_binder()

template<typename AttrT >
mlir::detail::constant_op_binder< AttrT >::constant_op_binder ( AttrT *  bind_value)
inline

Creates a matcher instance that binds the constant attribute value to bind_value if match succeeds.

Member Function Documentation

◆ match()

template<typename AttrT >
bool mlir::detail::constant_op_binder< AttrT >::match ( Operation op)
inline

Member Data Documentation

◆ bind_value

template<typename AttrT >
AttrT* mlir::detail::constant_op_binder< AttrT >::bind_value

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