[llvm-dev] How can I determine where a function came from in a module?

Shishir V Jessu via llvm-dev
Thu, 30 Jul 2020 17:35:30 -0000

Hello,

I am trying to write a pass to apply a transformation only to functions
that came directly from the source code I am compiling, and not any
included external libraries. For instance, if I am using the C++ standard
library, I do not want to apply the transformation to the standard library
itself. Is there any way in LLVM to distinguish functions based on where
they came from? Thanks!

Best,
Shishir Jessu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20200730/de2b0a09/attachment.html>