From patchwork Mon May 8 18:13:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Monakov X-Patchwork-Id: 9050 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2340351vqo; Mon, 8 May 2023 11:14:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hnA/jRUiOMsrv7xHKrBDwx2BX4DP7VvtU5h0KK0hl+9AqqhJ4Nygw4dCtivxmd/oeZVE2 X-Received: by 2002:a17:907:802:b0:94f:7edf:8fa1 with SMTP id wv2-20020a170907080200b0094f7edf8fa1mr9325706ejb.32.1683569681392; Mon, 08 May 2023 11:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683569681; cv=none; d=google.com; s=arc-20160816; b=MOahwgc4L9LN3HGdEQJk7lt77bQkUQDBlFDobTfcLSzZvre0VoEg0bjR3JKJgcpSii sVD0OQcYtNAVctiwf8eQPDtcGddIBtwViYVSa/D5PW7i1SlQ55P4pKBPSKjnBba0kOH+ FepPOnMU2ZD75AJERxmnalES3Lho4h62NlMDwWVSVp7TeJ6ryOxfZMfXHK2iaWqJilUk Osj7JC417wtVMjvre07aTe2JUCXBM2MintJ3n3luTLF1PcskBaUay3D2vFwBDwX7jH5e lSffoWVxRtmikdr0tVIsAyiio5DtErsIXx1xUbxrthd74U78YSwhp7LiqPrqxoGN04Va BJmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dkim-filter:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=buPScnCvb8wVNUxSuo6QQskYGieGU2UHwyKzp1P22X8=; b=pZk0NpPb71+6ei6jP2gxQff8tohT8b88PsAU38v/KPpZ3GojollADdcOr4m82IMHwV n3lUvDLFA5+1bAY7EoqJlFkGZYIsj0lg03EVMG2jVuPsZj6p4FY/BXya+H2awxLq86ei eZq7OhCI+NhOqW7V3foN7Mk5h7Z4F8z0B4YyZQLjvekxi4Mo6PIlRDfW6bV8V5K9+Y9V pFJRO3TxaOTFthbYGF1Jb0ucXosfifzXxd7071vjml3JijkH5lc7GHq9jWOgkoYZa5LS uj2qz9bNDLPqVBOZoJYccH98MjdkHZnvJidPmyjGD6XEduxPwTPbHa5miiwdnpFaPzut +oqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tfG+VB6w; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id eq21-20020a170907291500b0094aa492a5d0si308157ejc.956.2023.05.08.11.14.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 11:14:41 -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=pass header.i=@gcc.gnu.org header.s=default header.b=tfG+VB6w; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BCFC03857733 for ; Mon, 8 May 2023 18:14:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCFC03857733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683569647; bh=buPScnCvb8wVNUxSuo6QQskYGieGU2UHwyKzp1P22X8=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tfG+VB6w2uNeQ+B5xUU9IQ59V1D4TYguxFmVU5PnsOYI5ogARaBynqVSJA4gI9DE9 jmH0JKF7I7TulzG4LlAWqQbMUvf8rNvKjRvCDaDChor1b4GL50HVINAAqow6H8HlMB 4l/VALwHK2C1/UQcXlLk7sMtBXbXnCRadEJKe7T8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by sourceware.org (Postfix) with ESMTPS id A08A33858D28 for ; Mon, 8 May 2023 18:13:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A08A33858D28 Received: from localhost.intra.ispras.ru (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTP id DAD9E44C100A; Mon, 8 May 2023 18:13:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru DAD9E44C100A To: gcc-patches@gcc.gnu.org Cc: Alexander Monakov Subject: [PATCH 0/3] Trivial cleanups for genmatch Date: Mon, 8 May 2023 21:13:08 +0300 Message-Id: <20230508181311.25961-1-amonakov@ispras.ru> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, 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: , X-Patchwork-Original-From: Alexander Monakov via Gcc-patches From: Alexander Monakov Reply-To: Alexander Monakov 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-THRID: =?utf-8?q?1765350762049090375?= X-GMAIL-MSGID: =?utf-8?q?1765350762049090375?= I'm trying to study match.pd/genmatch with the eventual goal of improving match-and-simplify code generation. Here's some trivial cleanups for the recent refactoring in the meantime. Alexander Monakov (3): genmatch: clean up emit_func genmatch: clean up showUsage genmatch: fixup get_out_file gcc/genmatch.cc | 159 ++++++++++++++++++++++++------------------------ 1 file changed, 79 insertions(+), 80 deletions(-)