[llvm] [NFC][Utils] Extract CloneFunctionMetadataInto from CloneFunctionInto (PR #118623)
Artem Pianykh via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 23:50:28 PST 2024
================
@@ -200,6 +200,22 @@ bool llvm::BuildDebugInfoMDMap(DenseMap<const Metadata *, TrackingMDRef> &MD,
return ModuleLevelChanges;
}
+void llvm::CloneFunctionMetadataInto(Function *NewFunc, const Function *OldFunc,
+ ValueToValueMapTy &VMap,
+ RemapFlags RemapFlag,
+ ValueMapTypeRemapper *TypeMapper,
+ ValueMaterializer *Materializer) {
+ // Duplicate the metadata that is attached to the cloned function.
----------------
artempyanykh wrote:
Thanks! Moved relevant documentation bits into Cloning.h.
https://github.com/llvm/llvm-project/pull/118623
More information about the llvm-commits
mailing list