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

The matcher that matches operations that have the specified attribute name, and binds the attribute value. More...

#include "mlir/IR/Matchers.h"

Public Member Functions

 AttrOpBinder (StringRef attrName, AttrT *bindValue)
 Creates a matcher instance that binds the attribute value to bind_value if match succeeds. More...
 
 AttrOpBinder (StringRef attrName)
 Creates a matcher instance that doesn't bind if match succeeds. More...
 
bool match (Operation *op)
 

Public Attributes

StringRef attrName
 
AttrT * bindValue
 

Detailed Description

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

The matcher that matches operations that have the specified attribute name, and binds the attribute value.

Definition at line 106 of file Matchers.h.

Constructor & Destructor Documentation

◆ AttrOpBinder() [1/2]

template<typename AttrT >
mlir::detail::AttrOpBinder< AttrT >::AttrOpBinder ( StringRef  attrName,
AttrT *  bindValue 
)
inline

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

Definition at line 109 of file Matchers.h.

◆ AttrOpBinder() [2/2]

template<typename AttrT >
mlir::detail::AttrOpBinder< AttrT >::AttrOpBinder ( StringRef  attrName)
inline

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

Definition at line 112 of file Matchers.h.

Member Function Documentation

◆ match()

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

Definition at line 114 of file Matchers.h.

Member Data Documentation

◆ attrName

template<typename AttrT >
StringRef mlir::detail::AttrOpBinder< AttrT >::attrName

Definition at line 122 of file Matchers.h.

◆ bindValue

template<typename AttrT >
AttrT* mlir::detail::AttrOpBinder< AttrT >::bindValue

Definition at line 123 of file Matchers.h.


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