From patchwork Sun Oct 29 21:08:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 739073 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp846244wrt; Sun, 29 Oct 2023 14:10:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEjbDjnU12wsfcCTMULJ4T83bTGZr78hLM5Ttc0l5ijgtoESIujDSUE/I2I/pInewZVEno X-Received: by 2002:a05:6808:1290:b0:3a8:43d5:878b with SMTP id a16-20020a056808129000b003a843d5878bmr10657397oiw.2.1698613828192; Sun, 29 Oct 2023 14:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698613828; cv=none; d=google.com; s=arc-20160816; b=LhDyeR6uE5a5dpd4yPIlxpJuYCTZyRqxshwrpQwfpA1uLvHCzbdJF72NN9zir0gvJ7 kUAUUc7WoSVg07YB9QuLNuplBsW0JRlmIVBmrQn15vsccSM4jTM8peJQp/HZUJYDAzjp ZVU1t5qw5nDRm4NgLokw0S5H5cqvvWYpV47wkXtDLmnEn+DpnpFowqR0yii52Oimbb22 9O5hCxCXoVvP/bbzLR9EAxZtwiYi/+9kVdKyrObjQ5FHeI95LXg80gOtH7Mfu5BORP3H UTLHmqxRih9eKRLT9QdaUwQ0M1Ir/br8OTOkYmUzlMtN0h5UKtD9YBIYXdItPBbOOSxb L89w== 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:to:from :dkim-signature; bh=iueO2fJnVCwUG1PEPwRmtLnpkdEncRsZS5LWEXo7ZOQ=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=PEeZBi7agd0+wCdxrJc3f4I/BM+dPefDWL89mhIp+D8bscao/fOIoZRDJzk7XVoK4a sFto2ZDImZ7OFWTvb5L1WfOnzuPwy3X6S05BHqx2U/fGRpH6TFousvCRTnyQGlSdj7x0 Mz7Il5tzRQHrE9OzHW/u/bla6BCuEzn/opKfeGNKSbXjUmiYO+T4XuXdyU8TO5xDNzW8 2Oa+33so63UtgY1cgPqNF9QY66JgH3qLo5kmf47SLKbjwZdS1VXp7OITDuXS7+/MftSp kpgA62619pLL+iUH3oYcmOoxwSCoWza4KZAM4odW9VtrTfRlMZ9W2lvm2xX7xmg7o24V 6Cpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x3tKYq3v; 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 c15-20020a05620a164f00b007758e274072si4349440qko.42.2023.10.29.14.10.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Oct 2023 14:10:28 -0700 (PDT) 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=x3tKYq3v; 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 1qxD1u-0002i8-4H; Sun, 29 Oct 2023 17:09:06 -0400 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 1qxD1r-0002h6-TQ for qemu-devel@nongnu.org; Sun, 29 Oct 2023 17:09:03 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxD1p-0005FT-Az for qemu-devel@nongnu.org; Sun, 29 Oct 2023 17:09:03 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6ba172c5f3dso3272717b3a.0 for ; Sun, 29 Oct 2023 14:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698613740; x=1699218540; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=iueO2fJnVCwUG1PEPwRmtLnpkdEncRsZS5LWEXo7ZOQ=; b=x3tKYq3vSuWMCFKLlcXeCktDhmi6OyiTFpjXMCmtYGMurUIUiya32wqOe6R1ce3YA1 JqYvXTzKmVWx7QwY910qNOhmeDBVd95dWHMeX+kqWedbM2mUz/FUH4ysdvrhI7ai4HOF QDNFsXsnWDWLt9ybIY3MYyf85ln6urZDbd0O1xvRoeBizeoQ7GQ0Rd+mhpcKKHkWk0/A bj3eGLNN6U3+JHxCvKvkzvVseuFzx9j54LMUembKWJTQFf47T42IeDAnPS04+MuhbmwR BA+WBbLdcnXxEUcNImApYE9g+o7VKst5+i03Q1Uo/c50Y6njx2/dQEfdfviZr1bRHoQJ wPQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698613740; x=1699218540; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iueO2fJnVCwUG1PEPwRmtLnpkdEncRsZS5LWEXo7ZOQ=; b=uKau/OHPsCdiWSn0WsNpQXlB9O3KW2UPDIQ5aE0SpXHG/6pnnPCMyyHUPGYHKvSyBr L2K0DZIw6l/nTrR2Jefg8VJrrVToiy8dISV2fDOwuhGZYN+KicjpTylMJ3Ha0g8lWl1X dm5QD0zpl3JjusQqQxac3j6k8QGMaZkMiN9v/aUzQrk2lEyM+ZB7zzdEMyhx9it8kvJ5 RxeVnUznaV4Z8tfuSDeKEBBrXULPDOClmzTpBYeAcUc30ZDnf2qzdf/7LiopwQ4F6UJd Ak1zutYd+JlC8hJrrLWXDcRHU3xe23IRFzXV0VDKZrzbFmjXDAuBFUmJ7RZhFLcRe4CS YnQg== X-Gm-Message-State: AOJu0YwtQpfQjTG+9QPFc4FMi0rtHsBm1XuL1G67B4jkuCCMT+prBtFH dnWGTVYYpd0RsNWm4K4/uaPCzhY1XO+CiJtB+Po= X-Received: by 2002:a05:6a00:2195:b0:690:c75e:25d7 with SMTP id h21-20020a056a00219500b00690c75e25d7mr6490293pfi.18.1698613739741; Sun, 29 Oct 2023 14:08:59 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id z11-20020aa785cb000000b006c0685422e0sm4622847pfn.214.2023.10.29.14.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 14:08:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 11/11] tcg: Move tcg_temp_free_* out of line Date: Sun, 29 Oct 2023 14:08:48 -0700 Message-Id: <20231029210848.78234-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231029210848.78234-1-richard.henderson@linaro.org> References: <20231029210848.78234-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- include/tcg/tcg-temp-internal.h | 29 +++++------------------------ tcg/tcg.c | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/include/tcg/tcg-temp-internal.h b/include/tcg/tcg-temp-internal.h index 2d45cc45d2..44192c55a9 100644 --- a/include/tcg/tcg-temp-internal.h +++ b/include/tcg/tcg-temp-internal.h @@ -31,30 +31,11 @@ void tcg_temp_free_internal(TCGTemp *); -static inline void tcg_temp_free_i32(TCGv_i32 arg) -{ - tcg_temp_free_internal(tcgv_i32_temp(arg)); -} - -static inline void tcg_temp_free_i64(TCGv_i64 arg) -{ - tcg_temp_free_internal(tcgv_i64_temp(arg)); -} - -static inline void tcg_temp_free_i128(TCGv_i128 arg) -{ - tcg_temp_free_internal(tcgv_i128_temp(arg)); -} - -static inline void tcg_temp_free_ptr(TCGv_ptr arg) -{ - tcg_temp_free_internal(tcgv_ptr_temp(arg)); -} - -static inline void tcg_temp_free_vec(TCGv_vec arg) -{ - tcg_temp_free_internal(tcgv_vec_temp(arg)); -} +void tcg_temp_free_i32(TCGv_i32 arg); +void tcg_temp_free_i64(TCGv_i64 arg); +void tcg_temp_free_i128(TCGv_i128 arg); +void tcg_temp_free_ptr(TCGv_ptr arg); +void tcg_temp_free_vec(TCGv_vec arg); TCGv_i32 tcg_temp_ebb_new_i32(void); TCGv_i64 tcg_temp_ebb_new_i64(void); diff --git a/tcg/tcg.c b/tcg/tcg.c index 29dbb29a0a..4ab6a35398 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -1805,6 +1805,31 @@ void tcg_temp_free_internal(TCGTemp *ts) } } +void tcg_temp_free_i32(TCGv_i32 arg) +{ + tcg_temp_free_internal(tcgv_i32_temp(arg)); +} + +void tcg_temp_free_i64(TCGv_i64 arg) +{ + tcg_temp_free_internal(tcgv_i64_temp(arg)); +} + +void tcg_temp_free_i128(TCGv_i128 arg) +{ + tcg_temp_free_internal(tcgv_i128_temp(arg)); +} + +void tcg_temp_free_ptr(TCGv_ptr arg) +{ + tcg_temp_free_internal(tcgv_ptr_temp(arg)); +} + +void tcg_temp_free_vec(TCGv_vec arg) +{ + tcg_temp_free_internal(tcgv_vec_temp(arg)); +} + TCGTemp *tcg_constant_internal(TCGType type, int64_t val) { TCGContext *s = tcg_ctx;