This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Autoincrement examples
- To: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Subject: Re: Autoincrement examples
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Sat, 18 Dec 1999 02:08:45 +0000 (GMT)
- CC: law at cygnus dot com, gcc at gcc dot gnu dot org, amylaar at cygnus dot com
+ /* Look for ref for REG of REF_TYPE between INSN1 and INSN2 inclusive. */
+ struct ref *
+ ref_find_ref_between (ref_info, reg, insn1, insn2, ref_type)
+ struct ref_info *ref_info;
+ rtx reg;
+ rtx insn1, insn2;
+ enum ref_type ref_type;
+ {
+ rtx insn;
+ struct ref *ref;
+
+ for (insn = insn1; insn != NEXT_INSN (insn2); insn = NEXT_INSN (insn))
+ if ((ref = ref_find_ref (ref_info, reg, insn, REF_REG_DEF)))
+ return ref;
+ return NULL;
+ }
You ignore the parameter REF_TYPE.