From patchwork Wed Feb 22 23:27:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 655719 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp37104wrb; Wed, 22 Feb 2023 15:31:07 -0800 (PST) X-Google-Smtp-Source: AK7set+jtQKfFxrpOCbZBpPObvivpVeuNDZ0eaG+peePU3L+Yet7KPbxhjncmfzQH/py4wuESWmD X-Received: by 2002:a05:622a:312:b0:39c:da21:6bb3 with SMTP id q18-20020a05622a031200b0039cda216bb3mr16685101qtw.56.1677108667509; Wed, 22 Feb 2023 15:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677108667; cv=none; d=google.com; s=arc-20160816; b=Uk2T9IOX/ROsWaVbMNqUHk8h/C67LW8p67OZblF7dAJ0vKkgtslBgKxh1mxspmeOLp R/0dqxrD3hhsWgKTNnT6X/O2yjcSE+Vrij77iaVGcAC+qm8vJjU0sDBMEPA90IFvu5vf afSroGNzFvkVY8alry18YbRUKIeLSXaE+LE6KRtVhlbwl5QFyE5PuH5vY+aRIu7A71RN n2/AqNxlcO8fD4W6OGQyTcNfTlUNvYXUnA5kox3h1XfqjGTmjOnOTVl9/JAORvbs+vIt ihiEiKugIJo/VTItyL3j+X8cr8e+njY32JhbIL2i3ZQjwcGwslPPjdqoZ0Ib9NbnFHbU 3qaQ== 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=PxSe5qfzMpN/du2BexkfnQdrlaFKHl+uF8qLksgNZug=; b=E9l6zGjqKzeQyEBp58IFZaKvlYM8B7jYPqSdHhUwTPvlKo2QWuBk6a2r45iJZ8SrKr BZyRJjuhCJQAcMyRsakKrxb2xHWa6pv39DW31zqBHGSX83ucRzgmhZQ2xehv5KcMSyOG fuaFcnE3DlDD0CqTGB/RkmW/MuElVnKVJVUjFSDgo8AfAlKhNxFZG33DuVLLcdySmD7m cIQxnWCyuq7CiO7TKCuNAEgIDvHirIOHnGyACZdziT36Ug4GkKKdJKyT8+r6jKAqA59I K2tOcm5O0/Dhctrx/v8G0gu27yHhipOjJwiRy8950rIv7Ls7DTvrCg+6M5iIE0TOW+ry Crzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F7ksVRvw; 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 d21-20020a05622a15d500b003b63aab7c23si5211477qty.191.2023.02.22.15.31.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Feb 2023 15:31:07 -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=F7ksVRvw; 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 1pUyWl-0000lb-Bm; Wed, 22 Feb 2023 18:27:59 -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 1pUyWj-0000cb-HA for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:57 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUyWh-0005Kz-Oe for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:57 -0500 Received: by mail-pl1-x634.google.com with SMTP id e9so5768064plh.2 for ; Wed, 22 Feb 2023 15:27:55 -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=PxSe5qfzMpN/du2BexkfnQdrlaFKHl+uF8qLksgNZug=; b=F7ksVRvwHz74sUXoxlYMSi8BPdwam0eVSNUsACszXlTYeJBhybmeQv1oP/2Q85ARTM uaw6oEQpncOQ2PNcUM+t9n8prjxNorHS3h/7BdOIjLYy38mVk0jtr4qXsW9CVcScFWru HeZo5qoS8VtiuuXE/bwgS2SWNQmHAgpw5IHOe7aRMUY/7O+w1Fo0uFWZD05i11p04TyB B5rubUWgwxNRyZo9VCzNCpMoVn+mebkWbYM5W2BAlX2SlK8fZnwsf28nJ5mR01Wcf/47 PhexNq9S4teSws3amL3od2PRbO5kfwTci0/Ngs0HmrbxVRjEhm3bxsVptyuWdyqHUY2T 7xjQ== 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=PxSe5qfzMpN/du2BexkfnQdrlaFKHl+uF8qLksgNZug=; b=fk+0+RVlMxKidas1Jv4I/uTTUYaJwZSIpZ8JMZtBRIC58/64+aZYLAUimCn93SLRB9 azKbGp9mM9SduRCN9ODQqOozwdZZ18E0RMdYpSlpFEdtwNJzLvROLYwlzPE3h52XACXk +pir0un4WJjs01Y68GEBP9Hqyht3+fmI6qcykubuf7cU6dk2GMLBg6RMCfLMIs5wUQ4U dRcc1E6qoheHXFZMzaK3yEH7O8JgLVjQpNpyks8jOEsC84kNq81S2dDOpqmAbEdwqx6/ 4d+qqwURnWlAcPxDcPWP1j0r7qPYCeNf5eOEmNbBJ1oe3Hxn5fgf3f7OtVbyuEDZiTmu kHHw== X-Gm-Message-State: AO0yUKV5s0q1ALScr5MyHEXbEi4gYb35M2dU3U0oenzoCRYCBtfSOh9E xvelTjJ3Y8NphPZLY/p38YcO9HdYMl8E1+WHYcY= X-Received: by 2002:a17:90b:1d10:b0:234:c85:9bab with SMTP id on16-20020a17090b1d1000b002340c859babmr9344389pjb.14.1677108474987; Wed, 22 Feb 2023 15:27:54 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id s16-20020a17090ad49000b00234e6d2de3dsm5008918pju.11.2023.02.22.15.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 15:27:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 26/28] tcg: Remove tcg_temp_local_new_*, tcg_const_local_* Date: Wed, 22 Feb 2023 13:27:13 -1000 Message-Id: <20230222232715.15034-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222232715.15034-1-richard.henderson@linaro.org> References: <20230222232715.15034-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- 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 2e220d4040..7e2b954dbc 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -905,12 +905,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) { @@ -931,12 +925,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) { @@ -950,12 +938,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) { @@ -976,12 +958,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 @@ -1084,8 +1060,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); @@ -1113,11 +1087,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 9f1b042ecd..4b244eebc2 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) {