This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How could I get alias set information from data_reference_p
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Li Feng <nemokingdom at gmail dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Tue, 14 Jul 2009 10:54:20 +0200
- Subject: Re: How could I get alias set information from data_reference_p
- References: <f18356030907132301n2306cd0ah3929575851d5cdff@mail.gmail.com>
On Tue, Jul 14, 2009 at 8:01 AM, Li Feng<nemokingdom@gmail.com> wrote:
> Hi,
>
> I'm now working on Graphite branch and need to know
> the alias set information for each data_reference_p, which
> would be an integer (or alias_set_type) stands for which
> alias set it is in.
>
> I tried to get the alias set information with get_alias_set (tree)
> (I've no idea how this function works, just a experimental
> trying), for my testcase, it returns 2 for all the
> data_reference_p->ref, which I think is unreasonable.
> So I think I may go wrong somewhere.
>
> The question will be: how could I get it's relevant
> alias set information from data_reference_p?
>
> p.s. :
> In Graphite, the data reference was built for each
> gimple stmt with:
> get_references_in_stmt (stmt, &references);
> then for each ref in references, data reference is created with:
> dr = create_data_ref (nest, *ref->pos, stmt, ref->is_read);
get_alias_set (dr->ref) is the correct thing. Why do you think it
is unreasonable to return 2 for all of them? Why do you need
alias-set information anyway?
Thanks,
Richard.
> Thanks,
> Li
>