ΒΆinline void RemapInstruction(
    llvm::Instruction* I,
    llvm::ValueToValueMapTy& VM,
    llvm::RemapFlags Flags = RF_None,
    llvm::ValueMapTypeRemapper* TypeMapper =
        nullptr,
    llvm::ValueMaterializer* Materializer =
        nullptr)

Description

Convert the instruction operands from referencing the current values into those specified by VM. If \a RF_IgnoreMissingLocals is set and an operand can't be found via \a MapValue(), use the old value. Otherwise assert that this doesn't happen. Note that \a MapValue() only returns \c nullptr for SSA values missing from\c VM.

Declared at: llvm/include/llvm/Transforms/Utils/ValueMapper.h:254

Parameters

llvm::Instruction* I
llvm::ValueToValueMapTy& VM
llvm::RemapFlags Flags = RF_None
llvm::ValueMapTypeRemapper* TypeMapper = nullptr
llvm::ValueMaterializer* Materializer = nullptr