This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: usage of properties fields in opt_pass
- From: Ian Lance Taylor <iant at google dot com>
- To: Aravinda <aravindakidambi at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 01 May 2009 17:55:52 -0700
- Subject: Re: usage of properties fields in opt_pass
- References: <26eb53620905011435l570223a1ycc2135d5eb352eb2@mail.gmail.com>
Aravinda <aravindakidambi@gmail.com> writes:
> I am interested in writing a new gimple pass using gcc plugins. Since
> Im new to gcc development, can someone please tell me the usage of the
> three property bitmaps present in the opt_pass struct ?
> (properties_required, properties_provided, properties_destroyed). i.e
> How will I know what should be these properties if I want to write a
> new Gimple optimization pass ?
Those bitmaps are combinations of the TODO_xxx bits defined in
tree-pass.h. Read the comments there, and see the many examples of use
in the gcc source code.
Ian