Lines Matching defs:std

76     const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
78 const std::set<GlobalValue::GUID> &CfiFunctionDefs,
79 const std::set<GlobalValue::GUID> &CfiFunctionDecls) {
151 std::vector<uint64_t> ExportsGUID;
169 std::vector<ImportMapIteratorTy> ImportModulesVector;
198 std::set<GlobalValue::GUID> UsedCfiDefs;
199 std::set<GlobalValue::GUID> UsedCfiDecls;
202 std::set<GlobalValue::GUID> UsedTypeIds;
448 // Requires a destructor for std::vector<InputModule>.
451 Expected<std::unique_ptr<InputFile>> InputFile::create(MemoryBufferRef Object) {
452 std::unique_ptr<InputFile> File(new InputFile);
476 File->Strtab = std::move(FOrErr->Strtab);
477 return std::move(File);
492 Ctx(Conf), CombinedModule(std::make_unique<Module>("ld-temp.o", Ctx)),
493 Mover(std::make_unique<IRMover>(*CombinedModule)) {}
504 : Conf(std::move(Conf)),
506 ThinLTO(std::move(Backend)) {}
590 Error LTO::add(std::unique_ptr<InputFile> Input,
640 return linkRegularLTO(std::move(*ModOrErr), /*LivenessFromIndex=*/false);
646 RegularLTO.ModsWithSummaries.push_back(std::move(*ModOrErr));
662 std::set<const Comdat *> &NonPrevailingComdats) {
688 Expected<std::unique_ptr<Module>> MOrErr =
694 Mod.M = std::move(*MOrErr);
697 return std::move(Err);
731 std::set<const Comdat *> NonPrevailingComdats;
786 CommonRes.Size = std::max(CommonRes.Size, Sym.getCommonSize());
788 std::max(CommonRes.Align, MaybeAlign(Sym.getCommonAlignment()));
797 return std::move(Mod);
802 std::vector<GlobalValue *> Keep;
822 return RegularLTO.Mover->move(std::move(Mod.M), Keep,
952 std::unique_ptr<ToolOutputFile> StatsFile = std::move(StatsFileOrErr.get());
957 if (Error Err = linkRegularLTO(std::move(M),
1036 std::move(RegularLTO.CombinedModule), ThinLTO.CombinedIndex);
1067 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
1077 std::set<GlobalValue::GUID> CfiFunctionDefs;
1078 std::set<GlobalValue::GUID> CfiFunctionDecls;
1081 std::mutex ErrMu;
1091 AddStream(std::move(AddStream)), Cache(std::move(Cache)) {
1105 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
1110 Expected<std::unique_ptr<Module>> MOrErr = BM.parseModule(BackendContext);
1142 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
1152 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>
1160 std::unique_lock<std::mutex> L(ErrMu);
1162 Err = joinErrors(std::move(*Err), std::move(E));
1164 Err = std::move(E);
1167 BM, std::ref(CombinedIndex), std::ref(ImportList), std::ref(ExportList),
1168 std::ref(ResolvedODR), std::ref(DefinedGlobals), std::ref(ModuleMap));
1175 return std::move(*Err);
1186 return std::make_unique<InProcessThinBackend>(
1195 std::string lto::getThinLTOOutputFile(const std::string &Path,
1196 const std::string &OldPrefix,
1197 const std::string &NewPrefix) {
1205 if (std::error_code EC = llvm::sys::fs::create_directories(ParentPath))
1214 std::string OldPrefix, NewPrefix;
1223 std::string OldPrefix, std::string NewPrefix, bool ShouldEmitImportsFiles,
1234 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
1237 std::string NewModulePath =
1243 std::map<std::string, GVSummaryMapTy> ModuleToSummariesForIndex;
1247 std::error_code EC;
1271 std::string OldPrefix, std::string NewPrefix, bool ShouldEmitImportsFiles,
1276 return std::make_unique<WriteIndexesThinBackend>(
1315 StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR;
1320 std::set<GlobalValue::GUID> ExportedGUIDs;
1325 std::map<ValueInfo, std::vector<VTableSlotSummary>> LocalWPDTargetsMap;
1382 std::unique_ptr<ThinBackendProc> BackendProc =
1400 Expected<std::unique_ptr<ToolOutputFile>>
1404 std::string Filename = RemarksFilename;
1415 return std::move(E);
1423 Expected<std::unique_ptr<ToolOutputFile>>
1430 std::error_code EC;
1432 std::make_unique<ToolOutputFile>(StatsFilename, EC, sys::fs::OF_None);
1437 return std::move(StatsFile);