Version of MapMetadata with type safety for MDNode.
Declared in <llvm/Transforms/Utils/ValueMapper.h>
MDNode*
MapMetadata(
MDNode const* MD,
ValueToValueMapTy& VM,
RemapFlags Flags = RF_None,
ValueMapTypeRemapper* TypeMapper = nullptr,
ValueMaterializer* Materializer = nullptr,
MetadataPredicate const* IdentityMD = nullptr);
The mapped metadata node.
| 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. |