21 for (
auto &GV : M.globals()) {
22 if (GV.isDeclaration())
26 for (
auto &
F : M.functions()) {
27 if (
F.isDeclaration())
static LLVM_ABI void assignGUIDForMergedGV(GlobalVariable &GV)
static LLVM_ABI 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.