Lines Matching defs:DstM
387 /// from SrcM to DstM.
389 Module &DstM;
403 /// in DstM. ValueToValueMapTy is a ValueMap, which involves some overhead
469 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName());
540 IRLinker(Module &DstM, MDMapT &SharedMDs,
544 : DstM(DstM), SrcM(std::move(SrcM)), AddLazyFor(std::move(AddLazyFor)),
602 if (SGV->getParent() != &DstM && SGV->getParent() != SrcM.get())
660 new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()),
695 SF->getAddressSpace(), SF->getName(), &DstM);
712 SGV->getName(), &DstM);
720 SGV->getName(), nullptr, &DstM);
742 SGV->getName(), &DstM);
745 new GlobalVariable(DstM, TypeMap.get(SGV->getValueType()),
811 // the source module and got added to DstM from a shared metadata. We
813 // remapped to a new type from DstM (for instance, during the loop over
977 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(),
1082 Comdat *DC = DstM.getOrInsertComdat(SC->getName());
1230 if (!DstM.getNamedMetadata(NMD.getName()))
1235 DstM.getModuleIdentifier() + "' is not\n");
1243 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName());
1262 NamedMDNode *DstModFlags = DstM.getOrInsertModuleFlagsMetadata();
1342 DstM.getModuleIdentifier() + "'");
1364 DstM.getModuleIdentifier() + "'");
1374 DstM.getContext(),
1377 MDNode *Flag = MDTuple::getDistinct(DstM.getContext(), FlagOps);
1393 << *DstOp->getOperand(2) << "' from " << DstM.getModuleIdentifier()
1411 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps);
1430 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps);
1447 DstM.getModuleIdentifier() + "'");
1487 DstModFlags->setOperand(Idx, MDNode::get(DstM.getContext(), FlagOps));
1550 ScopedDbgInfoFormatSetter FormatSetter(*SrcM, DstM.IsNewDbgInfoFormat);
1554 if (DstM.getDataLayout().isDefault())
1555 DstM.setDataLayout(SrcM->getDataLayout());
1558 if (DstM.getTargetTriple().empty() && !SrcM->getTargetTriple().empty())
1559 DstM.setTargetTriple(SrcM->getTargetTriple());
1561 Triple SrcTriple(SrcM->getTargetTriple()), DstTriple(DstM.getTargetTriple());
1589 if (EnableDLWarning && (SrcM->getDataLayout() != DstM.getDataLayout())) {
1593 DstM.getModuleIdentifier() + "' is '" +
1594 DstM.getDataLayoutStr() + "'\n");
1602 DstM.getModuleIdentifier() + "' is '" + DstM.getTargetTriple() +
1605 DstM.setTargetTriple(SrcTriple.merge(DstTriple));
1632 // Remap all of the named MDNodes in Src into the DstM module. We do this
1646 DstM.appendModuleInlineAsm(adjustInlineAsm(SrcM->getModuleInlineAsm(),
1649 // Import any symver directives for symbols in DstM.
1652 if (DstM.getNamedValue(Name)) {
1657 DstM.appendModuleInlineAsm(S);
1672 DstM.insertGlobalVariable(NewGV);
1677 // Merge the module flags into the DstM module.