ΒΆbool replaceDbgDeclareForAlloca(
    llvm::AllocaInst* AI,
    llvm::Value* NewAllocaAddress,
    llvm::DIBuilder& Builder,
    uint8_t DIExprFlags,
    int Offset)

Description

Replaces llvm.dbg.declare instruction when the alloca it describes is replaced with a new value. If Deref is true, an additional DW_OP_deref is prepended to the expression. If Offset is non-zero, a constant displacement is added to the expression (between the optional Deref operations). Offset can be negative. The new llvm.dbg.declare is inserted immediately after AI.

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:336

Parameters

llvm::AllocaInst* AI
llvm::Value* NewAllocaAddress
llvm::DIBuilder& Builder
uint8_t DIExprFlags
int Offset