MLIR
20.0.0git
|
A struct containing common matchers over linalg op's region. More...
#include "mlir/Dialect/Linalg/Utils/Utils.h"
Public Types | |
enum class | BinaryOpKind { IAdd } |
Static Public Member Functions | |
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.
|
strong |
|
static |
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
Definition at line 96 of file Utils.cpp.
References mlir::Block::front(), mlir::Block::getArgument(), mlir::Block::getNumArguments(), mlir::Block::getOperations(), mlir::Value::getType(), mlir::Type::isSignlessIntOrFloat(), mlir::matchers::m_Val(), and mlir::Block::without_terminator().