Displaying 1 result from an estimated 1 matches for "lbb2".
Did you mean:
bb2
2019 May 17
3
Copy Function from one LLVM IR file to another
...getName()) //F.getName() gives the same
name as the function that was extracted
{
F2 = func2;
}
}
*6.* Replacing each instruction 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 = &am...