This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: data type 'struct loop' in MELT
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: Michael Raitza <spacefrogg-devel at instandbesetzt dot net>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: 2010年5月15日 07:51:45 +0200
- Subject: Re: data type 'struct loop' in MELT
- References: <1273868296-sup-964@leandros>
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} ***