From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by sourceware.org (Postfix) with ESMTPS id E47C5388F400 for ; Tue, 5 May 2020 22:57:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E47C5388F400 Received: by mail-qk1-x732.google.com with SMTP id b188so62826qkd.9 for ; Tue, 05 May 2020 15:57:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SY1mtmAwBsZ/XxznJrRpC9aTIAfsejQVBcqijiKXMDs=; b=IFgChkJ7Z/SyusdyTp+t+q48l+NHzx5xBesy6xEKRoBWAU6JIgprz6oQMgavLWWFxO U4VWAVkhrOs8151SxiFL47TjkxAcvw9mX+Kkaj0lWw+3WCYZWjnTWz465lFHEZNcBSk7 e9bOKPrXvto47ECAmMr+W7QRYTiFAdWvlMWuTO/MpGiEtcoyVLFJfSGlmSxfbE/JWq1B IPKnYfAHGykiDl+Qg39bg7Fx3sHiiINPtZV9kNB2nwJ7hi5Vj3SlSlr59bnwbpehF4Ta tNKTpkkwa24LGIrdRCBvMicqBaUWxq+cp3ZSmKZMvPkvkB2mEx+yBpC36/o1mp/doEIR aj+A== X-Gm-Message-State: AGi0PuaEss5zhvOFZZ7UtqpBZ+J/2tHN0RwiyIyRXgRxySoQGoKI7Gi1 u2J+RvQoIOu9xWD/3y4XMuzDWqnhDXWodtjoENoctAU2 X-Google-Smtp-Source: APiQypILH5Impz9KuhXFeVlytXmBhrVGooR5M/GplbeTRUEU4WMgeEi8kwelT8AJmerggF4NntCpQkDaI2Nx3BWgwY4= X-Received: by 2002:a37:7ac2:: with SMTP id v185mr5686789qkc.386.1588719475845; Tue, 05 May 2020 15:57:55 -0700 (PDT) MIME-Version: 1.0 From: eashan gupta Date: Wed, 6 May 2020 04:27:44 +0530 Message-ID: Subject: Access RTX register information To: gcc-help@gcc.gnu.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2020 22:57:58 -0000 Hi, Is it possible to access the variable name if we have an RTX which is a reg that corresponds to a variable declared by the user? I have found the macro REG_USERVAR_P (RTX) in rtl.h which returns the boolean "1 if RTX is a reg that corresponds to a variable declared by the user." But I am unable to get a suitable macro to get the variable name the reg corresponds to. On dumping the rtl output using the command: print_rtl_single(stdout, in_rtx); I get output: (reg/v:SI 68 [ c ]) where "c" was the variable name defined by me. How do I access "c" given the rtx statement, "in_rtx"? Thank you very much in advance. Eashan