LLVM 19.0.0git
Namespaces | Functions
CloneModule.cpp File Reference
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Module.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Transforms/Utils/ValueMapper.h"

Go to the source code of this file.


namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.


static void copyComdat (GlobalObject *Dst, const GlobalObject *Src)
LLVMModuleRef LLVMCloneModule (LLVMModuleRef M)
 Return an exact copy of the specified module.

Function Documentation

◆ copyComdat()

static void copyComdat ( GlobalObject Dst,
const GlobalObject Src 

Definition at line 24 of file CloneModule.cpp.

References llvm::Comdat::setSelectionKind().

Referenced by llvm::CloneModule().