From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7288 invoked by alias); 17 Oct 2004 21:04:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 7281 invoked from network); 17 Oct 2004 21:04:14 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 17 Oct 2004 21:04:14 -0000 Received: (qmail 6778 invoked from network); 17 Oct 2004 21:04:14 -0000 Received: from taltos.codesourcery.com (zack@66.92.218.83) by mail.codesourcery.com with DES-CBC3-SHA encrypted SMTP; 17 Oct 2004 21:04:14 -0000 Received: by taltos.codesourcery.com (sSMTP sendmail emulation); Sun, 17 Oct 2004 14:04:13 -0700 To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Cc: dberlin@dberlin.org, gcc-patches@gcc.gnu.org Subject: Re: [patch] for PR 18040 References: <10410172054.AA01431@vlsi1.ultra.nyu.edu> From: Zack Weinberg Date: Sun, 17 Oct 2004 21:10:00 -0000 In-Reply-To: <10410172054.AA01431@vlsi1.ultra.nyu.edu> (Richard Kenner's message of "Sun, 17 Oct 04 16:54:27 EDT") Message-ID: <87zn2lrr8y.fsf@codesourcery.com> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-10/txt/msg01414.txt.bz2 kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes: > 2. Make them mandatory inside component_refs, so that you *always* have > them there. This is what LLVM does with getelementptr. Each piece has a > type specifier > > I don't follow. Since every tree node has a type, we always have it. > It seems that all you need is an access function that strips off the > conversion and you have the same form. What he's saying is that (and all other reference nodes) would implicitly convert FIELD to TYPE, if that's not FIELD's intrinsic type. I think this makes a hell of a lot of sense, personally. zw