Bug Tracker via llvm-dev
2019-Apr-13 07:33 UTC
[llvm-dev] Distinguishing Between User-Defined and Library Functions in LLVM IR
Hello, I would like to ask whether there is a definite way to distinguish between user-defined and library functions in an LLVM IR Pass (IR emitted by Clang from C++, if it matters, but would prefer a cross-language solution). I tried checking for unmangled names, linkage etc., but did not manage to find an accurate solution. Thank you very much in advance. 🙂 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190413/09a612eb/attachment.html>
David Blaikie via llvm-dev
2019-Apr-13 22:34 UTC
[llvm-dev] Distinguishing Between User-Defined and Library Functions in LLVM IR
I don't think there is any logical boundary between "user" code and library code - they're all user code, just written by different users. On Sat, Apr 13, 2019 at 12:33 AM Bug Tracker via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, > > I would like to ask whether there is a definite way to distinguish between > user-defined and library functions in an LLVM IR Pass (IR emitted by Clang > from C++, if it matters, but would prefer a cross-language solution). > > I tried checking for unmangled names, linkage etc., but did not manage to > find an accurate solution. > > Thank you very much in advance. 🙂 > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://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/20190413/ae40ba63/attachment.html>