From patchwork Wed Jun 1 18:39:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1638118 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LCyfr0qVMz9s0r for ; Thu, 2 Jun 2022 04:41:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C33C7382FC2C for ; Wed, 1 Jun 2022 18:41:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 563A238356BE; Wed, 1 Jun 2022 18:39:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 563A238356BE Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.91,269,1647331200"; d="scan'208";a="76666085" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 01 Jun 2022 10:39:38 -0800 IronPort-SDR: Awly+0qtSkVyncABVOXKFJaWw5KXeLPPFEQuGYPVIL33oy0lzuIL6kKQkF7ukGzb6aKMWXa6VZ EbjEem9/jwC7J3AzVeWgfBfxDYwC8Du1fzKd0+Xiq4/4mu2svYlCey/uk+ZQA8tyhpmQJn/lSx hNJwEN8wq+8ew/yIHhDB/cHNi9AoH9iIdDzokGqm7eneL0X1hL+zIJv5g/MSyFymwjgGANsuvE gH6sByfmf1el6KhD6zLmUTtmpdyT11PPc5PUu+GHcH/SL8r61iNuGExV/CUxgF56MhZYQXgOqb 8Cc= From: Julian Brown To: Subject: [PATCH 3/6] OpenMP: Rename strip_components_and_deref to omp_get_root_term Date: Wed, 1 Jun 2022 11:39:21 -0700 Message-ID: <0c556b55ed9c10cf03a41e1d0e2a63bbfcf6b74d.1654107784.git.julian@codesourcery.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , Cc: Jakub Jelinek , Tobias Burnus , fortran@gcc.gnu.org Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This patch renames the strip_components_and_deref function to better describe what it does. I'll fold this into the originating patch series during rework. 2022-06-01 Julian Brown gcc/ * gimplify.cc (strip_components_and_deref): Rename to... (omp_get_root_term): This. --- gcc/gimplify.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc index cb6877b5009..1646fdaa9b8 100644 --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -8768,7 +8768,7 @@ omp_get_base_pointer (tree expr) /* Remove COMPONENT_REFS and indirections from EXPR. */ static tree -strip_components_and_deref (tree expr) +omp_get_root_term (tree expr) { while (TREE_CODE (expr) == COMPONENT_REF || TREE_CODE (expr) == INDIRECT_REF @@ -11168,7 +11168,7 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p, if (OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_STRUCT) { - tree base = strip_components_and_deref (decl); + tree base = omp_get_root_term (decl); if (DECL_P (base)) { decl = base;