This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC re VIEW_CONVERT_EXPR
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: jason at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Jul 2004 15:56:30 -0700
- Subject: Re: RFC re VIEW_CONVERT_EXPR
- Organization: CodeSourcery, LLC
- References: <10407211817.AA14814@vlsi1.ultra.nyu.edu>
Richard Kenner wrote:
That underlying object, if it's really a LHS, will be either an INDIRECT_REF,
a VAR_DECL, or a PARM_DECL. That makes INDIRECT_REF closer to those _DECL
nodes than to a reference.
BTW, some other ILs omit the INDIRECT_REF in lvalue contexts. In
particular, all lvalues are represented as addresses, so that "i = 3"
would be:
(MODIFY_EXPR (ADDR_EXPR i) (CONST_INT 3))
The point is that you always want the address when you're writing.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com