From patchwork Wed Mar 1 02:56:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657775 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3270579wrb; Tue, 28 Feb 2023 19:01:49 -0800 (PST) X-Google-Smtp-Source: AK7set+jB/YSJSh936SDbdTHGJjF8gd2WjtjmqsBsF/3hqLlbzddv1VxhFMa7g2TEHQASOK1qoDy X-Received: by 2002:a05:622a:1ba4:b0:3bf:d15b:f70d with SMTP id bp36-20020a05622a1ba400b003bfd15bf70dmr8734635qtb.23.1677639709698; Tue, 28 Feb 2023 19:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677639709; cv=none; d=google.com; s=arc-20160816; b=p3Og95WA/MJo9X+SQITrYZT+hUeq7Zw/ev+58bHPOdsiaDs/IB6cvBtK0H0vc8NNjh ZxvrBG2gGqj4spxFHwk2ER1tvPXZnT+slebYHBGPaLPEvL7T1HgtC67lGlmtG4sxW8SC nFG5w+KghHWWQT4eq11OcO8fG8kcpsG+4aiT+I69OFFsQ4ptvJUx8KN7ydl2umrLSOxF cSYlhiudePoB2H0GCztnzBSe/xZBHRbh9MMt4q9rQ+3OI8dvpPBIjF9To5t9A8gpr9vj Ioqk4zVpImjSBwBqYm9XawXVPcATd3VFdmX62XKTskWD5zb3lHFvZ0SOTtpzl7yb4zU5 haGg== 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=VjZP4LY1Wxefy+0rLrks1q4QR8IjH+TMsA5bjteWWKA=; b=i3b5WCQggFhYQaSc8O5o8tMw3bsOtUWx4gpGBMzSjzVJ6UkR6VEL4cSaf/Mfdgoc8J TunVJb83d9HtNaNL/hEs6oVNCgaXCPcqCGuEjoIr7ut/qbe4P5itaoU2SIVNBa8YHJsQ GCL8vNMqpEhJA54F2L0MJj9hrAjZHAKUpTjVBODCEbeZM8t1qUmv97906SGsUIBrgISs ppSJF97YYwVqaf7VtNIb09I7/IT+ZAphOitVcFxneNrIz9qR1fHipX0HVJJei9XAMEiO WeKnAT6yzf0kdWbeqhfvo5xcnlrCtaNtbGvkABU1+Gz99W2pE1wV0aezbJvC4gJoU85y txOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RlQ8Ff8a; 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 i7-20020ac85c07000000b003b9b98b50cfsi10071312qti.231.2023.02.28.19.01.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:01:49 -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=RlQ8Ff8a; 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 1pXCil-0003ic-1C; Tue, 28 Feb 2023 22:01: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 1pXCia-0002Vg-Ou for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:24 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCiD-0004G4-I2 for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:03 -0500 Received: by mail-pj1-x1029.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso10554526pjs.3 for ; Tue, 28 Feb 2023 19:01:01 -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=RlQ8Ff8aq2HCK/GevMBICcuE/8UzeBx3WZRF6EmpKWnwL7RC8/L1mTiivpVSkqwDB6 J5R0+SqXBIb7qTvaqHJEpK2rZiEOBPRvcn9H4xz6nBBroVc4d6UfN6T0pxMQPqfZad0I YQ6t9M4KneGoRlLazf0+aqw4morBHLBBloozcpQOtvQ/Mdb6UpG49AMCVLzfGVn9nkGu 3CNDCdE0DS0U1/VjaRrAWxu7eS4m77+rJAmlGRLLCe9D8ACmwt5CRmRem0baHjC2imkw HVrPoDcUKjfagJ6kN7dy1J9Q20hx4vUyagOY6gk8qtNzvU3PsvVxANAS6Q+9I997bq0k rS+g== 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=lqBAYouB91o9b5WxkYpNpLox/ue6mnGhJgTfxavwc2Ye82QzMYOPHNmw+PfXiEezIx 0onFXMgs5voTFITZQdGd5gA6OQItibfsZWMHHz+q9klXM8aIYw6ot28EY7L2Nm6C7J68 69ROrNmb1kxRIS6Hk9MMBrW9Qqg4DJj/gDPzlU/TXqViwJNNcWNldEr5q/TCY4AB3Af2 rZDl6aisdG1i2vZ4nlfX8QNNroCZXKQnAj6iUH5c6TLquuEXf4VhrZ9oKY2SWgv/ZssT Vo7ITZvw6pCR0p2XBd9LftuYbNwXaMJ8Cq2EhgdHXEWRgyaaGv9+NCyEJveW/s5f4Res m9Pg== X-Gm-Message-State: AO0yUKUKcn/89Gn8qWn6fWvsjZtktYTkXNKg84Rxurea+o54ah08keUa 09lISQ5Tn2JhDxE76VP6hjDlQEn1OiEAkVHRjfs= X-Received: by 2002:a17:903:27d0:b0:19e:21d0:5b95 with SMTP id km16-20020a17090327d000b0019e21d05b95mr4547491plb.10.1677639660001; Tue, 28 Feb 2023 19:01:00 -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 r11-20020a170902be0b00b0019aca830869sm7181444pls.238.2023.02.28.19.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:00:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 43/62] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr} Date: Tue, 28 Feb 2023 16:56:24 -1000 Message-Id: <20230301025643.1227244-44-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301025643.1227244-1-richard.henderson@linaro.org> References: <20230301025643.1227244-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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 TCG internals will want to be able to allocate and reuse explicitly life-limited temporaries. Reviewed-by: Philippe Mathieu-Daudé 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); } +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_i32 tcg_temp_ebb_new_i32(void) +{ + TCGTemp *t = 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 = 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); } +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_i64 tcg_temp_ebb_new_i64(void) +{ + TCGTemp *t = 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 = 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); } +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_i128 tcg_temp_ebb_new_i128(void) +{ + TCGTemp *t = 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 = 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); } +/* Used only by tcg infrastructure: tcg-op.c or plugin-gen.c */ +static inline TCGv_ptr tcg_temp_ebb_new_ptr(void) +{ + TCGTemp *t = 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 = tcg_temp_new_internal(TCG_TYPE_PTR, TEMP_EBB);