If this ptr is provably equal to Other plus a constant offset, return that offset in bytes. Essentially ptr this subtract ptr Other.
Declared in <llvm/IR/Value.h>
std::optional<int64_t>
getPointerOffsetFrom(
Value const* Other,
DataLayout const& DL) const;
The constant byte offset, or nullopt if not provable.
| Name | Description |
|---|---|
| Other | Pointer to compare against. |
| DL | Data layout used to compute the offset. |