Lines Matching refs:loadOp
218 if (auto loadOp = dyn_cast<spirv::LoadOp>(op)) in shouldUnify() local
219 return shouldUnify(loadOp.ptr().getDefiningOp()); in shouldUnify()
406 matchAndRewrite(spirv::LoadOp loadOp, OpAdaptor adaptor, in matchAndRewrite()
409 loadOp.ptr().getType().cast<spirv::PointerType>().getPointeeType(); in matchAndRewrite()
413 return rewriter.notifyMatchFailure(loadOp, "not scalar type"); in matchAndRewrite()
415 Location loc = loadOp.getLoc(); in matchAndRewrite()
418 rewriter.replaceOp(loadOp, newLoadOp->getResults()); in matchAndRewrite()
425 rewriter.replaceOp(loadOp, castOp->getResults()); in matchAndRewrite()
439 return rewriter.notifyMatchFailure(loadOp, "more than 4 components"); in matchAndRewrite()
447 return rewriter.notifyMatchFailure(loadOp, "ptr not spv.AccessChain"); in matchAndRewrite()
469 rewriter.replaceOpWithNewOp<spirv::BitcastOp>(loadOp, srcElemType, in matchAndRewrite()