This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tuples] Accessors for RHS of assignments
- From: Diego Novillo <dnovillo at google dot com>
- To: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, Christopher Matthews <chrismatthews at google dot com>, Andrew Macleod <amacleod at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 20 Jun 2007 22:24:40 -0400
- Subject: Re: [tuples] Accessors for RHS of assignments
- References: <46796F96.1080407@google.com> <20070620231306.GB28141@kam.mff.cuni.cz>
On 6/20/07 7:13 PM, Zdenek Dvorak wrote:
> I may be missing something, but surely having the accessors uniform
> would be better? So that I can write things like
>
> /* Process all operands. */
> for (i = 0; i < n_operands (gs); i++)
> process (gs_assign_rhs (gs, i));
Yeah, we already have that. It's just that 'i' is never > 3. operand 0
is the LHS, operand 1 and operand 2 are the RHS. My issue was with the
functions that are more commonly invoked to deal with each RHS operand.