Sumonto Ghosh via llvm-dev
2018-Apr-24 01:22 UTC
[llvm-dev] Function attribute to indicate external/public
Hi How do I know from a foo.ll (from foo.bc) which function has attribute "Public" or "External" Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180423/e4f0ae18/attachment.html>
Bill Wendling via llvm-dev
2018-Apr-24 07:13 UTC
[llvm-dev] Function attribute to indicate external/public
You will want to look at the linkage and/or visibility attributes. On Mon, Apr 23, 2018 at 6:23 PM Sumonto Ghosh via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi > How do I know from a foo.ll (from foo.bc) which function has attribute > "Public" or "External" > > Thanks > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180424/d10f7e26/attachment.html>
Kenneth Adam Miller via llvm-dev
2018-Apr-24 07:16 UTC
[llvm-dev] Function attribute to indicate external/public
I imagine there is a llvm pass that you could write that runs at image analysis time that looks at all of the functions in the context and checks their attributes, and gives you some processed subset as you require. On Tue, Apr 24, 2018 at 3:13 AM, Bill Wendling via llvm-dev < llvm-dev at lists.llvm.org> wrote:> You will want to look at the linkage and/or visibility attributes. > > On Mon, Apr 23, 2018 at 6:23 PM Sumonto Ghosh via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi >> How do I know from a foo.ll (from foo.bc) which function has attribute >> "Public" or "External" >> >> Thanks >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180424/627dfce9/attachment.html>