• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Linker/

Lines Matching refs:DstM

385 /// from SrcM to DstM.
387 Module &DstM;
401 /// in DstM. ValueToValueMapTy is a ValueMap, which involves some overhead
463 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName());
523 IRLinker(Module &DstM, MDMapT &SharedMDs,
528 : DstM(DstM), SrcM(std::move(SrcM)), AddLazyFor(std::move(AddLazyFor)),
631 new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()),
663 SF->getAddressSpace(), SF->getName(), &DstM);
680 &DstM);
684 nullptr, &DstM);
703 SGV->getName(), &DstM);
706 new GlobalVariable(DstM, TypeMap.get(SGV->getValueType()),
769 // the source module and got added to DstM from a shared metadata. We
771 // remapped to a new type from DstM (for instance, during the loop over
805 StructType *DST = DstM.getTypeByName(STTypePrefix);
924 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(),
1018 Comdat *DC = DstM.getOrInsertComdat(SC->getName());
1189 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName());
1205 NamedMDNode *DstModFlags = DstM.getOrInsertModuleFlagsMetadata();
1275 DstM.getModuleIdentifier() + "'");
1293 DstM.getModuleIdentifier() + "'");
1298 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps);
1313 << *DstOp->getOperand(2) << "' from " << DstM.getModuleIdentifier()
1331 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps);
1348 DstM.getModuleIdentifier() + "'");
1365 replaceDstValue(MDNode::get(DstM.getContext(), MDs));
1375 replaceDstValue(MDNode::get(DstM.getContext(),
1417 if (DstM.getDataLayout().isDefault())
1418 DstM.setDataLayout(SrcM->getDataLayout());
1420 if (SrcM->getDataLayout() != DstM.getDataLayout()) {
1424 DstM.getModuleIdentifier() + "' is '" +
1425 DstM.getDataLayoutStr() + "'\n");
1429 if (DstM.getTargetTriple().empty() && !SrcM->getTargetTriple().empty())
1430 DstM.setTargetTriple(SrcM->getTargetTriple());
1432 Triple SrcTriple(SrcM->getTargetTriple()), DstTriple(DstM.getTargetTriple());
1439 DstM.getModuleIdentifier() + "' is '" + DstM.getTargetTriple() +
1442 DstM.setTargetTriple(SrcTriple.merge(DstTriple));
1448 if (DstM.getModuleInlineAsm().empty())
1449 DstM.setModuleInlineAsm(SrcModuleInlineAsm);
1451 DstM.setModuleInlineAsm(DstM.getModuleInlineAsm() + "\n" +
1480 // Remap all of the named MDNodes in Src into the DstM module. We do this
1485 // Merge the module flags into the DstM module.