aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl-ssa/functions.h
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2025-09-02 15:58:26 -0700
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2025-09-02 15:58:26 -0700
commit071b4126c613881f4cb25b4e5c39032964827f88 (patch)
tree7ed805786566918630d1d617b1ed8f7310f5fd8e /gcc/rtl-ssa/functions.h
parent845d23f3ea08ba873197c275a8857eee7edad996 (diff)
parentcaa1c2f42691d68af4d894a5c3e700ecd2dba080 (diff)
downloadgcc-devel/gfortran-test.zip
gcc-devel/gfortran-test.tar.gz
gcc-devel/gfortran-test.tar.bz2
Merge branch 'master' into gfortran-testdevel/gfortran-test
Diffstat (limited to 'gcc/rtl-ssa/functions.h')
-rw-r--r--gcc/rtl-ssa/functions.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/rtl-ssa/functions.h b/gcc/rtl-ssa/functions.h
index 2e20f5e..ba80507 100644
--- a/gcc/rtl-ssa/functions.h
+++ b/gcc/rtl-ssa/functions.h
@@ -131,8 +131,23 @@ public:
// Look for a definition of RESOURCE at INSN. Return the result of the
// search as a def_lookup; see the comments there for more details.
+ //
+ // NOTE: This is not the function to use if INSN is known to be a real
+ // instruction (one with an RTL pattern) and if the caller is only
+ // interested in definitions within INSN itself. In those cases
+ // it is better to use find_access.
def_lookup find_def (resource_info resource, insn_info *insn);
+ // Search for a use of DEF around non-debug instruction INSN and return the
+ // result of the search as a use_lookup. See the comment above the class
+ // for more details about the result means.
+ //
+ // NOTE: This is not the function to use if INSN is known to be a real
+ // instruction (one with an RTL pattern) and if the caller is only
+ // interested in uses within INSN itself. In those cases it is better
+ // to use find_access.
+ use_lookup find_use (set_info *def, insn_info *insn);
+
// Return an RAII object that owns all temporary RTL SSA memory
// allocated during a change attempt. The object should remain in
// scope until the change has been aborted or successfully completed.
@@ -294,6 +309,7 @@ private:
void add_live_out_use (bb_info *, set_info *);
set_info *live_out_value (bb_info *, set_info *);
+ void commit_make_use_available (use_info *);
void append_phi (ebb_info *, phi_info *);
void remove_phi (phi_info *);