Home
last modified time | relevance | path

Searched refs:viewOp (Results 1 – 6 of 6) sorted by relevance

/llvm-project/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp3472 LogicalResult matchAndRewrite(ViewOp viewOp, in matchAndRewrite()
3475 if (llvm::none_of(viewOp.getOperands(), [](Value operand) { in matchAndRewrite()
3481 auto memrefType = viewOp.getType(); in matchAndRewrite()
3507 auto *defOp = viewOp.getSizes()[dynamicDimPos].getDefiningOp(); in matchAndRewrite()
3515 newOperands.push_back(viewOp.getSizes()[dynamicDimPos]);
3529 viewOp.getLoc(), newMemRefType, viewOp.getOperand(0), in matchAndRewrite()
3530 viewOp.getByteShift(), newOperands); in matchAndRewrite()
3532 rewriter.replaceOpWithNewOp<CastOp>(viewOp, viewOp
[all...]
/llvm-project/mlir/lib/Dialect/Affine/Analysis/
H A DAffineAnalysis.cpp135 auto viewOp = dyn_cast<ViewLikeOpInterface>(defOp); in isLocallyDefined() local
136 return viewOp && isLocallyDefined(viewOp.getViewSource(), enclosingOp); in isLocallyDefined()
/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
H A DPromotion.cpp129 auto viewOp = cast<memref::ViewOp>(fullLocalView.getDefiningOp()); in defaultDeallocBufferCallBack() local
130 b.create<memref::DeallocOp>(viewOp.getSource().getLoc(), in defaultDeallocBufferCallBack()
131 viewOp.getSource()); in defaultDeallocBufferCallBack()
/llvm-project/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp1443 matchAndRewrite(memref::ViewOp viewOp, OpAdaptor adaptor,
1445 auto loc = viewOp.getLoc(); in matchAndRewrite()
1447 auto viewMemRefType = viewOp.getType(); in matchAndRewrite()
1454 return viewOp.emitWarning("Target descriptor type not converted to LLVM"), in matchAndRewrite()
1461 return viewOp.emitWarning("cannot cast to non-strided shape"), failure(); in matchAndRewrite()
1467 return viewOp.emitWarning("cannot cast to non-contiguous shape"), in matchAndRewrite()
1476 auto srcMemRefType = cast<MemRefType>(viewOp.getSource().getType()); in matchAndRewrite()
1498 return rewriter.replaceOp(viewOp, {targetMemRef}), success(); in matchAndRewrite()
1514 rewriter.replaceOp(viewOp, {targetMemRef}); in matchAndRewrite()
/llvm-project/mlir/test/lib/Dialect/SCF/
H A DTestSCFUtils.cpp175 if (auto viewOp = dyn_cast<memref::SubViewOp>(op)) { in predicateOp()
171 if (auto viewOp = dyn_cast<memref::SubViewOp>(op)) { predicateOp() local
/llvm-project/mlir/lib/Dialect/Affine/Transforms/
H A DLoopFusion.cpp194 if (auto viewOp = dyn_cast<mlir::ViewLikeOpInterface>(defOp)) in isEscapingMemref() local
195 if (isEscapingMemref(viewOp.getViewSource(), block)) in isEscapingMemref()