search for: parsedmod2

Displaying 1 result from an estimated 1 matches for "parsedmod2".

Did you mean: parsedmod
2019 May 17
3
Copy Function from one LLVM IR file to another
...ue_ptr<Module> ParsedMod(parseIRFile("add.ll", Err, Context)); Module &M = dynamic_cast<Module&>(*ParsedMod); Module* Mod_ptr = &M; *3.* Then I read the (.ll) file into which I want to copy the function using: std::unique_ptr<Module> ParsedMod2(parseIRFile("server.ll", Err, Context)); Module &M2 = dynamic_cast<Module&>(*ParsedMod2); Module* Mod_ptr2 = &M2; *4.* I keep two iterators to save the points from where i have to start replacing instructions as: Module::iterator F1; Module::ite...