Update debug locations in any MD_loop metadata attached to I.

Synopsis

Declared in <llvm/IR/DebugInfo.h>

void
updateLoopMetadataDebugLocations(
    Instruction& I,
    function_ref<Metadata*(xref:llvm/Metadata.adoc[Metadata*)>] Updater);

Description

Updater is applied to Metadata operand in the MD_loop metadata: the returned value is included in the updated loop metadata node if it is non‐null.

Parameters

Name

Description

I

Instruction whose MD_loop metadata is updated, if present.

Updater

Callback applied to each Metadata operand in MD_loop.

Created with MrDocs