From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id EE1A838582BD for ; Mon, 15 May 2023 11:03:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE1A838582BD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684148600; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=PS6bE8PRbX45xUTU7VSplxW4qiZ7wMjkgIzgKNT1jHw=; b=IDlsF0p2q3D9f4YZoxar3V2knKIcT+H53WTmfiw5zCmGde7jxI1d8I/x3B85ByTjqJHAQE HYDf3AgbpEPemNW8qOrKwMVXOliBTjTuuvL7i4k5EL7xj5KIEEkpNY3amZYvE0vEV9StY1 4+DSOuVVkvgx9P9TdhoHQbeHmEWHMuw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-591-jEqaRiIDNIaOJG65oZPiaA-1; Mon, 15 May 2023 07:03:15 -0400 X-MC-Unique: jEqaRiIDNIaOJG65oZPiaA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 33546101A555; Mon, 15 May 2023 11:03:15 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E8E101410F23; Mon, 15 May 2023 11:03:14 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 34FB3BSJ175502 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 15 May 2023 13:03:12 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 34FB3BQW175501; Mon, 15 May 2023 13:03:11 +0200 Date: Mon, 15 May 2023 13:03:10 +0200 From: Jakub Jelinek To: Frederik Harwath , gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org, tobias@codesourcery.com, joseph@codesourcery.com, jason@redhat.com Subject: Re: [PATCH 0/7] openmp: OpenMP 5.1 loop transformation directives Message-ID: Reply-To: Jakub Jelinek References: <20230324153046.3996092-1-frederik@codesourcery.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, May 15, 2023 at 12:19:00PM +0200, Jakub Jelinek via Gcc-patches wrote: > For C++ in templates we obviously need to defer that until instantiations, > the constants in the clauses etc. could be template parameters etc. Even in C++ the how many canonical loop nest form loops does this transformation generate can be probably answered during parsing at least for the 5.1/5.2 loop transformations. I think we don't really allow template void foo () { #pragma omp for collapse(2) #pragma omp tile sizes(args...) for (int i = 0; i < 64; i++) for (int j = 0; j < 64; j++) for (int k = 0; k < 64; k++) ; } there how many arguments sizes clause has would be determined only after instantiation. Of course, we don't know the exact values... Jakub