Lines Matching refs:viewOp
4238 LogicalResult matchAndRewrite(ViewOp viewOp, in matchAndRewrite()
4241 if (llvm::none_of(viewOp.getOperands(), [](Value operand) { in matchAndRewrite()
4247 auto memrefType = viewOp.getType(); in matchAndRewrite()
4273 auto *defOp = viewOp.sizes()[dynamicDimPos].getDefiningOp(); in matchAndRewrite()
4280 newOperands.push_back(viewOp.sizes()[dynamicDimPos]); in matchAndRewrite()
4293 auto newViewOp = rewriter.create<ViewOp>(viewOp.getLoc(), newMemRefType, in matchAndRewrite()
4294 viewOp.getOperand(0), in matchAndRewrite()
4295 viewOp.byte_shift(), newOperands); in matchAndRewrite()
4297 rewriter.replaceOpWithNewOp<MemRefCastOp>(viewOp, newViewOp, in matchAndRewrite()
4298 viewOp.getType()); in matchAndRewrite()
4306 LogicalResult matchAndRewrite(ViewOp viewOp, in matchAndRewrite()
4308 Value memrefOperand = viewOp.getOperand(0); in matchAndRewrite()
4316 rewriter.replaceOpWithNewOp<ViewOp>(viewOp, viewOp.getType(), allocOperand, in matchAndRewrite()
4317 viewOp.byte_shift(), viewOp.sizes()); in matchAndRewrite()