llvm::ValueAsMetadata::replaceAllUsesWith

Handle collisions after Value::replaceAllUsesWith().

Synopsis

Declared in <llvm/IR/Metadata.h>

void
replaceAllUsesWith(Metadata* MD);

Description

RAUW isn't supported directly for ValueAsMetadata, but if the wrapped Value gets RAUW'ed and the target already exists, this is used to merge the two metadata nodes. Replace all uses of this with MD.

Parameters

NameDescription
MDReplacement metadata.