MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::detail::constant_op_binder< AttrT > Struct Template Reference

The matcher that matches operations that have the ConstantLike trait, and binds the folded attribute value. More...

#include "mlir/IR/Matchers.h"

Public Member Functions

 constant_op_binder (AttrT *bind_value)
 Creates a matcher instance that binds the constant attribute value to bind_value if match succeeds. More...
 
 constant_op_binder ()
 Creates a matcher instance that doesn't bind if match succeeds. More...
 
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 operations that have the ConstantLike trait, and binds the folded attribute value.

Definition at line 75 of file Matchers.h.

Constructor & Destructor Documentation

◆ constant_op_binder() [1/2]

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.

Definition at line 80 of file Matchers.h.

◆ constant_op_binder() [2/2]

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

Creates a matcher instance that doesn't bind if match succeeds.

Definition at line 82 of file Matchers.h.

Member Function Documentation

◆ match()

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

Definition at line 84 of file Matchers.h.

Member Data Documentation

◆ bind_value

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

Definition at line 76 of file Matchers.h.


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