[#llvm-MapMetadata-0c] = xref:llvm.adoc[llvm]::MapMetadata :relfileprefix: ../ :mrdocs: Version of MapMetadata with type safety for MDNode. == Synopsis Declared in `<llvm/Transforms/Utils/ValueMapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/MDNode.adoc[MDNode]* MapMetadata( xref:llvm/MDNode.adoc[MDNode] const* MD, xref:llvm/ValueToValueMapTy.adoc[ValueToValueMapTy]& VM, xref:llvm/RemapFlags.adoc[RemapFlags] Flags = RF_None, xref:llvm/ValueMapTypeRemapper.adoc[ValueMapTypeRemapper]* TypeMapper = nullptr, xref:llvm/ValueMaterializer.adoc[ValueMaterializer]* Materializer = nullptr, xref:llvm/MetadataPredicate.adoc[MetadataPredicate] const* IdentityMD = nullptr); ---- == Return Value The mapped metadata node. == Parameters [cols="1,4"] |=== | Name| Description | *MD* | Metadata node to look up or map. | *VM* | Mapping from original values to remapped values. | *Flags* | Remapping flags that control mapper behavior. | *TypeMapper* | Optional callback that remaps types while mapping values. | *Materializer* | Optional callback that materializes unmapped values. | *IdentityMD* | Optional predicate for metadata that maps onto itself. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#