[Mlir-commits] [mlir] [mlir][spirv] Add InBoundsAccessChain op (PR #216682)
Igor Wodiany
llvmlistbot at llvm.org
Mon Aug 17 03:48:31 PDT 2026
================
@@ -351,6 +351,21 @@ LogicalResult AccessChainOp::verify() {
return verifyAccessChain(*this, getIndices());
}
+//===----------------------------------------------------------------------===//
+// spirv.InBoundsAccessChainOp
+//===----------------------------------------------------------------------===//
+
+void InBoundsAccessChainOp::build(OpBuilder &builder, OperationState &state,
+ Value basePtr, ValueRange indices) {
+ auto type = getElementPtrType(basePtr.getType(), indices, state.location);
----------------
IgWod wrote:
```suggestion
Type type = getElementPtrType(basePtr.getType(), indices, state.location);
```
https://github.com/llvm/llvm-project/pull/216682
More information about the Mlir-commits
mailing list