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: data type 'struct loop' in MELT


On 05/14/2010 10:27 PM, Michael Raitza wrote:

Up to now I have basic support up and running. The hash map to the loop is missing and I have not figured out yet what I need it for, but Basile mentioned it to be necessary to reliably attach data to the loop data type.


Actually, this is not really MELT specific but also concerns any plugin.

As a general case, most (& probably all) GCC data structures cannot be extended by plugins. So, for instance, a plugin cannot add its own field to the loop data. Likewise, another plugin cannot add a field to any gimple data structure. (More generally, most GCC data are not object oriented and cannot be extended by plugins).

So plugins (& MELT extensions) have to associate information to existing GCC data elsewhere. In MELT, there is some mechanism to build hash tables associating some main GCC data (gimple, tree, edge...) to arbitary MELT values.

Thanks for your interest in MELT.

Regards.


-- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***


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

AltStyle によって変換されたページ (->オリジナル) /