How to add a new pass?

Ian Lance Taylor iant@google.com
Tue Jul 19 18:17:00 GMT 2011


Georg-Johann Lay <avr@gjlay.de> writes:

> In the internals, there is no description of a backend
> can add a new pass. And no backend uses
> passes.c:register_pass (4.5 and 4.7), so here is the question:
>
> How can a backend add a pass?

I don't think anybody has ever done this.  At the moment only plugins
add new passes.  But I agree that backends clearly need to be able to do
this, and some passes need to move into the appropriate backends.  I
would encourage you to fix this.

Ian



More information about the Gcc mailing list