[Mlir-commits] [mlir] [mlir][spirv] Add InBoundsAccessChain op (PR #216682)
Igor Wodiany
llvmlistbot at llvm.org
Mon Aug 17 03:48:31 PDT 2026
================
@@ -121,6 +121,40 @@ void spirv::AccessChainOp::getCanonicalizationPatterns(
results.add<CombineChainedAccessChain>(context);
}
+namespace {
+
+/// Combines chained `spirv::InBoundsAccessChainOp` operations while retaining
+/// the in-bounds contract of both segments.
+struct CombineChainedInBoundsAccessChain final
----------------
IgWod wrote:
Would it be possible to combine this code with one above using a template to avoid pretty much a verbatim repetition?
https://github.com/llvm/llvm-project/pull/216682
More information about the Mlir-commits
mailing list