25 auto producerOp = dyn_cast<TilingInterface>(producer.
getOwner());
30 if (llvm::any_of(sliceOp.getMixedStrides(), [](
OpFoldResult ofr) {
31 return !isConstantIntValue(ofr, 1);
37 sliceOp.getMixedSizes());
This class provides support for representing a failure result, or a valid value of type T.
This class helps build Operations.
This class represents a single result from folding an operation.
This is a value defined by a result of an operation.
Operation * getOwner() const
Returns the operation that owns this result.
unsigned getResultNumber() const
Returns the number of this result.
FailureOr< TilingResult > replaceExtractSliceWithTiledProducer(OpBuilder &builder, tensor::ExtractSliceOp sliceOp, OpResult producerOp)
Pattern to swap an tensor.extract_slice with its producer when the producer implements the TilingInte...
Include the generated interface declarations.
LogicalResult failure(bool isFailure=true)
Utility function to generate a LogicalResult.
bool failed(LogicalResult result)
Utility function that returns true if the provided LogicalResult corresponds to a failure value.