Displaying 1 result from an estimated 1 matches for "hookcloneinstruction".
2015 Jul 28
2
[LLVMdev] RFC: LoopEditor, a high-level loop transform toolkit
...ide 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 LoopVectorize
> }
> };
> BasicBlock *...