Re: [Mesa-dev] [PATCH 2/6] nir: Switch the arguments to nir_foreach_phi_src

2016-04-28 Thread Jason Ekstrand
On Thu, Apr 28, 2016 at 12:10 AM, Ian Romanick wrote: > On 04/27/2016 07:39 PM, Jason Ekstrand wrote: > > On Wed, Apr 27, 2016 at 12:54 AM, Ian Romanick > > wrote: > > > > On 04/27/2016 05:41 AM, Jason Ekstrand wrote: > > > This matches the "foreach x in cont

Re: [Mesa-dev] [PATCH 2/6] nir: Switch the arguments to nir_foreach_phi_src

2016-04-28 Thread Ian Romanick
On 04/27/2016 07:39 PM, Jason Ekstrand wrote: > On Wed, Apr 27, 2016 at 12:54 AM, Ian Romanick > wrote: > > On 04/27/2016 05:41 AM, Jason Ekstrand wrote: > > This matches the "foreach x in container" pattern found in many other > > programming languages.

Re: [Mesa-dev] [PATCH 2/6] nir: Switch the arguments to nir_foreach_phi_src

2016-04-27 Thread Connor Abbott
On Wed, Apr 27, 2016 at 1:39 PM, Jason Ekstrand wrote: > On Wed, Apr 27, 2016 at 12:54 AM, Ian Romanick wrote: >> >> On 04/27/2016 05:41 AM, Jason Ekstrand wrote: >> > This matches the "foreach x in container" pattern found in many other >> > programming languages. Generated by the following reg

Re: [Mesa-dev] [PATCH 2/6] nir: Switch the arguments to nir_foreach_phi_src

2016-04-27 Thread Jason Ekstrand
On Wed, Apr 27, 2016 at 12:54 AM, Ian Romanick wrote: > On 04/27/2016 05:41 AM, Jason Ekstrand wrote: > > This matches the "foreach x in container" pattern found in many other > > programming languages. Generated by the following regular expression: > > > > s/nir_foreach_phi_src(\([^,]*\),\s*\([

Re: [Mesa-dev] [PATCH 2/6] nir: Switch the arguments to nir_foreach_phi_src

2016-04-27 Thread Ian Romanick
On 04/27/2016 05:41 AM, Jason Ekstrand wrote: > This matches the "foreach x in container" pattern found in many other > programming languages. Generated by the following regular expression: > > s/nir_foreach_phi_src(\([^,]*\),\s*\([^,]*\))/nir_foreach_phi_src(\2, \1)/ > > and a similar expressio

[Mesa-dev] [PATCH 2/6] nir: Switch the arguments to nir_foreach_phi_src

2016-04-26 Thread Jason Ekstrand
This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_phi_src(\([^,]*\),\s*\([^,]*\))/nir_foreach_phi_src(\2, \1)/ and a similar expression for nir_foreach_phi_src_safe. --- src/compiler/nir/nir.