From nobody Thu Dec 26 10:39:18 2024 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1675112588; cv=none; d=zohomail.com; s=zohoarc; b=ljnlH3BdtEJ5WMTMjcnqHoANIdr9czXGLiQMa+7/hDsplm1bt8A6V4gtOMocx+0GbNxTPqE7hxIQm5Xb3namDQhbFhmcV6XR6u8w37dnQ50BfRnmFZ8eMc1PaLeP2jczoubjZIFHBWk88rT+nBIsY3CivwUu9QR6vjHRodUIlTs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675112588; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cdYpQpQ5SYl2o8UdmBXZaO2pRh3PKqoimMJzfCpHVmg=; b=SUp7I0GO1gGQuGoI1Y6DSCcknODSy5dchHgr1zGYoVYCsAs0eGwzPRhrf4kwHAjM8MwOuwsZRxrUZTfFc34ifOFWgJg2t1CphOkHICEjKwUnyr/e1y3ElaUBOqkBU+UxDXfN7pVMRMGaYJcx0q2c06sA5Np6DZtMK/huCPm8mX8= 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+importer2=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 1675112588377480.75774493942185; Mon, 30 Jan 2023 13:03:08 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMbG3-0008GZ-JG; Mon, 30 Jan 2023 16:00:07 -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 1pMbFu-00086i-HK for qemu-devel@nongnu.org; Mon, 30 Jan 2023 15:59:58 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMbFs-0005GB-Rg for qemu-devel@nongnu.org; Mon, 30 Jan 2023 15:59:58 -0500 Received: by mail-pl1-x632.google.com with SMTP id m2so7980705plg.4 for ; Mon, 30 Jan 2023 12:59:56 -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.12.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 12:59:54 -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=cdYpQpQ5SYl2o8UdmBXZaO2pRh3PKqoimMJzfCpHVmg=; b=T/FTpHGmWftTaoUCPzcEiz1/FoyA0SxhO3Km1srnWKn30CjHyhb+zTzdhCFLIPkerf DwTLrc5IOCakJw2lLrtrxd9aUMS5MOeAvutbNSit3whP5hTaLlr6ycnySAW68MyMMV+C O3ukPzltuiBc/8wdKlkwBVi41QOg8uFIxpUUUtYX5HhQWD+cYopSqCl0hovVcI0tP0Vp Y+DcQBVzZWFYwpvgqoeQtSD4dKvhU78xNVgq4QMYI3EdowNWJ3hHStsdADuYoddt6woV RYjHliTWDadXe0AW2Owe6I4bv1zFBYCZK14PDatwq5D8leGkRqYqR2/BeULN16/RAGua ecKQ== 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=cdYpQpQ5SYl2o8UdmBXZaO2pRh3PKqoimMJzfCpHVmg=; b=J9/rmIsyl6VywG9DBcduO3riDmPWueuniXX92qINdHslyqDl/6y9q266rFdgQhJIBd nO3DUTD7Rxf3RIgj1ZvWJ9eSEYULU7/BXCQgoXSrPijglCXEYoo8WRq1u4HVJ0YDnN2j kmX7v/TBmQ8C0fAboT1jC7ZEL5T5KZxvAZP12MqM6wiM35tSZ3XbDT0wvgFGFLC5v4ue H0Je93bp7xL+7zMB4uD4Rph8VXIRwm/FQq8UVholWVOCrvuQmfbKaA3E+Kc+cpRPQTVq q2t0uBoMVjtDE3zk56cd9ANLFSkyXQlMxRtJ5yrOker4RTUsVrQwtM/wZ5cRmSx5ctEi XqIw== X-Gm-Message-State: AO0yUKWXLkP0iAXlBs2G7z6mbpjJxvCNNeJjOxI9WvC2AuCvjclZ5zqT EtMzxDySgU6E2u+nwCvr7gKMZP4xyzFCi7h8 X-Google-Smtp-Source: AK7set8l70+kuZomfbkKDzxndppvjnjt9GpP6fQmeiufQ0yiu/OyvyOzktKSeHbCDZ3h16GB+biE4A== X-Received: by 2002:a05:6a20:938c:b0:bc:bae7:642f with SMTP id x12-20020a056a20938c00b000bcbae7642fmr9989251pzh.58.1675112395401; Mon, 30 Jan 2023 12:59:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, cota@braap.org Subject: [PATCH 09/27] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr} Date: Mon, 30 Jan 2023 10:59:17 -1000 Message-Id: <20230130205935.1157347-11-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 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1675112588756100006 Content-Type: text/plain; charset="utf-8" TCG internals will want to be able to allocate and reuse explicitly life-limited temporaries. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/tcg/tcg.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index bbede1e900..fe57373d4b 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -890,6 +890,13 @@ static inline TCGv_i32 tcg_global_mem_new_i32(TCGv_ptr= reg, intptr_t offset, return temp_tcgv_i32(t); } =20 +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_i32 tcg_temp_ebb_new_i32(void) +{ + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB); + return temp_tcgv_i32(t); +} + static inline TCGv_i32 tcg_temp_new_i32(void) { TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I32, TEMP_EBB); @@ -909,6 +916,13 @@ static inline TCGv_i64 tcg_global_mem_new_i64(TCGv_ptr= reg, intptr_t offset, return temp_tcgv_i64(t); } =20 +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_i64 tcg_temp_ebb_new_i64(void) +{ + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB); + return temp_tcgv_i64(t); +} + static inline TCGv_i64 tcg_temp_new_i64(void) { TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I64, TEMP_EBB); @@ -921,6 +935,13 @@ static inline TCGv_i64 tcg_temp_local_new_i64(void) return temp_tcgv_i64(t); } =20 +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_i128 tcg_temp_ebb_new_i128(void) +{ + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB); + return temp_tcgv_i128(t); +} + static inline TCGv_i128 tcg_temp_new_i128(void) { TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_I128, TEMP_EBB); @@ -940,6 +961,13 @@ static inline TCGv_ptr tcg_global_mem_new_ptr(TCGv_ptr= reg, intptr_t offset, return temp_tcgv_ptr(t); } =20 +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_ptr tcg_temp_ebb_new_ptr(void) +{ + TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB); + return temp_tcgv_ptr(t); +} + static inline TCGv_ptr tcg_temp_new_ptr(void) { TCGTemp *t =3D tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB); --=20 2.34.1