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