Re: Creating a tree node from gimple statement.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/13/10 16:53 , Swaroop Joshi wrote:
> Thanks, Diego.
> 
> For the conditional expr, I figured out this one way:
> expr = build2 (code, make_node (COND_EXPR), gimple_cond_lhs (stmt),
> gimple_cond_rhs (stmt));
> 
> Any better way ?

No, that should be sufficient.  I suppose that you are doing this for
reasons other than code generation?  These trees that you are creating
are GENERIC and cannot be substituted into GIMPLE.


Diego.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux