Lines Matching refs:DstM
372 Module &DstM; member in __anonba36dcca0211::IRLinker
440 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
482 IRLinker(Module &DstM, MDMapT &SharedMDs, in IRLinker() argument
486 : DstM(DstM), SrcM(std::move(SrcM)), AddLazyFor(std::move(AddLazyFor)), in IRLinker()
587 new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()), in copyGlobalVariableProto()
602 GlobalValue::ExternalLinkage, SF->getName(), &DstM); in copyFunctionProto()
612 &DstM); in copyGlobalAliasProto()
627 DstM, TypeMap.get(SGV->getValueType()), in copyGlobalValueProto()
705 StructType *DST = DstM.getTypeByName(ST->getName().substr(0, DotPos)); in computeTypeMapping()
825 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(), in linkAppendingVarProto()
922 Comdat *DC = DstM.getOrInsertComdat(SC->getName()); in linkGlobalValueProto()
1003 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); in linkNamedMDNodes()
1019 NamedMDNode *DstModFlags = DstM.getOrInsertModuleFlagsMetadata(); in linkModuleFlagsMetadata()
1098 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps); in linkModuleFlagsMetadata()
1131 replaceDstValue(MDNode::get(DstM.getContext(), MDs)); in linkModuleFlagsMetadata()
1141 replaceDstValue(MDNode::get(DstM.getContext(), in linkModuleFlagsMetadata()
1191 if (DstM.getDataLayout().isDefault()) in run()
1192 DstM.setDataLayout(SrcM->getDataLayout()); in run()
1194 if (SrcM->getDataLayout() != DstM.getDataLayout()) { in run()
1198 DstM.getModuleIdentifier() + "' is '" + in run()
1199 DstM.getDataLayoutStr() + "'\n"); in run()
1203 if (DstM.getTargetTriple().empty() && !SrcM->getTargetTriple().empty()) in run()
1204 DstM.setTargetTriple(SrcM->getTargetTriple()); in run()
1206 Triple SrcTriple(SrcM->getTargetTriple()), DstTriple(DstM.getTargetTriple()); in run()
1212 DstM.getModuleIdentifier() + "' is '" + DstM.getTargetTriple() + in run()
1215 DstM.setTargetTriple(mergeTriples(SrcTriple, DstTriple)); in run()
1219 if (DstM.getModuleInlineAsm().empty()) in run()
1220 DstM.setModuleInlineAsm(SrcM->getModuleInlineAsm()); in run()
1222 DstM.setModuleInlineAsm(DstM.getModuleInlineAsm() + "\n" + in run()