[llvm-dev] cloning function

sangeeta chowdhary via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 13 08:14:28 PDT 2020


Hello Everyone,

I am writing an llvm pass which clones a function.
For example, foo is cloned to my_foo.
It has all the instructions which are in foo and it works fine till the
function is not called using a function pointer.  I have used CloneFunction
defined in Utils/CloneFunction.cpp. I am wondering how I can handle the
case when function is called using a function pointer. Any insights or
leads on how this can be achieved in llvm?

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


More information about the llvm-dev mailing list