A struct containing common matchers over linalg op's region.
More...
#include "mlir/Dialect/Linalg/Utils/Utils.h"
|
static std::optional< BinaryOpKind > | matchAsScalarBinaryOp (GenericOp op) |
| Matches the given linalg op if its body is performing binary operation on int or float scalar values and returns the binary op kind. More...
|
|
A struct containing common matchers over linalg op's region.
Definition at line 330 of file Utils.h.
◆ BinaryOpKind
◆ matchAsScalarBinaryOp()
Matches the given linalg op if its body is performing binary operation on int or float scalar values and returns the binary op kind.
The linalg op's region is expected to be
{
^bb(%a: <scalar-type>, %b: <scalar-type>):
%0 = <binary-op> %a, %b: <scalar-type>
linalg.yield %0: <scalar-type>
}
Definition at line 96 of file Utils.cpp.
The documentation for this struct was generated from the following files: