This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Getting variable attribute from rtx
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Dobes <bdobry at udel dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 27 Mar 2009 19:42:18 +0100
- Subject: Re: Getting variable attribute from rtx
- References: <22745207.post@talk.nabble.com>
> I need to add support for some custom attributes that I need to know during
> operand matching. I have no problem adding the attributes, but I don't
> know what to do so that I can access the information later. My function
> that is called to handle the attribute looks like this:
>
> static tree
> attr_myattr_handler(tree *node, tree name, tree args, int flags,
> bool *no_add_attrs) {
> /* What should I do here */
> }
See the SYMBOL_REF_FLAGS stuff in rtl.h and various examples in the back-ends.
--
Eric Botcazou