llvm-project
028efc48 - [CIR] Add inbounds and nuw flags to cir.ptr_stride (#249016)

Commit
7 hours ago
[CIR] Add inbounds and nuw flags to cir.ptr_stride (#249016) [CIR] Add inbounds and nuw flags to cir.ptr_stride CIR lowered pointer arithmetic and strides to a `getelementptr` with no no-wrap flags, where classic codegen marks most of them `inbounds`, and also `nuw` for an unsigned index that is added. `cir.ptr_stride` now has the same optional inbounds and `nuw` flags as `cir.get_element`, and LowerToLLVM maps them to the GEP's no-wrap flags. NOTE: Most changes are missing inbounds in our tests, and were added by claude all of those make sense to me.
Author
Parents
Loading