ΒΆvoid ReplaceInstWithValue(
    BasicBlock::InstListType& BIL,
    BasicBlock::iterator& BI,
    llvm::Value* V)

Description

Replace all uses of an instruction (specified by BI) with a value, then remove and delete the original instruction.

Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:117

Parameters

BasicBlock::InstListType& BIL
BasicBlock::iterator& BI
llvm::Value* V