17 #include "llvm/Support/Debug.h"
19 #define DEBUG_TYPE "linalg-specialization"
25 GenericOp genericOp) {
28 genericOp, genericOp.getDpsInputs()[0], genericOp.getDpsInits()[0]);
This class provides support for representing a failure result, or a valid value of type T.
This class coordinates the application of a rewrite on a set of IR, providing a way for clients to tr...
OpTy replaceOpWithNewOp(Operation *op, Args &&...args)
Replace the results of the given (original) op with a new op that is created without verification (re...
bool isaCopyOpInterface(LinalgOp linalgOp)
Checks whether linalgOp is semantically equivalent to a linalg.copyOp.
FailureOr< LinalgOp > specializeGenericOp(RewriterBase &rewriter, GenericOp genericOp)
Create a namedOp from the given GenericOp and replace the GenericOp.
Include the generated interface declarations.
LogicalResult failure(bool isFailure=true)
Utility function to generate a LogicalResult.