Re: Allowing filename-style globs in define_bypass

2011-08-11 Thread Richard Sandiford
Bernd Schmidt writes: > On 07/21/11 13:28, Richard Sandiford wrote: >> +static void >> +process_bypass_2 (decl_t model, decl_t out_insn_reserv, void *data) >> +{ >> + struct bypass_decl *bypass; >> + decl_t in_insn_reserv; >> + >> + in_insn_reserv = (decl_t) data; >> + bypass = XCNEW (struct b

Re: Allowing filename-style globs in define_bypass

2011-07-21 Thread Bernd Schmidt
On 07/21/11 13:28, Richard Sandiford wrote: > +static void > +process_bypass_2 (decl_t model, decl_t out_insn_reserv, void *data) > +{ > + struct bypass_decl *bypass; > + decl_t in_insn_reserv; > + > + in_insn_reserv = (decl_t) data; > + bypass = XCNEW (struct bypass_decl); > + bypass->latenc

Allowing filename-style globs in define_bypass

2011-07-21 Thread Richard Sandiford
define_bypass requires two lists of reservation names. On targets with fairly regular scheduling descriptions, it'd be nice to be able to use filename-style globs to match several reservation names at once. libiberty already provides an appropriate routine: fnmatch. It also has a fallback defini