MLIR
20.0.0git
|
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Linalg/IR/LinalgInterfaces.h"
#include "mlir/Dialect/Linalg/Transforms/Transforms.h"
#include "mlir/IR/Dominance.h"
#include "mlir/Interfaces/DestinationStyleOpInterface.h"
Go to the source code of this file.
Classes | |
struct | FoldAddIntoDest |
Replace a linalg.add with one operand the single user of a contraction, which has a zero-filled, "identity-mapped" destination and is dominated by the other operand, by the contraction with other as its dest. More... | |
Functions | |
static bool | isDefinedAsZero (Value val) |
|
static |
Definition at line 18 of file FoldAddIntoDest.cpp.
References mlir::Value::getDefiningOp(), mlir::m_AnyZeroFloat(), mlir::m_Zero(), and mlir::matchPattern().
Referenced by FoldAddIntoDest::matchAndRewrite().