From patchwork Thu May 7 23:37:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Wilson X-Patchwork-Id: 48138 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD1FA20553 for ; Thu, 7 May 2015 23:38:07 +0000 (UTC) Received: by lbos2 with SMTP id s2sf16359614lbo.2 for ; Thu, 07 May 2015 16:38:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results; bh=F7LT6hdhaVMp5yob7MRwHxS5NDU0QfXrNc9wNN+7zk8=; b=PWDbnKAGceFNwKH+Q+itMmxGFb7SGjOIL9CAVi9rJGAVqcMPwyOvH2rb03iWRrIwrF C/q6cU1wQJHK7z2LY681Y4vEuJqRgrBOlQDN68QEuRQIS1SyUwXuDfbsUyhMYoe3tOM3 wvZsi2M8ADlVsWwcku/5MFbbMGX4oBx7pFq/NN2DMY38AaRenkDikuCjvScQlQVXmamM w0B+XzCfJiEnqY8c/FFB1aJfEbpgO0fc9Nj5C6oice91ErgFMrhHuc4XYc280mBv1N0x HEGciaK1MD/DPP3iEDxxDSfScvIbrNmr3lBuQntSiaED0ufUG6pUe/U/QSLrLBR4VDtP 3ZEg== X-Gm-Message-State: ALoCoQmWdJpSkETT+JQU+gl061Ieukh0VDIB9xCoQWi14VM6rWW0YO4yZpWyQQce5IiHczh6YXS5 X-Received: by 10.113.11.3 with SMTP id ee3mr526702lbd.9.1431041886415; Thu, 07 May 2015 16:38:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.39 with SMTP id kv7ls281689lac.63.gmail; Thu, 07 May 2015 16:38:06 -0700 (PDT) X-Received: by 10.152.25.227 with SMTP id f3mr729180lag.67.1431041886271; Thu, 07 May 2015 16:38:06 -0700 (PDT) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com. [2a00:1450:4010:c03::231]) by mx.google.com with ESMTPS id x10si2186021lax.97.2015.05.07.16.38.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 16:38:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::231 as permitted sender) client-ip=2a00:1450:4010:c03::231; Received: by lagv1 with SMTP id v1so41782297lag.3 for ; Thu, 07 May 2015 16:38:05 -0700 (PDT) X-Received: by 10.152.4.137 with SMTP id k9mr744435lak.29.1431041885757; Thu, 07 May 2015 16:38:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp144119lbb; Thu, 7 May 2015 16:38:04 -0700 (PDT) X-Received: by 10.70.92.193 with SMTP id co1mr1728762pdb.7.1431041883755; Thu, 07 May 2015 16:38:03 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id yf4si4621187pbc.185.2015.05.07.16.38.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 16:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-397168-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 81008 invoked by alias); 7 May 2015 23:37:48 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 80997 invoked by uid 89); 7 May 2015 23:37:47 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f175.google.com Received: from mail-qc0-f175.google.com (HELO mail-qc0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 07 May 2015 23:37:46 +0000 Received: by qcbgu10 with SMTP id gu10so29546941qcb.2 for ; Thu, 07 May 2015 16:37:44 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.148.205 with SMTP id 196mr1541862qhu.93.1431041864510; Thu, 07 May 2015 16:37:44 -0700 (PDT) Received: by 10.140.98.213 with HTTP; Thu, 7 May 2015 16:37:44 -0700 (PDT) Date: Thu, 7 May 2015 16:37:44 -0700 Message-ID: Subject: [PATCH, doc] fix match-and-simplify API doc errors From: Jim Wilson To: "gcc-patches@gcc.gnu.org" X-Original-Sender: jim.wilson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::231 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 I noticed this while reading the match-and-simplify docs. The gimple_simplify API list has two built-in function cases with three tree args. The last one is supposed to have four tree args for a ternary function (3 inputs and one output). Similarly, in the gimple_build API list, the built-in ternary function case with four tree args is missing. Jim 2015-05-07 Jim Wilson * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree arg to last gimple_simplify declaration. Add missing gimple_build declaration for built-in function case with four tree args. Index: doc/match-and-simplify.texi =================================================================== --- doc/match-and-simplify.texi (revision 222861) +++ doc/match-and-simplify.texi (working copy) @@ -39,7 +39,7 @@ @deftypefnx {GIMPLE function} tree gimple_simplify (enum tree_code, tree, tree, tree, tree, gimple_seq *, tree (*)(tree)) @deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, gimple_seq *, tree (*)(tree)) @deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, tree, gimple_seq *, tree (*)(tree)) -@deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, tree, gimple_seq *, tree (*)(tree)) +@deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, tree, tree, gimple_seq *, tree (*)(tree)) The main GIMPLE API entry to the expression simplifications mimicing that of the GENERIC fold_@{unary,binary,ternary@} functions. @end deftypefn @@ -64,6 +64,7 @@ @deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum tree_code, tree, tree, tree, tree, tree (*valueize) (tree) = NULL); @deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum built_in_function, tree, tree, tree (*valueize) (tree) = NULL); @deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum built_in_function, tree, tree, tree, tree (*valueize) (tree) = NULL); +@deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum built_in_function, tree, tree, tree, tree, tree (*valueize) (tree) = NULL); @deftypefnx {GIMPLE function} tree gimple_convert (gimple_seq *, location_t, tree, tree); @end deftypefn