From nobody Wed Nov 27 04:57:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1702246122; cv=none; d=zohomail.com; s=zohoarc; b=ki4OBGkrpoVcYtbU95ITyCnkiXJQ9cBP95xwJW51b0gkUezZmFbMCUV6pinsFeo9O+UVZAcGqRUWOR6cls6iUzQWBYJlRQDbrFszDcJWS09iLR9r3Wu/y7PkiocJBIJyolfFaX/EWeAuZLPTEWrbbBrL/uppecxwao4UL58CuGo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702246122; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Au4Krg4kZ7j5Ko4bh1XLXuCKSsJKJR37wN7Q6jKPnWE=; b=mtLeK0hP3dE+/pOGznoqziba/Fool4KK2jJYJ21gk1GOceUy92iSpGF9SL4VRE1UIC3dyXe95+cyJWfytg7F127sjNpiFG4US5sMQkqQxQzTDfRYhsFv+5jkanAdJucPjHw4vAuBABaHfLfLvAT4lv+6xtXIuX1m6V7Qdts6ESE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1702246122447454.786784345029; Sun, 10 Dec 2023 14:08:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCRxW-0004z0-Ul; Sun, 10 Dec 2023 17:07:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCRxU-0004yO-QM for qemu-devel@nongnu.org; Sun, 10 Dec 2023 17:07:32 -0500 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rCRxT-0004Zr-9D for qemu-devel@nongnu.org; Sun, 10 Dec 2023 17:07:32 -0500 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6d9f9fbfd11so1110660a34.2 for ; Sun, 10 Dec 2023 14:07:30 -0800 (PST) Received: from taylor-ubuntu.austin.rr.com (068-203-008-061.res.spectrum.com. [68.203.8.61]) by smtp.gmail.com with ESMTPSA id q23-20020a4a6c17000000b0058e200a9065sm1588173ooc.29.2023.12.10.14.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 14:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702246049; x=1702850849; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Au4Krg4kZ7j5Ko4bh1XLXuCKSsJKJR37wN7Q6jKPnWE=; b=KDUKVVnd6RihfUX7JH+omPFvkmTqzpvaczrxf67HR8ecakX0zTd3sVwCdoieS76xNT DKskUIRnH5tb15JozMLmTcu8J/rojuvIdyBTfiWpFdTEj1C7ZCe8fAox7TJ7vALp9ZPY FKb3ECdqg+j9wsmOG6eDsv1bRaH0OfD9elLNnAThZDJl5lEfXdn+CWk4HVsfOvHpyhou /ruGy+/KpPeAt59xjvkypzZZwTEOpKORYxLS75vvM67K7z696CIUlKFnn6qh3xsQ9cPw yltuWV3xIzG3Qahy/KktLEFBvmCwNaMPre/CCSdmKj6wRg1rkyiuqj5GoW2IhMPIgbCW Dd5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702246049; x=1702850849; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Au4Krg4kZ7j5Ko4bh1XLXuCKSsJKJR37wN7Q6jKPnWE=; b=bPpS9XX5JLJ8bX0XVr+9wmyQFG63UpFpvwE1X0MUzEJGODUEfd880yiMhA3p62enAO paN3rpFAGfcJLvifqiJucivNEkjq+fKmj9emFEw/Wl/AfjPdpycGY00GezKf+Fapbfll NateHimpw77E2mpre4TmArp7jFGuYEA6PAa5H44rzmciOBcYPAvYcnop9kWjy3iYS2x+ ssI0hF7feJgiW5JovtA2bnt0sP2NZHFzUBi5H0fO5U+PdGiwt+2Vrf8zlmtH3c4EbMHc OOlM0xbN1rME5fNlgcC0u57wuDw+/3jFo9pgRyzQIuyf22/T4ftqKz5GWp2bKbH9kv+s /liA== X-Gm-Message-State: AOJu0Yy+LyHN1ING8k3TotzEHvMvSI83K/bFlqc010n8XGsrKouLeH3O d3pW/AoneW39b64xNq07LOuEAuHyhWi28A== X-Google-Smtp-Source: AGHT+IEVlror291rUhEqZcLD6/FVYjg77fQq6b5PT0AEluEssnNvXLHhDeX6DZk8BfSjjsje8TUW3A== X-Received: by 2002:a05:6830:1051:b0:6d9:db78:fe99 with SMTP id b17-20020a056830105100b006d9db78fe99mr2536319otp.35.1702246049411; Sun, 10 Dec 2023 14:07:29 -0800 (PST) From: Taylor Simpson To: qemu-devel@nongnu.org Cc: bcain@quicinc.com, quic_mathbern@quicinc.com, sidneym@quicinc.com, quic_mliebel@quicinc.com, richard.henderson@linaro.org, philmd@linaro.org, ale@rev.ng, anjo@rev.ng, ltaylorsimpson@gmail.com Subject: [PATCH v2 9/9] Hexagon (target/hexagon) Remove dead functions from hex_common.py Date: Sun, 10 Dec 2023 15:07:12 -0700 Message-Id: <20231210220712.491494-10-ltaylorsimpson@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231210220712.491494-1-ltaylorsimpson@gmail.com> References: <20231210220712.491494-1-ltaylorsimpson@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=ltaylorsimpson@gmail.com; helo=mail-ot1-x335.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1702246123747100005 These functions are no longer used after making the generators object oriented. Signed-off-by: Taylor Simpson Reviewed-by: Brian Cain --- target/hexagon/hex_common.py | 51 ------------------------------------ 1 file changed, 51 deletions(-) diff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py index ca5e9630c1..195620c7ec 100755 --- a/target/hexagon/hex_common.py +++ b/target/hexagon/hex_common.py @@ -33,9 +33,6 @@ overrides =3D {} # tags with helper overrides idef_parser_enabled =3D {} # tags enabled for idef-parser =20 -def bad_register(regtype, regid): - raise Exception(f"Bad register parse: regtype '{regtype}' regid '{regi= d}'") - # We should do this as a hash for performance, # but to keep order let's keep it as a list. def uniquify(seq): @@ -200,46 +197,6 @@ def get_tagimms(): return dict(zip(tags, list(map(compute_tag_immediates, tags)))) =20 =20 -def is_pair(regid): - return len(regid) =3D=3D 2 - - -def is_single(regid): - return len(regid) =3D=3D 1 - - -def is_written(regid): - return regid[0] in "dexy" - - -def is_writeonly(regid): - return regid[0] in "de" - - -def is_read(regid): - return regid[0] in "stuvwxy" - - -def is_readwrite(regid): - return regid[0] in "xy" - - -def is_scalar_reg(regtype): - return regtype in "RPC" - - -def is_hvx_reg(regtype): - return regtype in "VQ" - - -def is_old_val(regtype, regid, tag): - return regtype + regid + "V" in semdict[tag] - - -def is_new_val(regtype, regid, tag): - return regtype + regid + "N" in semdict[tag] - - def need_slot(tag): if ( "A_CVI_SCATTER" not in attribdict[tag] @@ -280,14 +237,6 @@ def skip_qemu_helper(tag): return tag in overrides.keys() =20 =20 -def is_tmp_result(tag): - return "A_CVI_TMP" in attribdict[tag] or "A_CVI_TMP_DST" in attribdict= [tag] - - -def is_new_result(tag): - return "A_CVI_NEW" in attribdict[tag] - - def is_idef_parser_enabled(tag): return tag in idef_parser_enabled =20 --=20 2.34.1