This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: writing a new pass: association with an option string
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: "Andrea Callia D'Iddio" <andrea dot calliadiddio at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 4 Dec 2006 11:10:03 +0200
- Subject: Re: writing a new pass: association with an option string
gcc-owner@gcc.gnu.org wrote on 04/12/2006 10:48:25:
> Dear all,
> I wrote a new pass for gcc. Actually the pass is always executed, but
> I'd like to execute it only if I specify an option from shell (ex. gcc
> --mypass pippo.c). How can I do?
Maybe adding a gate to your pass which is controlled by a new flag;
for example see pass_vectorize in passes.c
and gate_tree_vectorize in tree-ssa-loop.c.
Revital