From patchwork Mon Jan 30 20:59:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 648595 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp1376325pva; Mon, 30 Jan 2023 13:03:53 -0800 (PST) X-Google-Smtp-Source: AK7set8m5tESa1asYXHuOQkKVRouJ3d1pR63P06dW4/G4uXNp38uSIQPyN8Vsr+HOLM6LhSDcvR8 X-Received: by 2002:ac8:5dd4:0:b0:3b9:a372:e456 with SMTP id e20-20020ac85dd4000000b003b9a372e456mr4022095qtx.57.1675112633319; Mon, 30 Jan 2023 13:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675112633; cv=none; d=google.com; s=arc-20160816; b=bUMyUNR4lU4ghsMALcVnxwt0nsFqHduqPCsEijKED/3XEPh8ioufM+R74kBYpGWgHg d5R78gw9Z7Ju5IfB9FIYnMOaU63VGgg0+qBPckwQgEK2iGyY9rqmmcXIlQtfiLna04dQ Y7gvvr8sBa0llRPnun6KNhywoRurPToptpZ+wuVtruzA1R+sh/uP0IHhgj1XyqtYPWtf aMUGYKojqZPZfaJRcA0IkH95avsSbY1jTEsb27Y6TBWDNvAUjAl/A1GBwxgC2hC3I2fT /qtTrooz9aqDK1RiCudRJoaU5SIlFsm7qoEazzHHiNJzfp/c/Jtiw1fUI6weVTWWbKMl pbGQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Gcq1GqPJ1PamHZjvqnlc7yOJ/YfB7s6YLYGHgpLNodU=; b=EVksy9yIkQfFkabQaYFbOsNeDJqg8SRb4pPCHrU3QFb5SXuay9n83fAElm/GVXZCWv I/QsBzoRrEQch87fN9T0ES+R8vjBTxlA+KE9+UNGX5amb8+joj9BMgP8kgc+oLzwHcBO +o5whoV9xk0AjJ2rndryDHbL0IxhSOkW0gQwReZMjCPLLhC9Ht+pT34IMOib62dpNTe6 KvrxgiUq0OtgNnOrrMTbKn1MKP8j5aGZX0u7oBYtHjvlOE7L8qXnOPOMLTv1tBi5/rQ/ uwJv0r1/aKOxFGotwneJ5Y8F/Zvp4e/v+tLWrVLrWOuwUHegBMx4EvXoE935rvy736t7 H0Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gAmtoQBw; 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 c123-20020a379a81000000b0071a7a156eebsi4584889qke.240.2023.01.30.13.03.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2023 13:03:53 -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=gAmtoQBw; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMbGO-0000Qj-PE; Mon, 30 Jan 2023 16:00:28 -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 1pMbGL-0000Hd-4j for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:25 -0500 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMbGJ-0005FO-7H for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:24 -0500 Received: by mail-pg1-x530.google.com with SMTP id 78so8579302pgb.8 for ; Mon, 30 Jan 2023 13:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=Gcq1GqPJ1PamHZjvqnlc7yOJ/YfB7s6YLYGHgpLNodU=; b=gAmtoQBwEGc9tG5N/HtSXtc5Oy36mp9RN7fw2lT/ZFPmhqgZnBYEWOYQbZ7Xxt/LQ+ AAxhnIwiRr7cLS0oYIhoqcQPtCOyfSbh2RHvRIcJF7l8JvoK/qsTplNArPzCGxQSgdzN Y0tGHSY1A54i6I5WqGFETNh1RvhjmXoF+EE/zhmiaqG7CbgTaKxhAIHFK3Q0EQizoNn+ jK0LNXsyKOxOWsZsXOSix4MOhas6kF4TlJEtA9RkUzUZfCh9lfarcNL1TfPzdEIQn5Nm lCaOrs3sikcQS1fq669NIxi0fo8Xc+jxp1/EYguBZ+EdjX5VpvPSPIWh/v0M+5CatJJL UWLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Gcq1GqPJ1PamHZjvqnlc7yOJ/YfB7s6YLYGHgpLNodU=; b=ovtSvZnqtdMahdS253y2UVJZr6j+5iNgTSSuLTF61TyJB06jJ2+Yfriqh+9scO9rGM BuN0kGiFxZE0ta8nY15XGqdzbw7alucPssCFXOMK3S+JKcp2DVT5MKWcT/GwqNgpEY3V obAkTRsepyBsc22UvHez8Xsj7ubPFqvbaFzTz7nVlnEQKd2vBfSklPh/lUtvoPXgFXgb 1l4xSoMsNSUKlpG4Gy2L0ZuxPymPq3AFfti7xdi7AGYut6tAWccUVlk6QmdpOyVqO4W2 ybxJ8j6ge4wRKhSsWRD2IKv1gIieX8iZ/WBr2XOKSMmhYJ6CXFPZDUI+iSdS+8LLGHKH Kogg== X-Gm-Message-State: AO0yUKXxIeiVZ2xtjeQKFktGzT8GqiETQtv6Rmna4KLD/eZqKKUNSEVH RhR+QrLyn7JlOJqGXsmDSZo7bfV1mTG4ZLh3 X-Received: by 2002:a05:6a00:1d96:b0:593:893f:81d7 with SMTP id z22-20020a056a001d9600b00593893f81d7mr9152455pfw.16.1675112422231; Mon, 30 Jan 2023 13:00:22 -0800 (PST) Received: from stoup.. (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id x10-20020aa79a4a000000b00593eb3a5e44sm102933pfj.37.2023.01.30.13.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 13:00:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, cota@braap.org Subject: [PATCH 26/27] tcg: Remove tcg_temp_local_new_*, tcg_const_local_* Date: Mon, 30 Jan 2023 10:59:34 -1000 Message-Id: <20230130205935.1157347-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230130205935.1157347-1-richard.henderson@linaro.org> References: <20230130205935.1157347-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FUZZY_BITCOIN=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org These symbols are now unused. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- include/tcg/tcg-op.h | 2 -- include/tcg/tcg.h | 28 ---------------------------- tcg/tcg.c | 16 ---------------- 3 files changed, 46 deletions(-) diff --git a/include/tcg/tcg-op.h b/include/tcg/tcg-op.h index 66b1461caa..353d430a63 100644 --- a/include/tcg/tcg-op.h +++ b/include/tcg/tcg-op.h @@ -828,14 +828,12 @@ static inline void tcg_gen_plugin_cb_end(void) #if TARGET_LONG_BITS == 32 #define tcg_temp_new() tcg_temp_new_i32() #define tcg_global_mem_new tcg_global_mem_new_i32 -#define tcg_temp_local_new() tcg_temp_local_new_i32() #define tcg_temp_free tcg_temp_free_i32 #define tcg_gen_qemu_ld_tl tcg_gen_qemu_ld_i32 #define tcg_gen_qemu_st_tl tcg_gen_qemu_st_i32 #else #define tcg_temp_new() tcg_temp_new_i64() #define tcg_global_mem_new tcg_global_mem_new_i64 -#define tcg_temp_local_new() tcg_temp_local_new_i64() #define tcg_temp_free tcg_temp_free_i64 #define tcg_gen_qemu_ld_tl tcg_gen_qemu_ld_i64 #define tcg_gen_qemu_st_tl tcg_gen_qemu_st_i64 diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index a6512ac53e..5432e1dbdc 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -903,12 +903,6 @@ static inline TCGv_i32 tcg_temp_new_i32(void) return temp_tcgv_i32(t); } -static inline TCGv_i32 tcg_temp_local_new_i32(void) -{ - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I32, TEMP_TB); - return temp_tcgv_i32(t); -} - static inline TCGv_i64 tcg_global_mem_new_i64(TCGv_ptr reg, intptr_t offset, const char *name) { @@ -929,12 +923,6 @@ static inline TCGv_i64 tcg_temp_new_i64(void) return temp_tcgv_i64(t); } -static inline TCGv_i64 tcg_temp_local_new_i64(void) -{ - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I64, TEMP_TB); - return temp_tcgv_i64(t); -} - /* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ static inline TCGv_i128 tcg_temp_ebb_new_i128(void) { @@ -948,12 +936,6 @@ static inline TCGv_i128 tcg_temp_new_i128(void) return temp_tcgv_i128(t); } -static inline TCGv_i128 tcg_temp_local_new_i128(void) -{ - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_I128, TEMP_TB); - return temp_tcgv_i128(t); -} - static inline TCGv_ptr tcg_global_mem_new_ptr(TCGv_ptr reg, intptr_t offset, const char *name) { @@ -974,12 +956,6 @@ static inline TCGv_ptr tcg_temp_new_ptr(void) return temp_tcgv_ptr(t); } -static inline TCGv_ptr tcg_temp_local_new_ptr(void) -{ - TCGTemp *t = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_TB); - return temp_tcgv_ptr(t); -} - #if defined(CONFIG_DEBUG_TCG) /* If you call tcg_clear_temp_count() at the start of a section of * code which is not supposed to leak any TCG temporaries, then @@ -1082,8 +1058,6 @@ void tcg_optimize(TCGContext *s); /* Allocate a new temporary and initialize it with a constant. */ TCGv_i32 tcg_const_i32(int32_t val); TCGv_i64 tcg_const_i64(int64_t val); -TCGv_i32 tcg_const_local_i32(int32_t val); -TCGv_i64 tcg_const_local_i64(int64_t val); TCGv_vec tcg_const_zeros_vec(TCGType); TCGv_vec tcg_const_ones_vec(TCGType); TCGv_vec tcg_const_zeros_vec_matching(TCGv_vec); @@ -1111,11 +1085,9 @@ TCGv_vec tcg_constant_vec_matching(TCGv_vec match, unsigned vece, int64_t val); #if UINTPTR_MAX == UINT32_MAX # define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i32((intptr_t)(x))) -# define tcg_const_local_ptr(x) ((TCGv_ptr)tcg_const_local_i32((intptr_t)(x))) # define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i32((intptr_t)(x))) #else # define tcg_const_ptr(x) ((TCGv_ptr)tcg_const_i64((intptr_t)(x))) -# define tcg_const_local_ptr(x) ((TCGv_ptr)tcg_const_local_i64((intptr_t)(x))) # define tcg_constant_ptr(x) ((TCGv_ptr)tcg_constant_i64((intptr_t)(x))) #endif diff --git a/tcg/tcg.c b/tcg/tcg.c index 1dbba58167..0191ba486c 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1476,22 +1476,6 @@ TCGv_i64 tcg_const_i64(int64_t val) return t0; } -TCGv_i32 tcg_const_local_i32(int32_t val) -{ - TCGv_i32 t0; - t0 = tcg_temp_local_new_i32(); - tcg_gen_movi_i32(t0, val); - return t0; -} - -TCGv_i64 tcg_const_local_i64(int64_t val) -{ - TCGv_i64 t0; - t0 = tcg_temp_local_new_i64(); - tcg_gen_movi_i64(t0, val); - return t0; -} - #if defined(CONFIG_DEBUG_TCG) void tcg_clear_temp_count(void) {