Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp2757 LogicalResult matchAndRewrite(ViewOp viewOp, in matchAndRewrite()
2760 if (llvm::none_of(viewOp.getOperands(), [](Value operand) { in matchAndRewrite()
2766 auto memrefType = viewOp.getType(); in matchAndRewrite()
2814 viewOp.getLoc(), newMemRefType, viewOp.getOperand(0), in matchAndRewrite()
2815 viewOp.getByteShift(), newOperands); in matchAndRewrite()
2817 rewriter.replaceOpWithNewOp<CastOp>(viewOp, viewOp.getType(), newViewOp); in matchAndRewrite()
2825 LogicalResult matchAndRewrite(ViewOp viewOp, in matchAndRewrite()
2827 Value memrefOperand = viewOp.getOperand(0); in matchAndRewrite()
2835 rewriter.replaceOpWithNewOp<ViewOp>(viewOp, viewOp.getType(), allocOperand, in matchAndRewrite()
2836 viewOp.getByteShift(), in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DPromotion.cpp110 auto viewOp = cast<memref::ViewOp>(fullLocalView.getDefiningOp()); in defaultDeallocBufferCallBack() local
111 b.create<memref::DeallocOp>(viewOp.getSource().getLoc(), in defaultDeallocBufferCallBack()
112 viewOp.getSource()); in defaultDeallocBufferCallBack()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DAffineAnalysis.cpp130 auto viewOp = dyn_cast<ViewLikeOpInterface>(defOp); in isLocallyDefined() local
131 return viewOp && isLocallyDefined(viewOp.getViewSource(), enclosingOp); in isLocallyDefined()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp1891 matchAndRewrite(memref::ViewOp viewOp, OpAdaptor adaptor, in matchAndRewrite()
1893 auto loc = viewOp.getLoc(); in matchAndRewrite()
1895 auto viewMemRefType = viewOp.getType(); in matchAndRewrite()
1902 return viewOp.emitWarning("Target descriptor type not converted to LLVM"), in matchAndRewrite()
1909 return viewOp.emitWarning("cannot cast to non-strided shape"), failure(); in matchAndRewrite()
1915 return viewOp.emitWarning("cannot cast to non-contiguous shape"), in matchAndRewrite()
1924 auto srcMemRefType = viewOp.getSource().getType().cast<MemRefType>(); in matchAndRewrite()
1951 return rewriter.replaceOp(viewOp, {targetMemRef}), success(); in matchAndRewrite()
1966 rewriter.replaceOp(viewOp, {targetMemRef}); in matchAndRewrite()