diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2025-08-20 13:20:01 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2025-08-20 13:20:01 +0100 |
commit | 39e822446030c814de92b9de9d251e8a6a5cfba9 (patch) | |
tree | d0aeaed386c9388474243de9a41e3d9e7aedc8c5 /libjava/classpath/lib/java | |
parent | fc23b539caa16a108bd16bcfcb86fe261a9aa174 (diff) | |
download | gcc-39e822446030c814de92b9de9d251e8a6a5cfba9.zip gcc-39e822446030c814de92b9de9d251e8a6a5cfba9.tar.gz gcc-39e822446030c814de92b9de9d251e8a6a5cfba9.tar.bz2 |
rtl-ssa: Add a find_uses function
rtl-ssa already has a find_def function for finding the definition
of a particular resource (register or memory) at a particular point
in the program. This patch adds a similar function for looking
up uses. Both functions have amortised logarithmic complexity.
gcc/
* rtl-ssa/accesses.h (use_lookup): New class.
* rtl-ssa/functions.h (function_info::find_def): Expand comment.
(function_info::find_use): Declare.
* rtl-ssa/member-fns.inl (use_lookup::prev_use, use_lookup::next_use)
(use_lookup::matching_use, use_lookup::matching_or_prev_use)
(use_lookup::matching_or_next_use): New member functions.
* rtl-ssa/accesses.cc (function_info::find_use): Likewise.
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions