aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl-ssa/functions.h
diff options
context:
space:
mode:
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 *);