Displaying 1 result from an estimated 1 matches for "isvectorinstr".
2009 Jun 03
2
[LLVMdev] Adding instructions to MachineBlock
...BE=F.end(); BI!=BE; ++BI) {
MachineBasicBlock *BB = &*BI;
std::vector<MachineInstr *> toRemove;
std::vector<MachineInstr *> copies;
for(MachineBasicBlock::iterator II=BB->begin(), IE=BB->end();
II!=IE; ++II) {
MachineInstr *Instr = &*II;
if(!isVectorInstr(Instr))
continue;
copies.clear();
createCopies(F, Instr, copies);
for(unsigned i=0, e=copies.size(); i!=e; ++i)
BB->insert(II, copies[i]);
}
for(unsigned i=0, e=toRemove.size(); i!=e; ++i)
BB->remove(toRemove[i]);
}
The createCopies function...