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?
I am writing an LLVM pass, where I clone some functions by calling llvm::CloneFunction
Share
Function::Createor by other means. AFunction‘s constructors accept a module into which to insert the new function.