This is the mail archive of the
mailing list for the GCC project.
Re: [tuples] gimple_assign_subcode for GIMPLE_SINGLE_RHS
On Sun, Mar 9, 2008 at 14:22, Zdenek Dvorak <email@example.com> wrote:
> extract_ops_from_tree would return GIMPLE_COPY as subcode and
> the whole expression as op1, where's the problem?
Sorry, I misunderstood you. I thought you were advocating *against*
> > I need to introduce GIMPLE_TERNARY_RHS (for ASSERT_EXPR) and
> > GIMPLE_QUATERNARY_RHS (for COND_EXPR),
> How are you going to represent the COND_EXPRs (i.e., where are you
> going to put their comparison operator)?
Well, until 10 seconds ago, I was going to represent 'a = (b > c) ? x : y' with
GIMPLE_ASSIGN <GT_EXPR, b, c, x, y>
*but* that could be confused with 'a = (b > c)', so I have to think
more about it.