|
MLIR 22.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. | |
| constant_op_binder () | |
| Creates a matcher instance that doesn't bind if match succeeds. | |
| 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.
References bind_value.
|
inline |
Creates a matcher instance that doesn't bind if match succeeds.
Definition at line 83 of file Matchers.h.
References bind_value, and nullptr.
|
inline |
Definition at line 85 of file Matchers.h.
References bind_value, mlir::Operation::fold(), mlir::Operation::hasTrait(), and result.
| AttrT* mlir::detail::constant_op_binder< AttrT >::bind_value |
Definition at line 77 of file Matchers.h.
Referenced by constant_op_binder(), constant_op_binder(), and match().