1
Fork 0
rust/compiler/rustc_codegen_llvm/src/llvm
bors e0be1a0262 Auto merge of #137271 - nikic:gep-nuw-2, r=scottmcm
Emit getelementptr inbounds nuw for pointer::add()

Lower pointer::add (via intrinsic::offset with unsigned offset) to getelementptr inbounds nuw on LLVM versions that support it. This lets LLVM make use of the pre-condition that the offset addition does not wrap in an unsigned sense. Together with inbounds, this also implies that the offset is non-negative.

Fixes https://github.com/rust-lang/rust/issues/137217.
2025-02-24 03:06:16 +00:00
..
archive_ro.rs cg_llvm: Reduce visibility of all functions in the llvm module 2025-02-13 12:36:25 +11:00
diagnostic.rs Pass end position of span through inline ASM cookie 2024-11-26 13:00:08 +00:00
enzyme_ffi.rs Auto merge of #137420 - matthiaskrgr:rollup-rr0q37f, r=matthiaskrgr 2025-02-22 13:32:44 +00:00
ffi.rs Switch to the LLVMBuildGEPWithNoWrapFlags API 2025-02-19 11:32:32 +01:00
mod.rs Merge two operations that were always performed together 2025-02-20 11:24:00 +00:00