search for: linst2

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

Did you mean: inst2
2019 May 17
3
Copy Function from one LLVM IR file to another
...nstruction of F2 with instruction from F1 using: for(Function::iterator bb = F1->begin(), Lbb = F1->end(), bb2 = F2->begin(), Lbb2 = F2->end(); bb2!=Lbb2; ++bb, ++bb2) { for(BasicBlock::iterator inst = bb->begin(), Linst = bb->end(), inst2 = bb2->begin(), Linst2 = bb2->end(); inst2 != Linst2; ++inst, ++inst2) { Instruction* I = &*inst; Instruction* I2 = &*inst2; //errs() << "F1's instruction: " << *I << "\n"; //errs() << "F2's inst...