|
MLIR 22.0.0git
|
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. | |
| AttrOpBinder (StringRef attrName) | |
| Creates a matcher instance that doesn't bind if match succeeds. | |
| bool | match (Operation *op) |
Public Attributes | |
| StringRef | attrName |
| AttrT * | bindValue |
The matcher that matches operations that have the specified attribute name, and binds the attribute value.
Definition at line 140 of file Matchers.h.
|
inline |
Creates a matcher instance that binds the attribute value to bind_value if match succeeds.
Definition at line 143 of file Matchers.h.
|
inline |
Creates a matcher instance that doesn't bind if match succeeds.
Definition at line 146 of file Matchers.h.
|
inline |
Definition at line 148 of file Matchers.h.
References attrName, bindValue, and mlir::Operation::getAttrOfType().
| StringRef mlir::detail::AttrOpBinder< AttrT >::attrName |
Definition at line 156 of file Matchers.h.
Referenced by AttrOpBinder(), AttrOpBinder(), and match().
| AttrT* mlir::detail::AttrOpBinder< AttrT >::bindValue |
Definition at line 157 of file Matchers.h.
Referenced by AttrOpBinder(), AttrOpBinder(), and match().