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

sangeeta chowdhary via llvm-dev
Mon, 28 Sep 2020 21:28:43 -0000

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>