Searched refs:viewOp (Results 1 – 3 of 3) sorted by relevance
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
D | Promotion.cpp | 136 auto viewOp = fullLocalView.getDefiningOp<ViewOp>(); in defaultDeallocBufferCallBack() local 137 assert(viewOp && "expected full local view to be a ViewOp"); in defaultDeallocBufferCallBack() 139 std_dealloc(viewOp.source()); in defaultDeallocBufferCallBack()
|
/external/llvm-project/mlir/lib/Dialect/StandardOps/IR/ |
D | Ops.cpp | 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() [all …]
|
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/ |
D | StandardToLLVM.cpp | 3634 matchAndRewrite(ViewOp viewOp, ArrayRef<Value> operands, in matchAndRewrite() 3636 auto loc = viewOp.getLoc(); in matchAndRewrite() 3639 auto viewMemRefType = viewOp.getType(); in matchAndRewrite() 3646 return viewOp.emitWarning("Target descriptor type not converted to LLVM"), in matchAndRewrite() 3653 return viewOp.emitWarning("cannot cast to non-strided shape"), failure(); in matchAndRewrite() 3662 auto srcMemRefType = viewOp.source().getType().cast<MemRefType>(); in matchAndRewrite() 3685 return rewriter.replaceOp(viewOp, {targetMemRef}), success(); in matchAndRewrite() 3689 return viewOp.emitWarning("cannot cast to non-contiguous shape"), in matchAndRewrite() 3703 rewriter.replaceOp(viewOp, {targetMemRef}); in matchAndRewrite()
|