search for: createvectorversionofinstruction

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

2015 Jul 28
2
[LLVMdev] RFC: LoopEditor, a high-level loop transform toolkit
...ld look > something like this: > > struct Delegate : public LoopEditor::Delegate { > Value *hookCloneInstruction(Instruction *OldI, IRBuilder<> &IRB) { > if (isControlFlowInst(OldI)) return IRB.CreateExtractElement; // Don't > vectorize branches > return createVectorVersionOfInstruction(OldI, VF, IRB); // Defined > somewhere in LoopVectorize > } > }; > BasicBlock *PredBB; > Delegate D; > LoopEditor LE(L, DT, SE, LI); > LoopEditor VectorLE = LE.versionWidenAndInterleaveLoop(UF, PredBB, &D); > VectorLE.widen(VF); // Widen further, so it's widened by...