22 for (
auto &GV : M.globals()) {
23 if (GV.isDeclaration())
27 for (
auto &
F : M.functions()) {
28 if (
F.isDeclaration())
static void assignGUIDForMergedGV(GlobalVariable &GV)
static void runOnModule(Module &M)
LLVM_ABI bool eraseMetadata(unsigned KindID)
Erase all metadata attachments with the given kind.
A Module instance is used to store all the information related to an LLVM module.
This is an optimization pass for GlobalISel generic memory operations.