Lines Matching refs:DstM
376 Module &DstM; member in __anonba36dcca0211::IRLinker
462 GlobalValue *DGV = DstM.getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
509 IRLinker(Module &DstM, IRMover::IdentifiedStructTypeSet &Set, Module &SrcM, in IRLinker() argument
514 : DstM(DstM), SrcM(SrcM), AddLazyFor(AddLazyFor), TypeMap(Set), in IRLinker()
705 new GlobalVariable(DstM, TypeMap.get(SGVar->getType()->getElementType()), in copyGlobalVariableProto()
720 GlobalValue::ExternalLinkage, SF->getName(), &DstM); in copyFunctionProto()
730 &DstM); in copyGlobalAliasProto()
745 DstM, TypeMap.get(SGV->getType()->getElementType()), in copyGlobalValueProto()
808 StructType *DST = DstM.getTypeByName(ST->getName().substr(0, DotPos)); in computeTypeMapping()
939 DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(), in linkAppendingVarProto()
1069 Comdat *DC = DstM.getOrInsertComdat(SC->getName()); in linkGlobalValueProto()
1226 NamedMDNode *CompileUnits = DstM.getNamedMetadata("llvm.dbg.cu"); in stripNullSubprograms()
1256 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); in linkNamedMDNodes()
1275 NamedMDNode *DstModFlags = DstM.getOrInsertModuleFlagsMetadata(); in linkModuleFlagsMetadata()
1357 MDNode *Flag = MDNode::get(DstM.getContext(), FlagOps); in linkModuleFlagsMetadata()
1391 replaceDstValue(MDNode::get(DstM.getContext(), MDs)); in linkModuleFlagsMetadata()
1401 replaceDstValue(MDNode::get(DstM.getContext(), in linkModuleFlagsMetadata()
1449 if (DstM.getDataLayout().isDefault()) in run()
1450 DstM.setDataLayout(SrcM.getDataLayout()); in run()
1452 if (SrcM.getDataLayout() != DstM.getDataLayout()) { in run()
1456 DstM.getModuleIdentifier() + "' is '" + in run()
1457 DstM.getDataLayoutStr() + "'\n"); in run()
1461 if (DstM.getTargetTriple().empty() && !SrcM.getTargetTriple().empty()) in run()
1462 DstM.setTargetTriple(SrcM.getTargetTriple()); in run()
1464 Triple SrcTriple(SrcM.getTargetTriple()), DstTriple(DstM.getTargetTriple()); in run()
1469 "' whereas '" + DstM.getModuleIdentifier() + "' is '" + in run()
1470 DstM.getTargetTriple() + "'\n"); in run()
1472 DstM.setTargetTriple(mergeTriples(SrcTriple, DstTriple)); in run()
1476 if (DstM.getModuleInlineAsm().empty()) in run()
1477 DstM.setModuleInlineAsm(SrcM.getModuleInlineAsm()); in run()
1479 DstM.setModuleInlineAsm(DstM.getModuleInlineAsm() + "\n" + in run()