[clang] [CIR] Add inbounds and nuw flags to cir.ptr_stride (PR #249016)

Konstantinos Parasyris via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 15:19:59 PST 2026


================
@@ -581,20 +581,29 @@ def CIR_PtrStrideOp : CIR_Op<"ptr_stride", [
     and an integer stride, similar to a single-index `getelementptr` in LLVM IR.
     It moves the pointer by `stride * sizeof(element_type)` bytes.
 
+    The optional `inbounds` and `nuw` (no unsigned wrap) flags have the same
+    semantics as on `cir.get_element`, with `stride` as the index.
----------------
koparasy wrote:

done

https://github.com/llvm/llvm-project/pull/249016


More information about the cfe-commits mailing list