Lines Matching refs:SrcM
397 Module *DstM, *SrcM; member in __anonc41387ad0211::ModuleLinker
430 : DstM(dstM), SrcM(srcM), TypeMap(Set), in ModuleLinker()
673 getComdatLeader(SrcM, ComdatName, SrcGV)) in computeResultingSelectionKind()
677 const DataLayout &SrcDL = SrcM->getDataLayout(); in computeResultingSelectionKind()
806 for (GlobalValue &SGV : SrcM->globals()) { in computeTypeMapping()
822 for (GlobalValue &SGV : *SrcM) { in computeTypeMapping()
827 for (GlobalValue &SGV : SrcM->aliases()) { in computeTypeMapping()
836 std::vector<StructType *> Types = SrcM->getIdentifiedStructTypes(); in computeTypeMapping()
926 auto *SrcGV = dyn_cast_or_null<GlobalVariable>(SrcM->getNamedValue(Name)); in upgradeMismatchedGlobalArray()
1238 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); in linkNamedMDNodes()
1239 for (Module::const_named_metadata_iterator I = SrcM->named_metadata_begin(), in linkNamedMDNodes()
1240 E = SrcM->named_metadata_end(); I != E; ++I) { in linkNamedMDNodes()
1289 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); in linkModuleFlagsMetadata()
1468 assert(SrcM && "Null source module"); in run()
1473 DstM->setDataLayout(SrcM->getDataLayout()); in run()
1475 if (SrcM->getDataLayout() != DstM->getDataLayout()) { in run()
1477 SrcM->getModuleIdentifier() + "' is '" + in run()
1478 SrcM->getDataLayoutStr() + "' whereas '" + in run()
1484 if (DstM->getTargetTriple().empty() && !SrcM->getTargetTriple().empty()) in run()
1485 DstM->setTargetTriple(SrcM->getTargetTriple()); in run()
1487 Triple SrcTriple(SrcM->getTargetTriple()), DstTriple(DstM->getTargetTriple()); in run()
1489 if (!SrcM->getTargetTriple().empty() && !triplesMatch(SrcTriple, DstTriple)) in run()
1491 SrcM->getModuleIdentifier() + "' is '" + in run()
1492 SrcM->getTargetTriple() + "' whereas '" + in run()
1499 if (!SrcM->getModuleInlineAsm().empty()) { in run()
1501 DstM->setModuleInlineAsm(SrcM->getModuleInlineAsm()); in run()
1504 SrcM->getModuleInlineAsm()); in run()
1511 for (const auto &SMEC : SrcM->getComdatSymbolTable()) { in run()
1527 for (Module::global_iterator I = SrcM->global_begin(), in run()
1528 E = SrcM->global_end(); I != E; ++I) in run()
1537 for (Module::iterator I = SrcM->begin(), E = SrcM->end(); I != E; ++I) in run()
1542 for (Module::alias_iterator I = SrcM->alias_begin(), in run()
1543 E = SrcM->alias_end(); I != E; ++I) in run()
1554 const GlobalValue *GV = SrcM->getNamedValue(C.getName()); in run()
1568 for (Function &SF : *SrcM) { in run()
1582 for (GlobalAlias &Src : SrcM->aliases()) { in run()
1599 for (GlobalVariable &Src : SrcM->globals()) { in run()