From patchwork Mon Jul 25 09:03:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 157 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:b5d6:b0:2b9:3548:2db5 with SMTP id v22csp1646240pxt; Mon, 25 Jul 2022 06:18:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sY08zTHRJQwHeYF6hTrRa/lLtdBswgUoxuia0q6djLxD04Fjn//zcjmsaQIToTcRNr5bNe X-Received: by 2002:a17:907:1ddd:b0:72b:49ff:d39e with SMTP id og29-20020a1709071ddd00b0072b49ffd39emr9983501ejc.500.1658755137264; Mon, 25 Jul 2022 06:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658755137; cv=none; d=google.com; s=arc-20160816; b=k1WptWMXuVr7TPbzji4RLhHGejS1fOLh+aeDyigFjV6bQCj9POshuGubF37d5LoGKT Y5/GSF3tXV5HZVXrhd/CxeGj08IlpPxuyWlXPj8S5UB82psb0XwP8FfUNPCeo7NACZe3 F+1d5pBiexk6AB2c7XW6ro059pwNKq88KU9vavHbkz4J/E7IoixgptG7eOr8CPqLlcCs hgBBNQF0/cXPcgsLniVf4d7DH7TA3PeNKkjzgs1He/Resi2vGN+7u6fa6jFPayWUohcw 1sisVzzE+ffercCJ9oHZPkFXEoHltYeiq3HtHV5P8OIpnwzda+wDiyhb6DTzIVP7qCKt ZEug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:subject:date:from:references :in-reply-to:message-id:resent-message-id:resent-date:resent-cc :resent-to:resent-from:dkim-signature:dkim-signature:dmarc-filter :delivered-to; bh=kvZlT7saHWAzJbvSxbf5YronIrLscvWiSXKM39ZULK8=; b=xiQtkECW1FEtlFGHj1HK3TSetfYabGDznALQ8N6XyFHrxGU3T2K0eoKY3u8XKbubmT T53WKdpCoRM9v8THS33iLI3UArDJMIjy2R8CKbRd7jnb1g+iTIVIRq/SvkGMNwv5GB/A fuLbVua8L2A0Rrl2Zv3yg5JJyMsBjnJI1tYdmBZPC1ahDkqBb3md2zL6qBz6xYuo9qHB UPwogeZY4C3lxHknsrqVqfXnYzq46ITTEbuSeEW3Jvq40kUW88QbN1hpHhGtCJ/zgRSY aYCKU7lscrr3duTXwxoh1XQyaGmxKWuWU3MV/8PkfMRrYINsfsiA2v3NTHH9yz3R1qyx C+kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.cz header.s=susede2_rsa header.b=KYESNSzV; dkim=neutral (no key) header.i=@gcc.gnu.org header.b=vUvTR1xe; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id j7-20020a50ed07000000b0043a9041dd22si12261888eds.297.2022.07.25.06.18.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 06:18:57 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@suse.cz header.s=susede2_rsa header.b=KYESNSzV; dkim=neutral (no key) header.i=@gcc.gnu.org header.b=vUvTR1xe; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 701993824589 for ; Mon, 25 Jul 2022 13:16:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id B862B3838216 for ; Mon, 25 Jul 2022 13:15:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B862B3838216 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 00CED1FD50; Mon, 25 Jul 2022 13:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1658754919; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: resent-to:resent-cc:resent-from:resent-message-id: in-reply-to:in-reply-to:references:references; bh=kvZlT7saHWAzJbvSxbf5YronIrLscvWiSXKM39ZULK8=; b=KYESNSzV0E+NlnTWstExussNI9Eqio3q7jNLukyWq4GC+VtyGPfPJA5hNxkemgxRB21rxF xXTs43HsCFLwIPepkXWsISROuPr2H+OxrszoU9RKmpBdMxczuRF2wm4gt6rzgzUxFFh99g fMhDek+9+hU6nnRlvhkBH9fO7PlHEwc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1658754919; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: resent-to:resent-cc:resent-from:resent-message-id: in-reply-to:in-reply-to:references:references; bh=kvZlT7saHWAzJbvSxbf5YronIrLscvWiSXKM39ZULK8=; b=vUvTR1xebLub1cGdlWoOm4zbU7tKM2smQpicbusQxAQAfz3B6AgempyG0oufu3LnnLzyJS rWciSH9ACpoHooDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DA31913AD7; Mon, 25 Jul 2022 13:15:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id DrX+M2aX3mIXdgAAMHmgww (envelope-from ); Mon, 25 Jul 2022 13:15:18 +0000 Resent-From: =?utf-8?q?Martin_Li=C5=A1ka?= Resent-To: GCC Patches Resent-Cc: David Malcolm Resent-Date: Mon, 25 Jul 2022 15:15:18 +0200 Resent-Message-ID: Message-Id: <2c70aa99533c104dfc14d8ccd8198ed156b1d9a5.1658754788.git.mliska@suse.cz> In-Reply-To: References: From: Martin Liska Date: Mon, 25 Jul 2022 11:03:23 +0200 Subject: [PATCH 2/7] jit, docs: replace c:type:`int_type` with :expr:`int_type` To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-LABELS: =?utf-8?b?IlxcSW1wb3J0YW50Ig==?= X-GMAIL-THRID: =?utf-8?q?1739330826708107300?= X-GMAIL-MSGID: =?utf-8?q?1739330826708107300?= Use expression that work fine for basic type. gcc/jit/ChangeLog: * docs/cp/topics/expressions.rst: Use :expr: for basic types. * docs/topics/compilation.rst: Likewise. * docs/topics/expressions.rst: Likewise. * docs/topics/function-pointers.rst: Likewise. --- gcc/jit/docs/cp/topics/expressions.rst | 6 +++--- gcc/jit/docs/topics/compilation.rst | 4 ++-- gcc/jit/docs/topics/expressions.rst | 6 +++--- gcc/jit/docs/topics/function-pointers.rst | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/jit/docs/cp/topics/expressions.rst b/gcc/jit/docs/cp/topics/expressions.rst index 239e004371e..003dbce8991 100644 --- a/gcc/jit/docs/cp/topics/expressions.rst +++ b/gcc/jit/docs/cp/topics/expressions.rst @@ -57,14 +57,14 @@ Simple expressions int value) const Given a numeric type (integer or floating point), build an rvalue for - the given constant :c:type:`int` value. + the given constant :expr:`int` value. .. function:: gccjit::rvalue \ gccjit::context::new_rvalue (gccjit::type numeric_type, \ long value) const Given a numeric type (integer or floating point), build an rvalue for - the given constant :c:type:`long` value. + the given constant :expr:`long` value. .. function:: gccjit::rvalue \ gccjit::context::zero (gccjit::type numeric_type) const @@ -91,7 +91,7 @@ Simple expressions double value) const Given a numeric type (integer or floating point), build an rvalue for - the given constant :c:type:`double` value. + the given constant :expr:`double` value. .. function:: gccjit::rvalue \ gccjit::context::new_rvalue (gccjit::type pointer_type, \ diff --git a/gcc/jit/docs/topics/compilation.rst b/gcc/jit/docs/topics/compilation.rst index c5fa6eb0faf..91b9c2533cf 100644 --- a/gcc/jit/docs/topics/compilation.rst +++ b/gcc/jit/docs/topics/compilation.rst @@ -98,8 +98,8 @@ In-memory compilation If the global is found, the result will need to be cast to a pointer of the correct type before it can be called. - This is a *pointer* to the global, so e.g. for an :c:type:`int` this is - an :c:type:`int *`. + This is a *pointer* to the global, so e.g. for an :expr:`int` this is + an :expr:`int *`. For example, given an ``int foo;`` created this way: diff --git a/gcc/jit/docs/topics/expressions.rst b/gcc/jit/docs/topics/expressions.rst index 49b7e14ae2b..00e2ec8cfeb 100644 --- a/gcc/jit/docs/topics/expressions.rst +++ b/gcc/jit/docs/topics/expressions.rst @@ -60,7 +60,7 @@ Simple expressions int value) Given a numeric type (integer or floating point), build an rvalue for - the given constant :c:type:`int` value. + the given constant :expr:`int` value. .. function:: gcc_jit_rvalue *\ gcc_jit_context_new_rvalue_from_long (gcc_jit_context *ctxt, \ @@ -68,7 +68,7 @@ Simple expressions long value) Given a numeric type (integer or floating point), build an rvalue for - the given constant :c:type:`long` value. + the given constant :expr:`long` value. .. function:: gcc_jit_rvalue *gcc_jit_context_zero (gcc_jit_context *ctxt, \ gcc_jit_type *numeric_type) @@ -96,7 +96,7 @@ Simple expressions double value) Given a numeric type (integer or floating point), build an rvalue for - the given constant :c:type:`double` value. + the given constant :expr:`double` value. .. function:: gcc_jit_rvalue *\ gcc_jit_context_new_rvalue_from_ptr (gcc_jit_context *ctxt, \ diff --git a/gcc/jit/docs/topics/function-pointers.rst b/gcc/jit/docs/topics/function-pointers.rst index e6f9970a7a7..dde49215853 100644 --- a/gcc/jit/docs/topics/function-pointers.rst +++ b/gcc/jit/docs/topics/function-pointers.rst @@ -48,7 +48,7 @@ to it in :c:type:`gcc_jit_rvalue` form using type obtained using :c:func:`gcc_jit_context_new_function_ptr_type`. Here's an example of creating a function pointer type corresponding to C's -:c:type:`void (*) (int, int, int)`: +:expr:`void (*) (int, int, int)`: .. code-block:: c