Message ID | 20240712141155.255186-1-parras@baylibre.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 90E3138323E7 for <patchwork@sourceware.org>; Fri, 12 Jul 2024 14:14:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id DAB743858C48 for <gcc-patches@gcc.gnu.org>; Fri, 12 Jul 2024 14:12:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DAB743858C48 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DAB743858C48 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::22d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720793559; cv=none; b=ianiNr5qbgl+AToe8+CGN9MxVy5T5uo8jSBG8CJlvraxL1p+DLJssnLE+n2IDJNn2U9yk2QQtCnnVEszr3mgvtLrKbMJYE+3AEY8TaQgT7SCMU21+J7EfEu8nCFXZurIBLKBTiO+B9iw4X8KaFHdjMh02Aax9s2mH/FQxnKFWGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720793559; c=relaxed/simple; bh=P3g1pP8ENA47M9MgN5yaLX7bcjk1kNfbGyN2vYrJgwo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mFMNQ0nCzSdfabtirkxHmjbEvkryYuWVwY6q6RPvSliLrIGAuHUhjr77P2XG3peQtFeZOgoyKrHjX93eWbd09yvKUgavLXONNTzhSXrQtrrZnbUMBUWYLL1avCfQaCwnmbhcfRxBNQbaXutOE5N9yu9jaq7R39MiIRUeCJ4wuN0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2eede876fccso94791fa.1 for <gcc-patches@gcc.gnu.org>; Fri, 12 Jul 2024 07:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1720793554; x=1721398354; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xdrLceU3+zxIkgjNBbbCn4aAweCYOppWS01T5+OiyIw=; b=xha53BfaGlR1VssLKFSnjv8ocJUkkXEHYw8gEMHpGDopbkGdSvnZojzhFkc99/lTuY c9kBW7OrB8Bo0/yx8XjPFqBSKnD3ksbckouTt6XnuclRGqD6i5QoX4HaMSmBRT59pzzn rBXDbQ0nYTbuQq/VAUmNQxFkWGmGtjo01xpokRX63+Q1zxJTUtQ63niy7lO2K1yZ7Mfe lERGtjO3b7LMiGQqyblgQwF14Vji7OiFHh71m/PkAzxpaNYaQfei8GzeZPWnxDkwLQwr Ta/dm/oloCLA5caAOmJ0O6JzzUQPZczCaIsUJyZM7trrJUrU7KPXVLrrJuzLcWpXf0D5 dBNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720793554; x=1721398354; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xdrLceU3+zxIkgjNBbbCn4aAweCYOppWS01T5+OiyIw=; b=P2cFVlaFldSvP2eojwe/lJ0F64VMLk/4Ik6p+4O9chakMUHHuUGiOOdMJtTKNpGNHK Dbi0xiKa2hZGe2HLIanv34DZHbuT/3ZTVEuFFTRykw4otTUxPAvk4hX2wuQxAxEi5DCp IN2dYMNjfu4ufY+0FQHzmTs4KZnoS887VJgxMS1S14QgESrJ2QsMmyL+Mk5Qm9ryB14K VUVuDas/VsThFo0s8tbeRb25nZm/HHjgeH48CQQ+nlBmDIokl6nbdmjjt+gm6s71KYmr u7dIphXzwzrkkpSCX9Nv9zvJHijvH+ci/ZFcRIVH8n2h1IgJh68wRMHWh6UQT4aQ1ZNp 7Y0w== X-Gm-Message-State: AOJu0YytIoB2PJpOX+wR3hsqRcd65WoRqCfXZsKdakrwo+yezTraM9Dp Fg1HyR/bgSYkfXreedt/gHcaREHUQMTeYWz8AM6LK7wsx8Ctks3wwaHRXgKvc9yn7AhLJ8w813T y X-Google-Smtp-Source: AGHT+IHqP2Ule9s9NdtiUBzZEXuezWa7RYNmr3qL1lFXIBn7GY28JNhi6xX07ELcfMJ0edco7mCCvw== X-Received: by 2002:a2e:8691:0:b0:2ee:6a72:f006 with SMTP id 38308e7fff4ca-2eeb30e3ademr76410761fa.21.1720793554096; Fri, 12 Jul 2024 07:12:34 -0700 (PDT) Received: from localhost.localdomain ([169.155.255.128]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4279f25b946sm24680325e9.19.2024.07.12.07.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jul 2024 07:12:33 -0700 (PDT) From: Paul-Antoine Arras <parras@baylibre.com> To: gcc-patches@gcc.gnu.org Cc: Paul-Antoine Arras <parras@baylibre.com> Subject: [PATCH v2 0/8] OpenMP: dispatch + adjust_args support Date: Fri, 12 Jul 2024 16:11:47 +0200 Message-ID: <20240712141155.255186-1-parras@baylibre.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_BLACK autolearn=no 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
OpenMP: dispatch + adjust_args support
|
|
Message
Paul-Antoine Arras
July 12, 2024, 2:11 p.m. UTC
This is a respin of my patchset implementing both the `dispatch` construct and the `adjust_args` clause to the `declare variant` directive. The original submission can be found there: https://gcc.gnu.org/pipermail/gcc-patches/2024-May/652819.html. Beside being rebased, this new iteration has the following changes: * Add a commit to fix an incorrect warning with `gfc_error`; * Add a testcase (xfailed due to PR/115271) to ensure that `adjust_args` works across TUs in Fortran; * Rule out `c_funptr` for `need_device_ptr`; * Fix some warnings turned into errors during bootstrapping. Paul-Antoine Arras (8): Fix warnings for tree formats in gfc_error OpenMP: dispatch + adjust_args tree data structures and front-end interfaces OpenMP: middle-end support for dispatch + adjust_args OpenMP: C front-end support for dispatch + adjust_args OpenMP: C++ front-end support for dispatch + adjust_args OpenMP: common C/C++ testcases for dispatch + adjust_args OpenMP: Fortran front-end support for dispatch + adjust_args OpenMP: update documentation for dispatch and adjust_args gcc/builtin-types.def | 1 + gcc/c-family/c-attribs.cc | 2 + gcc/c-family/c-format.cc | 4 + gcc/c-family/c-omp.cc | 4 +- gcc/c-family/c-pragma.cc | 1 + gcc/c-family/c-pragma.h | 3 + gcc/c/c-parser.cc | 496 ++++++++++++-- gcc/c/c-typeck.cc | 2 + gcc/cp/decl.cc | 33 + gcc/cp/parser.cc | 612 ++++++++++++++++-- gcc/cp/pt.cc | 3 + gcc/cp/semantics.cc | 20 + gcc/fortran/dump-parse-tree.cc | 17 + gcc/fortran/frontend-passes.cc | 2 + gcc/fortran/gfortran.h | 11 +- gcc/fortran/match.h | 1 + gcc/fortran/openmp.cc | 201 +++++- gcc/fortran/parse.cc | 39 +- gcc/fortran/resolve.cc | 2 + gcc/fortran/st.cc | 1 + gcc/fortran/trans-decl.cc | 9 +- gcc/fortran/trans-openmp.cc | 161 +++++ gcc/fortran/trans.cc | 1 + gcc/fortran/types.def | 1 + gcc/gimple-low.cc | 1 + gcc/gimple-pretty-print.cc | 33 + gcc/gimple-walk.cc | 1 + gcc/gimple.cc | 20 + gcc/gimple.def | 5 + gcc/gimple.h | 33 +- gcc/gimplify.cc | 412 +++++++++++- gcc/gimplify.h | 2 + gcc/omp-builtins.def | 6 + gcc/omp-expand.cc | 18 + gcc/omp-general.cc | 16 +- gcc/omp-low.cc | 35 + gcc/omp-selectors.h | 3 + .../c-c++-common/gomp/adjust-args-1.c | 30 + .../c-c++-common/gomp/adjust-args-2.c | 31 + .../c-c++-common/gomp/declare-variant-2.c | 4 +- gcc/testsuite/c-c++-common/gomp/dispatch-1.c | 65 ++ gcc/testsuite/c-c++-common/gomp/dispatch-2.c | 28 + gcc/testsuite/c-c++-common/gomp/dispatch-3.c | 15 + gcc/testsuite/c-c++-common/gomp/dispatch-4.c | 18 + gcc/testsuite/c-c++-common/gomp/dispatch-5.c | 26 + gcc/testsuite/c-c++-common/gomp/dispatch-6.c | 19 + gcc/testsuite/c-c++-common/gomp/dispatch-7.c | 28 + gcc/testsuite/g++.dg/gomp/adjust-args-1.C | 39 ++ gcc/testsuite/g++.dg/gomp/adjust-args-2.C | 51 ++ gcc/testsuite/g++.dg/gomp/dispatch-1.C | 53 ++ gcc/testsuite/g++.dg/gomp/dispatch-2.C | 62 ++ gcc/testsuite/gcc.dg/gomp/adjust-args-1.c | 32 + gcc/testsuite/gcc.dg/gomp/dispatch-1.c | 53 ++ .../gfortran.dg/gomp/adjust-args-1.f90 | 63 ++ .../gfortran.dg/gomp/adjust-args-2.f90 | 18 + .../gfortran.dg/gomp/adjust-args-3.f90 | 26 + .../gfortran.dg/gomp/adjust-args-4.f90 | 58 ++ .../gfortran.dg/gomp/adjust-args-5.f90 | 58 ++ .../gfortran.dg/gomp/declare-variant-2.f90 | 6 +- .../gomp/declare-variant-21-aux.f90 | 18 + .../gfortran.dg/gomp/declare-variant-21.f90 | 28 + gcc/testsuite/gfortran.dg/gomp/dispatch-1.f90 | 77 +++ gcc/testsuite/gfortran.dg/gomp/dispatch-2.f90 | 79 +++ gcc/testsuite/gfortran.dg/gomp/dispatch-3.f90 | 39 ++ gcc/testsuite/gfortran.dg/gomp/dispatch-4.f90 | 19 + gcc/testsuite/gfortran.dg/gomp/dispatch-5.f90 | 24 + gcc/testsuite/gfortran.dg/gomp/dispatch-6.f90 | 38 ++ gcc/testsuite/gfortran.dg/gomp/dispatch-7.f90 | 27 + gcc/testsuite/gfortran.dg/gomp/dispatch-8.f90 | 39 ++ gcc/tree-core.h | 7 + gcc/tree-inline.cc | 7 + gcc/tree-pretty-print.cc | 21 + gcc/tree.cc | 4 + gcc/tree.def | 5 + gcc/tree.h | 7 + libgomp/libgomp.texi | 4 +- libgomp/testsuite/libgomp.c/dispatch-1.c | 76 +++ 77 files changed, 3373 insertions(+), 141 deletions(-) create mode 100644 gcc/testsuite/c-c++-common/gomp/adjust-args-1.c create mode 100644 gcc/testsuite/c-c++-common/gomp/adjust-args-2.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-1.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-2.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-3.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-4.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-5.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-6.c create mode 100644 gcc/testsuite/c-c++-common/gomp/dispatch-7.c create mode 100644 gcc/testsuite/g++.dg/gomp/adjust-args-1.C create mode 100644 gcc/testsuite/g++.dg/gomp/adjust-args-2.C create mode 100644 gcc/testsuite/g++.dg/gomp/dispatch-1.C create mode 100644 gcc/testsuite/g++.dg/gomp/dispatch-2.C create mode 100644 gcc/testsuite/gcc.dg/gomp/adjust-args-1.c create mode 100644 gcc/testsuite/gcc.dg/gomp/dispatch-1.c create mode 100644 gcc/testsuite/gfortran.dg/gomp/adjust-args-1.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/adjust-args-2.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/adjust-args-3.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/adjust-args-4.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/adjust-args-5.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/declare-variant-21-aux.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/declare-variant-21.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-1.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-2.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-3.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-4.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-5.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-6.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-7.f90 create mode 100644 gcc/testsuite/gfortran.dg/gomp/dispatch-8.f90 create mode 100644 libgomp/testsuite/libgomp.c/dispatch-1.c