[llvm-dev] How to know if function has a body in a different module

sangeeta chowdhary via llvm-dev llvm-dev at lists.llvm.org
Mon Sep 28 14:28:43 PDT 2020


Hello Everyone,

I am wondering if there is a way to identify if function is defined in any
other module? For example suppose file A calls a function foo and it's body
is defined in file B.
I have a llvm pass which runs on module, how can I know from call
instruction, that called function has a body in a different module.

Any help would be appreciated.

Regards,
Sangeeta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200928/3bc02b26/attachment.html>


More information about the llvm-dev mailing list