LLVM 24.0.0git
CloneFunction.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "clone-function"

Functions

 STATISTIC (RemappedAtomMax, "Highest global NextAtomGroup (after mapping)")
static void collectDebugInfoFromInstructions (const Function &F, DebugInfoFinder &DIFinder)
static MetadataPredicate createIdentityMDPredicate (const Function &F, CloneFunctionChangeType Changes)
static MDNode * createClonedScope (AliasScopeNode SNANode, MDNode *Domain, StringRef Ext, MDBuilder &MDB)
 Create a clone of the scope SNANode in Domain, whose name is that of the original scope extended with Ext.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "clone-function"

Definition at line 44 of file CloneFunction.cpp.

Function Documentation

◆ collectDebugInfoFromInstructions()

void collectDebugInfoFromInstructions ( const Function & F,
DebugInfoFinder & DIFinder )
static

Definition at line 67 of file CloneFunction.cpp.

References F, I, instructions, and llvm::DebugInfoFinder::processInstruction().

Referenced by llvm::CloneFunctionInto().

◆ createClonedScope()

MDNode * createClonedScope ( AliasScopeNode SNANode,
MDNode * Domain,
StringRef Ext,
MDBuilder & MDB )
static

Create a clone of the scope SNANode in Domain, whose name is that of the original scope extended with Ext.

Definition at line 1160 of file CloneFunction.cpp.

References llvm::MDBuilder::createAnonymousAliasScope(), and llvm::AliasScopeNode::getName().

Referenced by llvm::adaptNoAliasScopes(), and llvm::cloneNoAliasScopes().

◆ createIdentityMDPredicate()

MetadataPredicate createIdentityMDPredicate ( const Function & F,
CloneFunctionChangeType Changes )
static

◆ STATISTIC()

STATISTIC ( RemappedAtomMax ,
"Highest global NextAtomGroup (after mapping)"  )