Skip to content
Commit 989e6308 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

Add a new helper method to Value to strip in-bounds constant offsets of

pointers, but accumulate the offset into an APInt in the process of
stripping it.

This is a pretty handy thing to have, such as when trying to determine
if two pointers are at some constant relative offset. I'll be committing
a patch shortly to use it for exactly that purpose.

llvm-svn: 189000
parent 774cf319
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment