This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [plugins] RFA: Merge plugins into mainline [3/5 - ME]
Le-Chun Wu <lcwu@google.com> writes:
>>> +/* Insert the plugin pass at the proper position. Return true if the pass
>>> + Â is successfully added.
>>> +
>>> + Â PLUGIN_PASS_INFO - new pass to be inserted
>>> + Â PASS_LIST Â Â Â Â- root of the pass list to insert the new pass to Â*/
>>> +
>>
>> You don't have to do it now, but I would like to permit backends to
>> register their own passes. ÂThat suggests that most of this code should
>> move to tree-pass.c.
>
> I am not sure I understand this comment. Do you mean you would like
> the plugins to register backend (RTL) passes? If so, the current
> mechanism should allow that. Or do you actually mean something else?
I mean that even without using plugins, gcc backends (e.g., the i386
backend) should be able to register their own passes. That is, this
ability to add new passes should be generically available in gcc, rather
than being a static function inside plugin.c.
This is not something which you need to address in this patch.
Ian