MLIR  20.0.0git
Classes | Functions
FoldAddIntoDest.cpp File Reference
#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)
 

Function Documentation

◆ isDefinedAsZero()

static bool isDefinedAsZero ( Value  val)
static