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} ***

Reply via email to