From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14207 invoked by alias); 16 Nov 2012 13:15:12 -0000 Received: (qmail 14069 invoked by uid 22791); 16 Nov 2012 13:15:11 -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-ea0-f175.google.com (HELO mail-ea0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Nov 2012 13:15:05 +0000 Received: by mail-ea0-f175.google.com with SMTP id h11so1135943eaa.20 for ; Fri, 16 Nov 2012 05:15:04 -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=0vnmdXV0aFIjOetbfgsBoER5WuffPI7NiKJpWPuwcqg=; b=ovd6pxM8g+bgSe3Y9rov4rCQjDnuWKhe6Bh6qMBdhuqidh/UDROtS8qSgfb+VBpO+M DuKUUS2mVE1bvfca87kdooa2NsL3zWn4NmIVH6bponV0v3Ab015wh0exUqUlIl4o/DMw 74/9rh/GgN3zWXfPT+bbqBFVMkt86wend4pa+M8z37luir7ZwpJm+dWckSHY1B9oihOM OSswprChzj6G99VgHFtAalLltV/Mqs+IRu4G+a7l0Fa9JUxiFTq5u3WGlt9cKUUMfWCN yuwrxYYP3WkWMyWLBEb4DpJoB9xaiObvJA6/Mm+Ye2qZ5JVnUcgWR9S6mCnvuLhgfu1X 1daw== MIME-Version: 1.0 Received: by 10.14.184.1 with SMTP id r1mr13679040eem.4.1353071704296; Fri, 16 Nov 2012 05:15:04 -0800 (PST) Received: by 10.223.161.9 with HTTP; Fri, 16 Nov 2012 05:15:03 -0800 (PST) In-Reply-To: <20121115060635.GA14640@ours.starynkevitch.net> References: <20121115060635.GA14640@ours.starynkevitch.net> Date: Fri, 16 Nov 2012 13:15:00 -0000 Message-ID: Subject: Re: Simplifying Gimple Generation From: Diego Novillo To: Basile Starynkevitch Cc: Lawrence Crowl , "gcc@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQm26OYF0Gj308ItVF1tMIRfKi5vFx/etp4DfIADDQo+WiuWQZQ58Q2zicca+YCmEj5qtdtpwKl8iRzw+pl0YSU+t7aYJgr5aNF+RY5v2iOWHjcM62HE/2q8iHcNxwoXdvKk7WPm/5my8ZZ7Ff7dfpGQUP1DdY7HdCdeOiC2Jj/E19j364ZcPAugUFG83+bCrl7sSIxI 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/msg00251.txt.bz2 On Thu, Nov 15, 2012 at 1:06 AM, 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) No, this would be a 4.9 feature. > do you intend to remove the current way of doing? No. The simplified interface will necessarily not be able to handle all kinds of IL creation. It is a layer over the low-level routines that helps with the common cases. Diego.