MLIR
20.0.0git
|
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 |
The matcher that matches operations that have the ConstantLike
trait, and binds the folded attribute value.
Definition at line 76 of file Matchers.h.
|
inline |
Creates a matcher instance that binds the constant attribute value to bind_value if match succeeds.
Definition at line 81 of file Matchers.h.
|
inline |
Creates a matcher instance that doesn't bind if match succeeds.
Definition at line 83 of file Matchers.h.
|
inline |
Definition at line 85 of file Matchers.h.
References mlir::detail::constant_op_binder< AttrT >::bind_value, mlir::Operation::fold(), and mlir::Operation::hasTrait().
AttrT* mlir::detail::constant_op_binder< AttrT >::bind_value |
Definition at line 77 of file Matchers.h.
Referenced by mlir::detail::constant_op_binder< AttrT >::match().