Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Transforms/Utils/Local.h
Show First 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | |||||
/// Assuming the instruction \p I is going to be deleted, attempt to salvage | /// Assuming the instruction \p I is going to be deleted, attempt to salvage | ||||
/// debug users of \p I by writing the effect of \p I in a DIExpression. If it | /// debug users of \p I by writing the effect of \p I in a DIExpression. If it | ||||
/// cannot be salvaged changes its debug uses to undef. | /// cannot be salvaged changes its debug uses to undef. | ||||
void salvageDebugInfo(Instruction &I); | void salvageDebugInfo(Instruction &I); | ||||
/// Implementation of salvageDebugInfo, applying only to instructions in | /// Implementation of salvageDebugInfo, applying only to instructions in | ||||
/// \p Insns, rather than all debug users of \p I. | /// \p Insns, rather than all debug users from findDbgUsers( \p I). | ||||
bool salvageDebugInfoForDbgValues(Instruction &I, | /// Returns true if any debug users were updated. | ||||
/// Mark undef if salvaging cannot be completed. | |||||
void salvageDebugInfoForDbgValues(Instruction &I, | |||||
ArrayRef<DbgVariableIntrinsic *> Insns); | ArrayRef<DbgVariableIntrinsic *> Insns); | ||||
/// Given an instruction \p I and DIExpression \p DIExpr operating on it, write | /// Given an instruction \p I and DIExpression \p DIExpr operating on it, write | ||||
/// the effects of \p I into the returned DIExpression, or return nullptr if | /// the effects of \p I into the returned DIExpression, or return nullptr if | ||||
/// it cannot be salvaged. \p StackVal: whether DW_OP_stack_value should be | /// it cannot be salvaged. \p StackVal: whether DW_OP_stack_value should be | ||||
/// appended to the expression. | /// appended to the expression. | ||||
DIExpression *salvageDebugInfoImpl(Instruction &I, DIExpression *DIExpr, | DIExpression *salvageDebugInfoImpl(Instruction &I, DIExpression *DIExpr, | ||||
bool StackVal); | bool StackVal); | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |