From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sender3-pp-o99.zoho.com (sender3-pp-o99.zoho.com [136.143.184.99]) by sourceware.org (Postfix) with ESMTPS id D7DAA3858D32; Sun, 12 Feb 2023 00:30:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D7DAA3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=zoho.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zoho.com ARC-Seal: i=1; a=rsa-sha256; t=1676161840; cv=none; d=zohomail.com; s=zohoarc; b=GQo+zuoyJslMAsPJsx1r29j33hNn7cNqZp6wBNe3AK8P16sgFAlkKUX95wnjKoj/RjNlMJEinWMvsipSRz0yLhwz1fRY4ir5gIeiaT2TShguHVE9JvR9MbKfeJ2edhJAYIUHDJ8B1e1QXReORRWfVtZk0731kXt50P+z0ew3P7o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676161840; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=5bmTUhY8qP/K+Vwz+kg+N13UtkrRBnhpBymxZhx3ne8=; b=hFEAq9WWWjtkObkP1cZ4M0Yi93ziQ2/02+6o7AgAtEKbUDwHc3thKqTc7D8ifp9B8+Oz+bPE/9+rAXDttdZfa607qxm52avHwi+kNd1tCLOhfZ1zT/4MIzWID1NeKZTgoma2FFuL8B3aKbOYxCd0np3nMTJG5Z0DS7O/zfCpO+8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=bouanto@zoho.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1676161840; s=zm2022; d=zoho.com; i=bouanto@zoho.com; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=5bmTUhY8qP/K+Vwz+kg+N13UtkrRBnhpBymxZhx3ne8=; b=LZ90jDSFw/7BAoFLOS1TK8SCovaOPYFe71FZO4VQeSZ+Vr4gi8+opGkHFrC8jGT6 zsyzhYj7ij1X3f2islQK2KhB3sgfMjryv8khAx1o6hYhATffwLwK3EdXg34X21yDvmE aiY4zexZ86yt92OT9gYsEQSI6tGlJsgyuo72NTCQ= Received: from [192.168.1.174] (38.87.11.6 [38.87.11.6]) by mx.zohomail.com with SMTPS id 1676161837546527.2393561986345; Sat, 11 Feb 2023 16:30:37 -0800 (PST) Message-ID: <184790403bd8227db4054b9e672afbfdf879dc0c.camel@zoho.com> Subject: [PATCH] libgccjit: Add support for machine-dependent builtins From: Antoni Boucher To: jit@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: David Malcolm Date: Sat, 11 Feb 2023 19:30:35 -0500 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,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 List-Id: Hi. This patch adds support for machine-dependent builtins in libgccjit (bug 108762). There are two things I don't like in this patch: 1. There are a few functions copied from the C frontend (common_mark_addressable_vec and a few others). 2. Getting a target builtin only works from the second compilation since the type information is recorded at the first compilation. I couldn't find a way to get the builtin data without using the langhook. It is necessary to get the type information for type checking and instrospection. Any idea how to fix these issues? Thanks for the review.