Adapt an instruction's noalias metadata using a scope map.
Declared in <llvm/Transforms/Utils/Cloning.h>
void
adaptNoAliasScopes(
llvm::Instruction* I,
DenseMap<MDNode*, MDNode*> const& ClonedScopes,
LLVMContext& Context);
Adapt the metadata for the specified instruction according to the provided mapping. This is normally used after cloning an instruction, when some noalias scopes needed to be cloned.
| Name | Description |
|---|---|
| I | Instruction whose noalias metadata should be rewritten. |
| ClonedScopes | Mapping from original noalias scopes to their clones. |
| Context | LLVM context used when rebuilding metadata. |