From: Christopher Li <sparse@chrisli.org>
To: Dibyendu Majumdar <mobile@majumdar.org.uk>
Cc: Linux-Sparse <linux-sparse@vger.kernel.org>
Subject: Re: Handling of local variables in the backend
Date: Tue, 12 Sep 2017 18:44:19 -0400 [thread overview]
Message-ID: <CANeU7QmiSJ2NFykLn__EaeCK03d4zzGBttFa=Skcn487C-RdjQ@mail.gmail.com> (raw)
In-Reply-To: <CACXZuxd2XOKBaTnPEGEy-XZPTg_PJrA_XnNUfbbHm2X7zxKcmA@mail.gmail.com>
On Tue, Sep 12, 2017 at 5:54 PM, Dibyendu Majumdar
<mobile@majumdar.org.uk> wrote:
>
> I think that there is no easy way to identify all the symbols used for
> which stack space is needed and do the allocas at the start - is
> there? I mean the only way is to go through all the instructions to
> find these references as far as I know.
Have you try the sym->symbol_list for the function node?
It should contain all the symbol used in that function.
I can even see that symbol_list under test-inspect.
under
[SYM_NODE:
[ ctype.base_type: SYM_FN]
[ symbol_list: symbol_list,
... <============== here.
]
]
It has other label symbol as well. You should be able to filter
out those pretty easily.
Chris
next prev parent reply other threads:[~2017-09-12 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-12 21:54 Handling of local variables in the backend Dibyendu Majumdar
2017-09-12 22:44 ` Christopher Li [this message]
2017-09-13 9:56 ` Dibyendu Majumdar
2017-09-13 10:18 ` Luc Van Oostenryck
2017-09-13 10:22 ` Dibyendu Majumdar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANeU7QmiSJ2NFykLn__EaeCK03d4zzGBttFa=Skcn487C-RdjQ@mail.gmail.com' \
--to=sparse@chrisli.org \
--cc=linux-sparse@vger.kernel.org \
--cc=mobile@majumdar.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).