This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting variable attribute from rtx


Eric Botcazou <ebotcazou@adacore.com> writes:

>> 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.

Or, better, look for uses of lookup_attribute.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]