From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sourceware.org (Postfix) with ESMTPS id 5B3663858C24 for ; Fri, 5 Apr 2024 11:58:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5B3663858C24 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=irisa.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irisa.fr ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5B3663858C24 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.134.164.83 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712318288; cv=none; b=Xr2Qak2pUcd2E3Nutz3Lel4Fr8trnT0bdKXvnu2AC8pMZcezMVRodd9Fy+8Ds+2QqosTfnJRta23i+2OGBz77yZalpJnuWbrVMYVzaJCxoqYamA0I6eJRoWCQhdnccPWoS8JRR9ryDYvbpU+njU455CNZ7k93R0uMB2zPtVUKEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712318288; c=relaxed/simple; bh=eYPed21y3GozujmzqK4HO61mhAhThXSuxhosalE+Xtk=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=Vb7kYQnyJxseZ4L4/x7bJSq4fUL5kDYtRx7Kwob9jRwDtMfAqeERfBZPA2a1evq8Ww/1+yDHmHfdMWh+pU0eMbiiIsMMzJz1r66IRjEC+EkNyGBmiH1PHh9MfoGjZ/QFUfUJ4mGRtCsqAY4TIGynljyXHrhMPGmM13v9pikOdvY= ARC-Authentication-Results: i=1; server2.sourceware.org Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none X-Ironport-Dmarc-Check-Result: validskip X-IronPort-AV: E=Sophos;i="6.07,181,1708383600"; d="scan'208";a="160145542" Received: from ptb-5cg22835fs.irisa.fr (HELO [131.254.21.198]) ([131.254.21.198]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2024 13:58:04 +0200 Message-ID: <7b63c4ff-b32e-44ad-9b25-3f8f2d138056@irisa.fr> Date: Fri, 5 Apr 2024 13:58:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: gcc@gcc.gnu.org Content-Language: fr, en-US From: Pierrick Philippe Subject: [gimple-ssa] result_decl and ssa_name Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi all, I do have a question regarding ssa_name and result_decl. For example on the following gimple function: int f () {   int x;   int D.2747;   int _2;   :   x_1 = 42;   _2 = x_1;   : :   return _2; } On the above example, using the macro SSA_NAME_VAR() on _2 does not yield anything usable. Neither to call ssa_default_def() on the result of the result_decl obtain through macro DECL_RESULT(). Is there a way to get the ssa_name corresponding to the result_decl of a function obtained through the use of macro DECL_RESULT() on a fn_decl? And/or the other way around? I.e., from the returned ssa_name of a function to the result_decl of that function? I totally might be missing something here, but I cannot figure out what. Thanks for your time, Pierrick