From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38710 invoked by alias); 17 May 2016 19:20:47 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 38655 invoked by uid 89); 17 May 2016 19:20:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HTo:U*jit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com From: David Malcolm To: gcc-patches@gcc.gnu.org, jit@gcc.gnu.org Cc: David Malcolm Subject: [Committed] jit: document gcc_jit_context_new_call_through_ptr Date: Fri, 01 Jan 2016 00:00:00 -0000 Message-Id: <1463514369-14582-1-git-send-email-dmalcolm@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 17 May 2016 19:20:44 +0000 (UTC) X-SW-Source: 2016-q2/txt/msg00028.txt.bz2 Every version of libgccjit.h in trunk has had gcc_jit_context_new_call_through_ptr, but it wasn't documented until now. Committed to trunk as r236341. gcc/jit/ChangeLog: * docs/topics/expressions.rst (Function calls): Document gcc_jit_context_new_call_through_ptr. * docs/_build/texinfo/libgccjit.texi: Regenerate. --- gcc/jit/docs/topics/expressions.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gcc/jit/docs/topics/expressions.rst b/gcc/jit/docs/topics/expressions.rst index cb65c43..0445332 100644 --- a/gcc/jit/docs/topics/expressions.rst +++ b/gcc/jit/docs/topics/expressions.rst @@ -409,6 +409,22 @@ Function calls printf_func, 2, args)); +.. function:: gcc_jit_rvalue *\ + gcc_jit_context_new_call_through_ptr (gcc_jit_context *ctxt,\ + gcc_jit_location *loc,\ + gcc_jit_rvalue *fn_ptr,\ + int numargs, \ + gcc_jit_rvalue **args) + + Given an rvalue of function pointer type, and the given table of + argument rvalues, construct a call to the function pointer, with the + result as an rvalue. + + .. note:: + + The same caveat as for :c:func:`gcc_jit_context_new_call` applies. + + Type-coercion ************* -- 1.8.5.3