llvm::InstCombiner::InsertNewInstWith

Same as InsertNewInstBefore, but also sets the debug loc.

Synopsis

Declared in <llvm/Transforms/InstCombine/InstCombiner.h>

Instruction*
InsertNewInstWith(
    Instruction* New,
    BasicBlock::iterator Old);

Return Value

New after insertion and worklist update.

Parameters

NameDescription
NewInstruction to insert.
OldInsertion point whose debug location is copied.