Searched refs:accessChainOp (Results 1 – 3 of 3) sorted by relevance
326 spirv::AccessChainOp accessChainOp = in matchAndRewrite() local330 if (!accessChainOp) in matchAndRewrite()364 assert(accessChainOp.indices().size() == 2); in matchAndRewrite()375 Value lastDim = accessChainOp->getOperand(accessChainOp.getNumOperands() - 1); in matchAndRewrite()407 assert(accessChainOp.use_empty()); in matchAndRewrite()408 rewriter.eraseOp(accessChainOp); in matchAndRewrite()439 spirv::AccessChainOp accessChainOp = in matchAndRewrite() local443 if (!accessChainOp) in matchAndRewrite()486 Value lastDim = accessChainOp->getOperand(accessChainOp.getNumOperands() - 1); in matchAndRewrite()519 assert(accessChainOp.use_empty()); in matchAndRewrite()[all …]
93 LogicalResult matchAndRewrite(spirv::AccessChainOp accessChainOp, in matchAndRewrite()96 accessChainOp.base_ptr().getDefiningOp()); in matchAndRewrite()104 indices.append(accessChainOp.indices().begin(), in matchAndRewrite()105 accessChainOp.indices().end()); in matchAndRewrite()108 accessChainOp, parentAccessChainOp.base_ptr(), indices); in matchAndRewrite()
1088 static LogicalResult verifyAccessChain(Op accessChainOp, ValueRange indices) { in verifyAccessChain() argument1089 auto resultType = getElementPtrType(accessChainOp.base_ptr().getType(), in verifyAccessChain()1090 indices, accessChainOp.getLoc()); in verifyAccessChain()1095 accessChainOp.getType().template dyn_cast<spirv::PointerType>(); in verifyAccessChain()1097 return accessChainOp.emitOpError( in verifyAccessChain()1102 return accessChainOp.emitOpError("invalid result type: expected ") in verifyAccessChain()