ΒΆvoid updateLoopMetadataDebugLocations(
llvm::Instruction& I,
function_ref<llvm::Metadata*(llvm::Metadata*)>
Updater)
void updateLoopMetadataDebugLocations(
llvm::Instruction& I,
function_ref<llvm::Metadata*(llvm::Metadata*)>
Updater)
Description
Update the debug locations contained within the MD_loop metadata attached to the instruction \p I, if one exists. \p 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.
Declared at: llvm/include/llvm/IR/DebugInfo.h:76
Parameters
- llvm::Instruction& I
- function_ref<llvm::Metadata*(llvm::Metadata*)> Updater