On 11/4/26 3:19 AM, Richard Biener wrote: > On Tue, Nov 3, 2026 at 7:44 PM Andrew MacLeod <[email protected]> wrote:
> > IMO the (not so) "shared" APIs are now very confusing - having > a separate m_pt and API to access/reset that. >OK, lets clear up the API confusion. The original prange "points-to" work >didnt take into account the pt_solution "conflict" very well. So, to address that, lets rename the prange API. the existing implementation is a must-point to and is really address centric, so I have changed the API to be "addr" based rather than "pt" point-to, and change the terminology to "known" and "excluded" instead of "points_to" and "points_away". this should eliminate any confusion. The follow on work that deals with regions like pointer_query seems to fit into this address concept quite cleanly. This feels better to me anyway and I think it seems more concise than before. These are all methods in either prange or prange_storage, and the old to new API mapping looks like this: set_pt (const prange &) -> set_addr (const prange &) set_pt (tree, bool points_to_p)-> set_addr (tree, bool known_p) set_pt_unknown () -> set_addr_unknown () pt_unknown_p () -> addr_unknown_p () pt_invariant () -> addr_known () pt_invariant_away () -> addr_excluded () pt_invariant_p (r) -> addr_same_known_p (r) pt_invariant_away_p (r) -> addr_same_excluded_p (r) pt_inverted_p (r) -> addr_inverted_p (r) pt_invert () -> addr_invert () pt_equal_p (p) -> addr_equal_p (p) [private] pt_base () -> addr_base () pt_offset (irange &) -> addr_offset (irange &) pt_size (irange &) -> addr_size (irange &) prange::m_pt -> prange::m_addr prange::m_points_to_p -> prange::m_known_p prange_storage::m_pt -> prange_storage::m_addr prange_storage::m_points_to_p -> prange_storage::m_known_p vrange_printer::print_pt () -> print_addr () Ive got a patch in progress and testing, I just want to know if this seems reasonable before committing it and creating unnecessary churn. Is this terminology good enough, or do you have alternative suggestions? Otherwise I'll be committing this API change tomorrow sometime. Then I'll provide a new clearer patch for the IPA and inlining cleanups. Andrew
