Home
last modified time | relevance | path

Searched refs:accessChainOp (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRV.cpp840 spirv::AccessChainOp accessChainOp = in matchAndRewrite() local
859 accessChainOp.getResult()); in matchAndRewrite()
866 assert(accessChainOp.indices().size() == 2); in matchAndRewrite()
867 Value adjustedPtr = adjustAccessChainForBitwidth(typeConverter, accessChainOp, in matchAndRewrite()
877 Value lastDim = accessChainOp->getOperand(accessChainOp.getNumOperands() - 1); in matchAndRewrite()
900 assert(accessChainOp.use_empty()); in matchAndRewrite()
901 rewriter.eraseOp(accessChainOp); in matchAndRewrite()
961 spirv::AccessChainOp accessChainOp = in matchAndRewrite() local
977 storeOp, accessChainOp.getResult(), storeOperands.value()); in matchAndRewrite()
992 assert(accessChainOp.indices().size() == 2); in matchAndRewrite()
[all …]
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVCanonicalization.cpp91 LogicalResult matchAndRewrite(spirv::AccessChainOp accessChainOp, in matchAndRewrite()
94 accessChainOp.base_ptr().getDefiningOp()); in matchAndRewrite()
102 indices.append(accessChainOp.indices().begin(), in matchAndRewrite()
103 accessChainOp.indices().end()); in matchAndRewrite()
106 accessChainOp, parentAccessChainOp.base_ptr(), indices); in matchAndRewrite()
DSPIRVOps.cpp1013 static LogicalResult verify(spirv::AccessChainOp accessChainOp) { in verify() argument
1014 SmallVector<Value, 4> indices(accessChainOp.indices().begin(), in verify()
1015 accessChainOp.indices().end()); in verify()
1016 auto resultType = getElementPtrType(accessChainOp.base_ptr().getType(), in verify()
1017 indices, accessChainOp.getLoc()); in verify()
1023 accessChainOp.getType().dyn_cast<spirv::PointerType>(); in verify()
1025 return accessChainOp.emitOpError( in verify()
1031 return accessChainOp.emitOpError("invalid result type: expected ") in verify()