This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to add a new pass?
- From: Ian Lance Taylor <iant at google dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 19 Jul 2011 10:02:05 -0700
- Subject: Re: How to add a new pass?
- References: <4E25AD23.6030204@gjlay.de>
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