On Thu, Apr 5, 2018 at 10:06 AM, Caio Marcelo de Oliveira Filho <
caio.olive...@intel.com> wrote:
> Hello,
>
> > + if (count <= max_short_path_len) {
> > + /* If we're under max_short_path_len, just use the short path. */
> > + path->path = head;
> > + goto done;
> > + }
> > +
>
Hello,
> + if (count <= max_short_path_len) {
> + /* If we're under max_short_path_len, just use the short path. */
> + path->path = head;
> + goto done;
> + }
> +
> + path->path = ralloc_array(mem_ctx, nir_deref_instr *, count + 1);
> + head = tail = path->path + count;
> +
This commit introduces a new nir_deref.h header for helpers that are
less common and really only needed by a few heavy-duty passes. In this
header is a new struct for representing a full deref path which can be
walked in either direction.
---
src/compiler/Makefile.sources | 1 +
src/compiler/nir