MLIR
21.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. 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 |
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 mlir::detail::AttrOpBinder< AttrT >::attrName, mlir::detail::AttrOpBinder< AttrT >::bindValue, and mlir::Operation::getAttrOfType().
StringRef mlir::detail::AttrOpBinder< AttrT >::attrName |
Definition at line 156 of file Matchers.h.
Referenced by mlir::detail::AttrOpBinder< AttrT >::match().
AttrT* mlir::detail::AttrOpBinder< AttrT >::bindValue |
Definition at line 157 of file Matchers.h.
Referenced by mlir::detail::AttrOpBinder< AttrT >::match().