From nobody Tue Feb 10 10:20:57 2026 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677108690; cv=none; d=zohomail.com; s=zohoarc; b=C/up6Zic9Ng6XVkoPK2FtqT338HIVI15C7ynparZ/zwKQTHtxQpTtCn0jPkYQToEcHnCEippi5NSIQQPb28zGj0Q0f3NnLVq3MbHjbx0vJLlia8yGOGXrSOaHIrGyJmSxzFsDu9PiJ83EkAib8T//lyA43VQdyQ1E+pTso/p8WQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677108690; h=Content-Type: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=VjZP4LY1Wxefy+0rLrks1q4QR8IjH+TMsA5bjteWWKA=; b=BptX07Bw1ASoJr1/sgwgjSc6z8LM08hvXSCpBHl5xLP+1w4FcMJNdLu9exGbW/xb6NoTVu84VVhrGzUAoSntHq0gwfKvztjEOioV5M4mHCFN4K245jmLhsY7gL93Herrz3kwBgcgZOyqM5kZv2KZGHTsxIRk7dWynDu7z+4Smhg= 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 1677108690163232.58881511722143; Wed, 22 Feb 2023 15:31:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUyWN-0000RN-5y; Wed, 22 Feb 2023 18:27:35 -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 1pUyWL-0000Qm-6d for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:33 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUyWJ-0005K7-Is for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:32 -0500 Received: by mail-pj1-x102c.google.com with SMTP id m3-20020a17090ade0300b00229eec90a7fso2871143pjv.0 for ; Wed, 22 Feb 2023 15:27:31 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 15:27:29 -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=VjZP4LY1Wxefy+0rLrks1q4QR8IjH+TMsA5bjteWWKA=; b=TimWdTiw/3U7ur/tP9E6ByhNdznVb1WA8KiiVMq/kaurolfDyY5+m3A+Lf2gs/7tDE go0gPGxvxpixEZPzKFkLVeEgVAR0F3IlBdtSvZpzkwaNQxb5EAPq0y8ithqpkMaLByCw nGjISBR3+lmoNHM3xzz7KMGlTL87TimYQBxvIMzNL+882/0pIK0Xa9uWpiAlV2bkS/iU fekxBItZUHUD/U2XCwvHkDOX8jghojbYMJSTAp2YfNlYL2Z+LRuh8eioGmstfQ8uoXp/ 1vun04FJAh04gFoZEiL57ezx6CTg4nxfKQJ9+xz54P/YNzTlJsioK10APHv2Eudx5V1q xhlw== 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=VjZP4LY1Wxefy+0rLrks1q4QR8IjH+TMsA5bjteWWKA=; b=ElKJOTEyZXTnhtKGMRFAsKToS1VNyeZ41ZLvPr0WWSwzbEzcYQmAG2o/w4Jg0G99UW qhi/qSroTreoPaZ2OXC7FAV9sWGqyWwwPSlVgPVS1kZIVYblkin7mnGHqLq1KxEYEf8e /FesVvyuMoA3hVfTgD1lGv32NX6wzR0iqZOhbuNHBSIDzJlSmGhdPb4qEXwb9+Qm0Bnv 9u4/1qNGTVqSjWY59RXQhneyu3+4F3BUFSMqExIoUGXv/cryQFQnGEFdn6N7S1SyR4eb un0hUxHPnjzGRolwcs7EgTm2rdlQi5o63QVCbbvPaUSMzho4DmYagafidFlNQOBDSU1H uMFw== X-Gm-Message-State: AO0yUKXYeV9y1+8VqTj30Ds5YOGjMlpQEUVFfb/EZr+55p/7SrKEekgF DFbbxfgaCMR7zx6XGfA5VKF+MfF7a1IZlDIakgM= X-Google-Smtp-Source: AK7set9D3xBZh+MPBBbycZv+uZZ1FCa1Gq0eUf1EcJmRMgYkv639xWLpR9kJLGaq3rOJN4S1G7JSwA== X-Received: by 2002:a17:90b:4ac5:b0:22b:f0d4:9e1e with SMTP id mh5-20020a17090b4ac500b0022bf0d49e1emr8880107pjb.8.1677108450093; Wed, 22 Feb 2023 15:27:30 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 09/28] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr} Date: Wed, 22 Feb 2023 13:26:56 -1000 Message-Id: <20230222232715.15034-10-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 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::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677108691816100002 TCG internals will want to be able to allocate and reuse explicitly life-limited temporaries. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- include/tcg/tcg.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 8d896bcbf4..0c2041bcf7 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -892,6 +892,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); @@ -911,6 +918,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); @@ -923,6 +937,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); @@ -942,6 +963,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