From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31602 invoked by alias); 15 Nov 2012 19:34:17 -0000 Received: (qmail 31443 invoked by uid 22791); 15 Nov 2012 19:34:16 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-ie0-f175.google.com (HELO mail-ie0-f175.google.com) (209.85.223.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Nov 2012 19:34:09 +0000 Received: by mail-ie0-f175.google.com with SMTP id c13so2689614ieb.20 for ; Thu, 15 Nov 2012 11:34:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=/fyM9eXPS6orz/AG+bX/3JdRI+ciB313IarA8GIYwYg=; b=dy8u7YOVXZgOGgb3KESh1v3ayx4yNxfpCR+ehQHnyWWuvwoxZ5bCrHAokaBfJDmA5C 6Zp43BRUFK/uwAPKp9mmrLozS3xXd/UOYHBgODPEmV3IMtAh+f+6PuOO8im2ZamDQS97 KCYdNzSeZIDu/Nigkhh6JAW38sYX/VtkN6sPpPZ1RQxghXDH3Ievoo1jdQFwYtlOg34/ AIX/VnosXMRs0N4NJzcI1OT4dmn8He1Q8sxi6Cr2G6KbUDUtmiQhw7T+5HHCyFQVl1EF Oa9i970YZLTP+cgG7svfmKVEhIwkDLnu6NmmoVlXa7NIx8aOJDUw4jOOemHdtqO4TM91 mEkA== MIME-Version: 1.0 Received: by 10.50.183.200 with SMTP id eo8mr949072igc.54.1353008048293; Thu, 15 Nov 2012 11:34:08 -0800 (PST) Received: by 10.231.72.4 with HTTP; Thu, 15 Nov 2012 11:34:08 -0800 (PST) In-Reply-To: <20121115060635.GA14640@ours.starynkevitch.net> References: <20121115060635.GA14640@ours.starynkevitch.net> Date: Thu, 15 Nov 2012 19:34:00 -0000 Message-ID: Subject: Re: Simplifying Gimple Generation From: Lawrence Crowl To: Basile Starynkevitch Cc: "gcc@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQn4vsahHbwe4+6YxA36OKQ5aeQnU2V55IgR2ecRjB2hKfLmyr7RYzT4CewGIwo8AbfxzAcL62DMsEEtnfdisCmGtPvRDXUmLRJUP0qC1ZPRlnnQg6G028FC4yjSbtflvU3qnCKD/7I/mdPZXDUL4PE46xYAyYBWaYmhxPbbhs+lHT+nJM28u9BNcrJUjbeEVd85KtOs X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00236.txt.bz2 On 11/14/12, Basile Starynkevitch wrote: > On Wed, Nov 14, 2012 at 05:13:12PM -0800, Lawrence Crowl wrote: >> Diego and I seek your comments on the following (loose) proposal. >> >> >> Generating gimple and tree expressions require lots of detail, >> which is hard to remember and easy to get wrong. There is some >> amount of boilerplate code that can, in most cases, be reduced and >> managed automatically. >> >> We will add a set of helper classes to be used as local variables >> to manage the details of handling the existing types. That is, >> a layer over 'gimple_build_*'. We intend to provide helpers for >> those facilities that are both commonly used and have room for >> significant simplification. > > I do agree (in principle) on this and the previous (debugging-like) > proposal, but: > > do you target the 4.8 release? (I believe not, since its stage 1 is > ending) Not 4.8. > do you intend to remove the current way of doing? Definitely not. Our intent is to provide an easier tool that accomplishes the common tasks. We expect that tricky stuff will use the existing interfaces. -- Lawrence Crowl