search for: loopeditor

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

2015 Jul 28
2
[LLVMdev] RFC: LoopEditor, a high-level loop transform toolkit
...Then, the > vectorizer could override that hook and provide its own implementation > (instead of cloning an instruction completely, it'd replace it with a > vector variant. So the entire main body of the vectorizer would 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 L...