I am writing an LLVM pass, where I clone some functions by calling llvm::CloneFunction
. Now I also want to insert those functions in the module. How can I do that?
Function::Create
or by other means. A Function
's constructors accept a module into which to insert the new function.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With