| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | Caching.cpp | 41 const Twine &ModuleName) -> Expected<AddStreamFn> { in localCache() argument 58 AddBuffer(Task, ModuleName, std::move(*MBOrErr)); in localCache() 81 std::string ModuleName; in localCache() member 86 std::string ModuleName, unsigned Task) in localCache() 89 ModuleName(ModuleName), Task(Task) {} in localCache() 138 AddBuffer(Task, ModuleName, std::move(*MBOrErr)); in localCache() 142 return [=](size_t Task, const Twine &ModuleName) in localCache() 165 ModuleName.str(), Task); in localCache()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-symbolizer/ |
| H A D | llvm-symbolizer.cpp | 139 std::string &ModuleName, object::BuildID &BuildID, in parseCommand() argument 142 ModuleName = ""; in parseCommand() 185 ModuleName = std::string(Pos, End - Pos); in parseCommand() 189 ModuleName = std::string(Pos, NameLength); in parseCommand() 193 BuildID = parseBuildID(ModuleName); in parseCommand() 196 ModuleName.clear(); in parseCommand() 200 ModuleName = BinaryName.str(); in parseCommand() 214 void executeCommand(StringRef ModuleName, const T &ModuleSpec, Command Cmd, in executeCommand() argument 223 print({ModuleName, Offset}, ResOrErr, Printer); in executeCommand() 227 print({ModuleName, Offset}, ResOrErr, Printer); in executeCommand() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/symbolizer/ |
| H A D | sanitizer_symbolize.cpp | 53 bool __sanitizer_symbolize_code(const char *ModuleName, uint64_t ModuleOffset, in __sanitizer_symbolize_code() argument 59 llvm::symbolize::Request Request{ModuleName, ModuleOffset}; in __sanitizer_symbolize_code() 67 ModuleName, in __sanitizer_symbolize_code() 73 ModuleName, in __sanitizer_symbolize_code() 82 bool __sanitizer_symbolize_data(const char *ModuleName, uint64_t ModuleOffset, in __sanitizer_symbolize_data() argument 88 llvm::symbolize::Request Request{ModuleName, ModuleOffset}; in __sanitizer_symbolize_data() 95 ModuleName, in __sanitizer_symbolize_data()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | ModuleBuilder.cpp | 70 static llvm::StringRef ExpandModuleName(llvm::StringRef ModuleName, in ExpandModuleName() argument 72 if (ModuleName == "-" && !CGO.MainFileName.empty()) in ExpandModuleName() 74 return ModuleName; in ExpandModuleName() 78 CodeGeneratorImpl(DiagnosticsEngine &diags, llvm::StringRef ModuleName, in CodeGeneratorImpl() argument 87 M(new llvm::Module(ExpandModuleName(ModuleName, CGO), C)) { in CodeGeneratorImpl() 136 llvm::Module *StartModule(llvm::StringRef ModuleName, in StartModule() argument 139 M.reset(new llvm::Module(ExpandModuleName(ModuleName, CodeGenOpts), C)); in StartModule() 358 llvm::Module *CodeGenerator::StartModule(llvm::StringRef ModuleName, in StartModule() argument 360 return static_cast<CodeGeneratorImpl*>(this)->StartModule(ModuleName, C); in StartModule() 364 clang::CreateLLVMCodeGen(DiagnosticsEngine &Diags, llvm::StringRef ModuleName, in CreateLLVMCodeGen() argument [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/DependencyScanning/ |
| H A D | DependencyScanningWorker.cpp | 75 void visitImport(StringRef ModuleName, StringRef Filename) override { in visitImport() argument 76 if (PrebuiltModuleFiles.insert({ModuleName.str(), Filename.str()}).second) in visitImport() 151 bool DisableFree, std::optional<StringRef> ModuleName = std::nullopt) in DependencyScanningAction() argument 155 ModuleName(ModuleName) {} in DependencyScanningAction() 269 if (ModuleName) in runInvocation() 270 Action = std::make_unique<GetDependenciesByModuleNameAction>(*ModuleName); in runInvocation() 308 std::optional<StringRef> ModuleName; member in __anonee0cd4250111::DependencyScanningAction 345 DependencyConsumer &Consumer, std::optional<StringRef> ModuleName) { in computeDependencies() argument 359 ModuleName)) in computeDependencies() 392 std::optional<StringRef> ModuleName) { in computeDependencies() argument [all …]
|
| H A D | DependencyScanningTool.cpp | 105 std::optional<StringRef> ModuleName) { in getDependencyFile() argument 108 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getDependencyFile() 165 std::optional<StringRef> ModuleName) { in getFullDependencies() argument 169 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getFullDependencies() 180 std::optional<StringRef> ModuleName) { in getFullDependenciesLegacyDriverCommand() argument 184 Worker.computeDependencies(CWD, CommandLine, Consumer, ModuleName); in getFullDependenciesLegacyDriverCommand() 238 FD.DriverCommandLine.push_back("-fmodule-file=" + MD.ID.ModuleName + in getFullDependenciesLegacyDriverCommand()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | Caching.h | 42 unsigned Task, const Twine &ModuleName)>; 58 unsigned Task, StringRef Key, const Twine &ModuleName)>; 63 using AddBufferFn = std::function<void(unsigned Task, const Twine &ModuleName, 75 AddBufferFn AddBuffer = [](size_t Task, const Twine &ModuleName,
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/Symbolize/ |
| H A D | Symbolize.cpp | 87 LLVMSymbolizer::symbolizeCode(const std::string &ModuleName, in symbolizeCode() argument 89 return symbolizeCodeCommon(ModuleName, ModuleOffset); in symbolizeCode() 136 LLVMSymbolizer::symbolizeInlinedCode(const std::string &ModuleName, in symbolizeInlinedCode() argument 138 return symbolizeInlinedCodeCommon(ModuleName, ModuleOffset); in symbolizeInlinedCode() 181 LLVMSymbolizer::symbolizeData(const std::string &ModuleName, in symbolizeData() argument 183 return symbolizeDataCommon(ModuleName, ModuleOffset); in symbolizeData() 222 LLVMSymbolizer::symbolizeFrame(const std::string &ModuleName, in symbolizeFrame() argument 224 return symbolizeFrameCommon(ModuleName, ModuleOffset); in symbolizeFrame() 541 StringRef ModuleName) { in createModuleInfo() argument 548 std::make_pair(std::string(ModuleName), std::move(SymMod))); in createModuleInfo() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 294 std::string ModuleName = stringFromPath(Path); in ActOnModuleDecl() local 296 ModuleName += ":"; in ActOnModuleDecl() 297 ModuleName += stringFromPath(Partition); in ActOnModuleDecl() 302 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl() 310 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl() 320 if (auto *M = Map.findModule(ModuleName)) { in ActOnModuleDecl() 321 Diag(Path[0].second, diag::err_module_redefinition) << ModuleName; in ActOnModuleDecl() 332 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName); in ActOnModuleDecl() 345 PP.getIdentifierInfo(ModuleName), Path[0].second); in ActOnModuleDecl() 355 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Tooling/DependencyScanning/ |
| H A D | ModuleDepCollector.h | 34 std::string ModuleName; member 39 : ModuleName(M->getTopLevelModuleName()), in PrebuiltModuleDep() 48 std::string ModuleName; member 61 return ModuleName == Other.ModuleName && ContextHash == Other.ContextHash; 69 std::string ModuleName; member 296 return hash_combine(ID.ModuleName, ID.ContextHash);
|
| H A D | DependencyScanningTool.h | 94 std::optional<StringRef> ModuleName = std::nullopt); 130 std::optional<StringRef> ModuleName = std::nullopt); 136 std::optional<StringRef> ModuleName = std::nullopt); 165 ClangModuleDeps[MD.ID.ContextHash + MD.ID.ModuleName] = std::move(MD); in handleModuleDependency()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Frontend/ |
| H A D | DiagnosticRenderer.h | 93 StringRef ModuleName) = 0; 95 StringRef ModuleName) = 0; 108 void emitImportStackRecursively(FullSourceLoc Loc, StringRef ModuleName); 153 StringRef ModuleName) override; 156 StringRef ModuleName) override;
|
| H A D | FrontendActions.h | 301 StringRef ModuleName; variable 305 GetDependenciesByModuleNameAction(StringRef ModuleName) in GetDependenciesByModuleNameAction() argument 306 : ModuleName(ModuleName) {} in GetDependenciesByModuleNameAction()
|
| /openbsd-src/gnu/llvm/clang/lib/Frontend/ |
| H A D | CompilerInstance.cpp | 580 void ReadModuleName(StringRef ModuleName) override { in ReadModuleName() 583 LoadedModules.push_back(ModuleName.str()); in ReadModuleName() 1139 StringRef ModuleName, FrontendInputFile Input, in compileModuleImpl() argument 1145 llvm::TimeTraceScope TimeScope("Module Compile", ModuleName); 1152 << ModuleName; 1177 Invocation->getLangOpts()->ModuleName = 1178 ImportingInstance.getInvocation().getLangOpts()->ModuleName; 1181 Invocation->getLangOpts()->CurrentModule = std::string(ModuleName); 1238 SourceMgr.pushModuleBuildStack(ModuleName, 1249 << ModuleName << ModuleFileName; [all …]
|
| H A D | DiagnosticRenderer.cpp | 231 StringRef ModuleName) { in emitImportStackRecursively() argument 232 if (ModuleName.empty()) { in emitImportStackRecursively() 243 emitImportLocation(Loc, PLoc, ModuleName); in emitImportStackRecursively() 610 StringRef ModuleName) { in emitImportLocation() argument 614 Message << "in module '" << ModuleName; in emitImportLocation() 624 StringRef ModuleName) { in emitBuildingModuleLocation() argument 629 Message << "while building module '" << ModuleName << "' imported from " in emitBuildingModuleLocation() 632 Message << "while building module '" << ModuleName << "':"; in emitBuildingModuleLocation()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/Symbolize/ |
| H A D | Symbolize.h | 79 Expected<DILineInfo> symbolizeCode(const std::string &ModuleName, 87 symbolizeInlinedCode(const std::string &ModuleName, 95 Expected<DIGlobal> symbolizeData(const std::string &ModuleName, 102 symbolizeFrame(const std::string &ModuleName, 148 getOrCreateModuleInfo(const std::string &ModuleName); 159 StringRef ModuleName);
|
| /openbsd-src/gnu/llvm/clang/tools/clang-scan-deps/ |
| H A D | ClangScanDeps.cpp | 181 llvm::cl::opt<std::string> ModuleName( variable 254 return std::tie(A.ModuleName, A.ContextHash) < in toJSONSorted() 255 std::tie(B.ModuleName, B.ContextHash); in toJSONSorted() 261 {{"module-name", MID.ModuleName}, {"context-hash", MID.ContextHash}})); in toJSONSorted() 300 return std::tie(A.ID.ModuleName, A.InputIndex) < in printFullOutput() 301 std::tie(B.ID.ModuleName, B.InputIndex); in printFullOutput() 314 {"name", MD.ID.ModuleName}, in printFullOutput() 369 return ID.ModuleName == Other.ID.ModuleName && in operator ==() 378 return hash_combine(IMID.ID.ModuleName, IMID.ID.ContextHash); in operator ()() 431 Object Provided{{"logical-name", R.Provides->ModuleName}, in printDependencies() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | HeaderSearch.cpp | 183 std::string HeaderSearch::getPrebuiltModuleFileName(StringRef ModuleName, in getPrebuiltModuleFileName() argument 186 auto i(HSOpts->PrebuiltModuleFiles.find(ModuleName)); in getPrebuiltModuleFileName() 198 if (ModuleName.contains(':')) in getPrebuiltModuleFileName() 202 llvm::sys::path::append(Result, ModuleName.split(':').first + "-" + in getPrebuiltModuleFileName() 203 ModuleName.split(':').second + in getPrebuiltModuleFileName() 206 llvm::sys::path::append(Result, ModuleName + ".pcm"); in getPrebuiltModuleFileName() 217 StringRef ModuleName = Module->Name; in getPrebuiltImplicitModuleFileName() local 225 getCachedModuleFileNameImpl(ModuleName, ModuleMapPath, CachePath); in getPrebuiltImplicitModuleFileName() 232 std::string HeaderSearch::getCachedModuleFileName(StringRef ModuleName, in getCachedModuleFileName() argument 234 return getCachedModuleFileNameImpl(ModuleName, ModuleMapPath, in getCachedModuleFileName() [all …]
|
| H A D | Pragma.cpp | 783 &ModuleName) { in LexModuleName() argument 786 if (LexModuleNameComponent(PP, Tok, NameComponent, ModuleName.empty())) in LexModuleName() 788 ModuleName.push_back(NameComponent); in LexModuleName() 802 IdentifierInfo *ModuleName = ModuleNameLoc.first; in HandlePragmaModuleBuild() local 866 TheModuleLoader.createModuleFromSource(Loc, ModuleName->getName(), in HandlePragmaModuleBuild() 1115 ModuleName; in HandlePragma() local 1116 if (LexModuleName(PP, Tok, ModuleName)) in HandlePragma() 1120 for (auto IIAndLoc : ModuleName) { in HandlePragma() 1661 ModuleName; in HandlePragma() local 1662 if (LexModuleName(PP, Tok, ModuleName)) in HandlePragma() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | DbiModuleDescriptorBuilder.cpp | 43 DbiModuleDescriptorBuilder::DbiModuleDescriptorBuilder(StringRef ModuleName, in DbiModuleDescriptorBuilder() argument 46 : MSF(Msf), ModuleName(std::string(ModuleName)) { in DbiModuleDescriptorBuilder() 115 uint32_t M = ModuleName.size() + 1; in calculateSerializedLength() 155 if (auto EC = ModiWriter.writeCString(ModuleName)) in commit()
|
| H A D | DbiModuleDescriptor.cpp | 27 if (auto EC = Reader.readCString(Info.ModuleName)) in initialize() 76 StringRef DbiModuleDescriptor::getModuleName() const { return ModuleName; } in getModuleName() 81 uint32_t M = ModuleName.str().size() + 1; in getRecordLength()
|
| /openbsd-src/gnu/llvm/lldb/source/Breakpoint/ |
| H A D | BreakpointResolverAddress.cpp | 49 success = options_dict.HasKey(GetKey(OptionNames::ModuleName)); in CreateFromStructuredData() 52 GetKey(OptionNames::ModuleName), module_name); in CreateFromStructuredData() 73 options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName), in SerializeToStructuredData() 81 options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName), in SerializeToStructuredData()
|
| /openbsd-src/gnu/llvm/clang/tools/libclang/ |
| H A D | BuildSystem.cpp | 98 std::string ModuleName; member 112 MMD->ModuleName = name; in clang_ModuleMapDescriptor_setFrameworkModuleName() 135 OS << "framework module " << MMD->ModuleName << " {\n"; in clang_ModuleMapDescriptor_writeToBuffer()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | DbiModuleDescriptorBuilder.h | 67 DbiModuleDescriptorBuilder(StringRef ModuleName, uint32_t ModIndex, 106 StringRef getModuleName() const { return ModuleName; } in getModuleName() 139 std::string ModuleName; variable
|
| /openbsd-src/gnu/llvm/clang/include/clang/CodeGen/ |
| H A D | ModuleBuilder.h | 98 llvm::Module* StartModule(llvm::StringRef ModuleName, llvm::LLVMContext &C); 105 llvm::StringRef ModuleName,
|