From patchwork Wed Dec 23 06:01:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 346969 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5942292jai; Tue, 22 Dec 2020 22:07:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcKT/wgsPKikT9HRBU+GemYFb4eWFO38kAr/sOqgiUMyI8Olc12+lPElvPUyJu6wz74KTz X-Received: by 2002:a25:3211:: with SMTP id y17mr33250317yby.301.1608703650809; Tue, 22 Dec 2020 22:07:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608703650; cv=none; d=google.com; s=arc-20160816; b=KuMI5P+6In0qe+i63vXuDJUtf9ITaqf7NGL3uYQ0BvxhzkTPpExnxDoBc2q2m96Ao4 trNtqk47mF0jyPCHGqL9UwSHkf/3oyjcuzyMYhdp5xP83kZ+wrRNkwgN7CrAgu7vBNp9 wSWmyEPbyk63QNYJc1YnyQJzWotsHirew9D5VxqMSDSk6NKipSK3gwmnofGIql683qnZ r56XBOXWHLjZIN2I8z8dRuODN+j1b0LKn0QZJvgKL7lb2Z1+q4VWhz6BUEUNNWZbNOPh nW7ThTxyAGdLfIZClWZye0QrbAlTeII2Ybp3RiITCqtJYrhONM75Fo9kPb4/UTkpWeBg 1fNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=dfIXmumI0ng96dnj0JiYVKRUUb1x0N5xRVZ04a3Obt8=; b=rMRRnQSKrZ4K0g/tghgkNgjrqdhupo7LH1/wdUpfyOypqGfV0w316FAR6LPhoi9z4G dhQTprrMCIlsTUpYfJHEvMrL+4IudGcJ9l1SPfTIk7pYGQIj7KbWRufaYxRhXIv57fj3 b9fdyRYzsuqYSfBPm8NDe9mWLbTPDp0kHrRp4FmDaxyD0OngLMBOSO9nqNalrEEopHRF qT6as/X/TLLTbUtS0y2wilv13D2ry6SDmHSfL6UK79d0Qe75EslOkJ6cXERQislOocyk NVB8PnvFLTrMsO5EC26ONEMHeaF2tw3s3Q0mOPcZTwRn6YqSmEk6QBfSe38xZgDt6dC1 DF9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jyGJRMj8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w193si21307218ybg.166.2020.12.22.22.07.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Dec 2020 22:07:30 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jyGJRMj8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krxJ4-00041c-9t for patch@linaro.org; Wed, 23 Dec 2020 01:07:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krxE5-0008Pw-N7 for qemu-devel@nongnu.org; Wed, 23 Dec 2020 01:02:21 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:51372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krxDs-0000KA-Hm for qemu-devel@nongnu.org; Wed, 23 Dec 2020 01:02:19 -0500 Received: by mail-pj1-x1030.google.com with SMTP id z12so2481843pjn.1 for ; Tue, 22 Dec 2020 22:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=dfIXmumI0ng96dnj0JiYVKRUUb1x0N5xRVZ04a3Obt8=; b=jyGJRMj8ji8ISEbfHAuY9AYoeU+xd20Et/t7bEpHC/EY/GfCHpIT4RHrgkHB2X6yW9 pg8WUojfY3x8pPg1NtCiGAHZpnMVoF5Odccy2xT7n9j3333gE7O25HHsbPgYZ2t2hLo1 73Q4DZ1YETgPROX7kv2JC6uHRNkdGvIggViLOZ89WKwnhEJGsSkp/oNI/hKlFStGwfKA CC6ef6NzSIjjNFj2D8nxYs5vPb8aOdAR65KwUwVdbw3N8xPPFlV2xUK8tEfiS35qvNnr +tyM55NYM91TWyMfU1fcmFPJ1g7aCAm57I5Zc3fHCTmGM2UlD7mNPILPbKmYwjU66mCJ A6Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=dfIXmumI0ng96dnj0JiYVKRUUb1x0N5xRVZ04a3Obt8=; b=iIItSy4M8nymsCEriFUW4OAx7KZ8qgYJ0hZsM2BAA5+406wg+gWZUonGS5fdAhlRwi ebosynJA1URaot7OAQAhCZYHsL8AJm4kz4uFweujDrVrOz4iHi66Jhvhe4UhygItBpXR Q4x4MhvZVymeQXQhynRUz6owsTZxnJ/YCzBWwm33HXVCYbnP/uXJxpRfoLC0zpZ1qb77 BIHmY4id0r88jA22f0NkbUOL+XwJHJm+04WWvXsBhL2xWSErH/74GqUOJPf1csuljlgI hQfs92dvGnRR7lD3Cf41n9J88gnkgcecF+whCNrFF7lmgTbWyr6/eir9bxpmlWMmCGek lMUw== X-Gm-Message-State: AOAM533F9U08x85suoFvISqp7I64Td1oK5Wq6YmkOcGYmR6aa3la6wKx BXKQJYmJVsxtZI2YF3O+8yp0eIVUIrFK/Q== X-Received: by 2002:a17:90a:cb8d:: with SMTP id a13mr24818364pju.155.1608703326041; Tue, 22 Dec 2020 22:02:06 -0800 (PST) Received: from localhost.localdomain (174-21-139-177.tukw.qwest.net. [174.21.139.177]) by smtp.gmail.com with ESMTPSA id s1sm21943620pfb.103.2020.12.22.22.02.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 22:02:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 00/22] tcg: backend constraints cleanup Date: Tue, 22 Dec 2020 22:01:42 -0800 Message-Id: <20201223060204.576856-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This pulls out constraints to a couple of headers, which reduces the boilerplate just a little. I have a longer term goal, which this aids, in which I move some of the startup-time debug-only validation into build/compile-time validation. But not yet. r~ Richard Henderson (22): tcg/tci: Drop L and S constraints tcg/i386: Move constraint type check to tcg_target_const_match tcg: Split out target constraints to tcg-target-constr.h tcg/arm: Convert to tcg-target-constr.h tcg/aarch64: Convert to tcg-target-constr.h tcg/ppc: Convert to tcg-target-constr.h tcg/tci: Convert to tcg-target-constr.h tcg/mips: Convert to tcg-target-constr.h tcg/riscv: Convert to tcg-target-constr.h tcg/s390: Convert to tcg-target-constr.h tcg/sparc: Convert to tcg-target-constr.h tcg: Remove TCG_TARGET_CONSTR_H tcg: Split out constraint sets to tcg-target-conset.h tcg/aarch64: Convert to tcg-target-conset.h tcg/arm: Convert to tcg-target-conset.h tcg/mips: Convert to tcg-target-conset.h tcg/ppc: Convert to tcg-target-conset.h tcg/riscv: Convert to tcg-target-conset.h tcg/s390: Convert to tcg-target-conset.h tcg/sparc: Convert to tcg-target-conset.h tcg/tci: Convert to tcg-target-conset.h tcg: Remove TCG_TARGET_CONSET_H tcg/aarch64/tcg-target-conset.h | 31 +++ tcg/aarch64/tcg-target-constr.h | 27 +++ tcg/arm/tcg-target-conset.h | 30 +++ tcg/arm/tcg-target-constr.h | 31 +++ tcg/i386/tcg-target-conset.h | 44 ++++ tcg/i386/tcg-target-constr.h | 26 +++ tcg/mips/tcg-target-conset.h | 31 +++ tcg/mips/tcg-target-constr.h | 31 +++ tcg/ppc/tcg-target-conset.h | 37 ++++ tcg/ppc/tcg-target-constr.h | 37 ++++ tcg/riscv/tcg-target-conset.h | 25 +++ tcg/riscv/tcg-target-constr.h | 24 +++ tcg/s390/tcg-target-conset.h | 24 +++ tcg/s390/tcg-target-constr.h | 15 ++ tcg/sparc/tcg-target-conset.h | 27 +++ tcg/sparc/tcg-target-constr.h | 16 ++ tcg/tci/tcg-target-conset.h | 20 ++ tcg/tci/tcg-target-constr.h | 9 + tcg/tcg.c | 140 ++++++++++++- tcg/aarch64/tcg-target.c.inc | 132 +++--------- tcg/arm/tcg-target.c.inc | 154 +++----------- tcg/i386/tcg-target.c.inc | 281 ++++++++----------------- tcg/mips/tcg-target.c.inc | 152 +++----------- tcg/ppc/tcg-target.c.inc | 194 +++++------------ tcg/riscv/tcg-target.c.inc | 122 ++--------- tcg/s390/tcg-target.c.inc | 161 +++++--------- tcg/sparc/tcg-target.c.inc | 114 ++-------- tcg/tci/tcg-target.c.inc | 359 +++++++++++--------------------- 28 files changed, 1064 insertions(+), 1230 deletions(-) create mode 100644 tcg/aarch64/tcg-target-conset.h create mode 100644 tcg/aarch64/tcg-target-constr.h create mode 100644 tcg/arm/tcg-target-conset.h create mode 100644 tcg/arm/tcg-target-constr.h create mode 100644 tcg/i386/tcg-target-conset.h create mode 100644 tcg/i386/tcg-target-constr.h create mode 100644 tcg/mips/tcg-target-conset.h create mode 100644 tcg/mips/tcg-target-constr.h create mode 100644 tcg/ppc/tcg-target-conset.h create mode 100644 tcg/ppc/tcg-target-constr.h create mode 100644 tcg/riscv/tcg-target-conset.h create mode 100644 tcg/riscv/tcg-target-constr.h create mode 100644 tcg/s390/tcg-target-conset.h create mode 100644 tcg/s390/tcg-target-constr.h create mode 100644 tcg/sparc/tcg-target-conset.h create mode 100644 tcg/sparc/tcg-target-constr.h create mode 100644 tcg/tci/tcg-target-conset.h create mode 100644 tcg/tci/tcg-target-constr.h -- 2.25.1