This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: is_predicate_p?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: nathan at codesourcery dot com, dnovillo at redhat dot com, gcc at gcc dot gnu dot org,gdr at codesourcery dot com, jason at redhat dot com
- Date: Sun, 9 Jun 2002 16:50:29 -0400
- Subject: Re: is_predicate_p?
- References: <20020609202729.C87C9F2D44@nile.gnat.com>
On Sun, Jun 09, 2002 at 04:27:29PM -0400, Robert Dewar wrote:
> <<call, it'll always be
> if (is_foo ())
> >>
>
> Yes, and by your same argument if I write
>
> if (stmt_ends_bb (foo))
>
> it is also pretty obvious that this a predicate
Maybe... it could just as easily be returning a bb* to the block that
foo ends or NULL in some exceptional error condition. I'm in favor of
some (any; I don't care) consistence naming convention for all
predicate functions.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer