This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to add a new pass?
Romain Geissler schrieb:
> Hi
>
> Le 19 juil. 2011 à 18:13, Georg-Johann Lay a écrit :
>> How can a backend add a pass?
>
> I've never seen any warning about adding a backend pass in
> the plugin documentation, which may also register passes thanks
> to register_pass. I'm not a guru, but i think it's ok to add it as any
> other pass (might need confirmation).
There's no plugin involved.
The code that likes to add passes (tree-ssa and rtl) is inside
the backend of the compiler proper.
Johann