/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
H A D | sanitizer_symbolize.cpp | 64 bool __sanitizer_symbolize_code(const char *ModuleName, uint64_t ModuleOffset, in __sanitizer_symbolize_code() argument 70 llvm::symbolize::Request Request{ModuleName, ModuleOffset}; in __sanitizer_symbolize_code() 78 ModuleName, in __sanitizer_symbolize_code() 85 ModuleName, in __sanitizer_symbolize_code() 96 bool __sanitizer_symbolize_data(const char *ModuleName, uint64_t ModuleOffset, in __sanitizer_symbolize_data() argument 102 llvm::symbolize::Request Request{ModuleName, ModuleOffset}; in __sanitizer_symbolize_data() 109 ModuleName, in __sanitizer_symbolize_data() 119 bool __sanitizer_symbolize_frame(const char *ModuleName, uint64_t ModuleOffset, in __sanitizer_symbolize_frame() argument 125 llvm::symbolize::Request Request{ModuleName, ModuleOffset}; in __sanitizer_symbolize_frame() 132 ModuleName, in __sanitizer_symbolize_frame()
|
/llvm-project/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() 166 AddBuffer, std::move(*Temp), std::string(EntryPath), ModuleName.str(), in localCache() 143 __anonbeeac91c0302(size_t Task, const Twine &ModuleName) localCache() argument
|
/llvm-project/llvm/test/tools/llvm-symbolizer/ |
H A D | output-style-json-code.test | 9 # NO-FILE:{"Address":"0x0","Error":{"Message":"[[MSG]]"},"ModuleName":"{{.*}}/no-file.exe"} 15 # NOT-FOUND:[{"Address":"0x10000000","ModuleName":"{{.*}}/Inputs/addr.exe","Symbol":[{"Column":0,"D… 20 # DISCRIM:[{"Address":"0x400575","ModuleName":"{{.*}}/Inputs/discrim","Symbol":[{"Column":17,"Discr… 28 # NO-INLINES:{"Loc":[],"ModuleName":"{{.*}}/Inputs/addr.exe","SymName":"something"} 30 # NO-INLINES-NEXT:{"Address":"0x40054d","ModuleName":"{{.*}}/Inputs/addr.exe","Symbol":[{"Column":3… 32 # NO-INLINES-NEXT:{"Loc":[],"ModuleName":"{{.*}}/Inputs/addr.exe","SymName":"some"} 38 # INLINE:{"Loc":[],"ModuleName":"{{.*}}/Inputs/addr.exe","SymName":"something"} 40 # INLINE-NEXT:{"Address":"0x40054d","ModuleName":"{{.*}}/Inputs/addr.exe","Symbol":[{"Column":3,"Di… 42 # INLINE-NEXT:{"Loc":[],"ModuleName":"{{.*}}/Inputs/addr.exe","SymName":"some"} 49 # INLINE-A2L:{"Loc":[],"ModuleName":"{{.*}}/Inputs/addr.exe","SymName":"something"} [all …]
|
H A D | output-style-json-data.test | 8 # NO-FILE:[{"Address":"0x0","Error":{"Message":"[[MSG]]"},"ModuleName":"{{.*}}no-file.o"}] 13 # INVARG:[{"Error":{"Message":"[[MSG]]"},"ModuleName":"tmp.o","SymName":"Z"}] 20 # NOT-FOUND:[{"Address":"0x10000000","Data":{"Name":"","Size":"0x0","Start":"0x0"},"ModuleName":"{{… 25 # CHECK:[{"Address":"0x0","Data":{"Name":"d1","Size":"0x8","Start":"0x0"},"ModuleName":"{{.*}}.o"}] 30 …ze":"0x8","Start":"0x0"},"ModuleName":"{{.*}}.o"},{"Address":"0x8","Data":{"Name":"d2","Size":"0x4…
|
H A D | output-style-json-frame.ll | 8 ; NO-FILE:[{"Address":"0x0","Error":{"Message":"[[MSG]]"},"ModuleName":"{{.*}}no-file.o"}] 13 ; INVARG:[{"Error":{"Message":"[[MSG]]"},"ModuleName":"tmp.o","SymName":"Z"}] 20 ; NOT-FOUND:[{"Address":"0x10000000","Frame":[],"ModuleName":"{{.*}}.o"}] 25 …ameOffset":12,"FunctionName":"f","Name":"c","Size":"0x4","TagOffset":""}],"ModuleName":"{{.*}}.o"}]
|
/llvm-project/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 …]
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaModule.cpp | 370 std::string ModuleName = stringFromPath(Path); in ActOnModuleDecl() 372 ModuleName += ":"; in ActOnModuleDecl() 373 ModuleName += stringFromPath(Partition); in ActOnModuleDecl() 378 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl() 386 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl() 396 if (auto *M = Map.findModule(ModuleName)) { in ActOnModuleDecl() 397 Diag(Path[0].second, diag::err_module_redefinition) << ModuleName; in ActOnModuleDecl() 408 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName); in ActOnModuleDecl() 421 PP.getIdentifierInfo(ModuleName), Path[0].second); in ActOnModuleDecl() 424 // we're building if `LangOpts.CurrentModule` equals to 'ModuleName' in ActOnModuleDecl() 371 std::string ModuleName = stringFromPath(Path); ActOnModuleDecl() local 585 std::string ModuleName; ActOnModuleImport() local [all...] |
/llvm-project/clang/include/clang/Tooling/DependencyScanning/ |
H A D | ModuleDepCollector.h | 39 std::string ModuleName; member 44 : ModuleName(M->getTopLevelModuleName()), in PrebuiltModuleDep() 53 std::string ModuleName; member 66 return std::tie(ModuleName, ContextHash) == 67 std::tie(Other.ModuleName, Other.ContextHash); 71 return std::tie(ModuleName, ContextHash) < 72 std::tie(Other.ModuleName, Other.ContextHash); 80 std::string ModuleName; member 335 return hash_combine(ID.ModuleName, ID.ContextHash);
|
/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
H A D | Symbolize.cpp | 89 LLVMSymbolizer::symbolizeCode(StringRef ModuleName, in symbolizeCode() 91 return symbolizeCodeCommon(ModuleName, ModuleOffset); in symbolizeCode() 140 LLVMSymbolizer::symbolizeInlinedCode(StringRef ModuleName, in symbolizeInlinedCode() 142 return symbolizeInlinedCodeCommon(ModuleName, ModuleOffset); 185 LLVMSymbolizer::symbolizeData(StringRef ModuleName, in symbolizeData() 187 return symbolizeDataCommon(ModuleName, ModuleOffset); 226 LLVMSymbolizer::symbolizeFrame(StringRef ModuleName, in symbolizeFrame() 228 return symbolizeFrameCommon(ModuleName, ModuleOffset); 274 LLVMSymbolizer::findSymbol(StringRef ModuleName, StringRef Symbol, in findSymbol() 276 return findSymbolCommon(ModuleName, Symbo 88 symbolizeCode(const std::string & ModuleName,object::SectionedAddress ModuleOffset) symbolizeCode() argument 137 symbolizeInlinedCode(const std::string & ModuleName,object::SectionedAddress ModuleOffset) symbolizeInlinedCode() argument 182 symbolizeData(const std::string & ModuleName,object::SectionedAddress ModuleOffset) symbolizeData() argument 223 symbolizeFrame(const std::string & ModuleName,object::SectionedAddress ModuleOffset) symbolizeFrame() argument 271 findSymbol(const std::string & ModuleName,StringRef Symbol,uint64_t Offset) findSymbol() argument 588 createModuleInfo(const ObjectFile * Obj,std::unique_ptr<DIContext> Context,StringRef ModuleName) createModuleInfo() argument 603 getOrCreateModuleInfo(const std::string & ModuleName) getOrCreateModuleInfo() argument [all...] |
/llvm-project/llvm/tools/llvm-symbolizer/ |
H A D | llvm-symbolizer.cpp | 162 std::string &ModuleName, object::BuildID &BuildID, in parseCommand() 164 ModuleName = BinaryName; in parseCommand() 218 ModuleName = Name; in parseCommand() 223 ModuleName = getSpaceDelimitedWord(InputString); in parseCommand() 224 if (ModuleName.empty()) in parseCommand() 279 void executeCommand(StringRef ModuleName, const T &ModuleSpec, Command Cmd, in executeCommand() 287 ModuleName, Symbol.empty() ? std::make_optional(Offset) : std::nullopt, in executeCommand() 327 static void printUnknownLineInfo(std::string ModuleName, DIPrinter &Printer) { in printUnknownLineInfo() 328 Request SymRequest = {ModuleName, std::nullopt, StringRef()}; in printUnknownLineInfo() 338 std::string ModuleName; in symbolizeInput() 160 parseCommand(StringRef BinaryName,bool IsAddr2Line,StringRef InputString,Command & Cmd,std::string & ModuleName,object::BuildID & BuildID,StringRef & Symbol,uint64_t & Offset) parseCommand() argument 277 executeCommand(StringRef ModuleName,const T & ModuleSpec,Command Cmd,StringRef Symbol,uint64_t Offset,uint64_t AdjustVMA,bool ShouldInline,OutputStyle Style,LLVMSymbolizer & Symbolizer,DIPrinter & Printer) executeCommand() argument 325 printUnknownLineInfo(std::string ModuleName,DIPrinter & Printer) printUnknownLineInfo() argument 336 std::string ModuleName; symbolizeInput() local [all...] |
/llvm-project/llvm/include/llvm/Support/ |
H A D | Caching.h | 42 unsigned Task, const Twine &ModuleName)>; 45 /// ID \p Task, a unique key \p Key, and a module name \p ModuleName, and 49 unsigned Task, StringRef Key, const Twine &ModuleName)>; 58 /// after the stream is written to. ModuleName is the unique module identifier 63 /// if (AddStreamFn AddStream = Cache(Task, Key, ModuleName)) 73 const Twine &ModuleName) { 75 return CacheFunction(Task, Key, ModuleName); 90 using AddBufferFn = std::function<void(unsigned Task, const Twine &ModuleName, 102 AddBufferFn AddBuffer = [](size_t Task, const Twine &ModuleName,
|
/llvm-project/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;
|
/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/ |
H A D | Symbolize.h | 80 Expected<DILineInfo> symbolizeCode(StringRef ModuleName, 88 symbolizeInlinedCode(StringRef ModuleName, 96 Expected<DIGlobal> symbolizeData(StringRef ModuleName, 103 symbolizeFrame(StringRef ModuleName, object::SectionedAddress ModuleOffset); 111 findSymbol(StringRef ModuleName, StringRef Symbol, uint64_t Offset); 133 Expected<SymbolizableModule *> getOrCreateModuleInfo(StringRef ModuleName); 169 StringRef ModuleName);
|
/llvm-project/clang/lib/Frontend/ |
H A D | CompilerInstance.cpp | 572 void ReadModuleName(StringRef ModuleName) override { in ReadModuleName() 575 LoadedModules.push_back(ModuleName.str()); in ReadModuleName() 1159 StringRef ModuleName, FrontendInputFile Input, 1165 llvm::TimeTraceScope TimeScope("Module Compile", ModuleName); in compileModuleImpl() 1172 << ModuleName; 1197 Invocation->getLangOpts().ModuleName = in __anonbe2026ac0602() 1198 ImportingInstance.getInvocation().getLangOpts().ModuleName; in __anonbe2026ac0602() 1201 Invocation->getLangOpts().CurrentModule = std::string(ModuleName); 1239 if (llvm::is_contained(DiagOpts.SystemHeaderWarningsModules, ModuleName)) 1254 SourceMgr.pushModuleBuildStack(ModuleName, 1164 compileModuleImpl(CompilerInstance & ImportingInstance,SourceLocation ImportLoc,StringRef ModuleName,FrontendInputFile Input,StringRef OriginalModuleMapFile,StringRef ModuleFileName,llvm::function_ref<void (CompilerInstance &)> PreBuildStep=[](CompilerInstance &){},llvm::function_ref<void (CompilerInstance &)> PostBuildStep=[](CompilerInstance &){}) compileModuleImpl() argument 1819 selectModuleSource(Module * M,StringRef ModuleName,std::string & ModuleFilename,const std::map<std::string,std::string,std::less<>> & BuiltModules,HeaderSearch & HS) selectModuleSource() argument 1853 findOrCompileModuleAndReadAST(StringRef ModuleName,SourceLocation ImportLoc,SourceLocation ModuleNameLoc,bool IsInclusionDirective) findOrCompileModuleAndReadAST() argument 2022 StringRef ModuleName = Path[0].first->getName(); loadModule() local 2205 createModuleFromSource(SourceLocation ImportLoc,StringRef ModuleName,StringRef Source) createModuleFromSource() argument [all...] |
H A D | DiagnosticRenderer.cpp | 230 StringRef ModuleName) { in emitImportStackRecursively() 231 if (ModuleName.empty()) { in emitImportStackRecursively() argument 242 emitImportLocation(Loc, PLoc, ModuleName); in emitImportStackRecursively() 607 StringRef ModuleName) { in emitImportLocation() 611 Message << "in module '" << ModuleName; in emitImportLocation() 621 StringRef ModuleName) { in emitBuildingModuleLocation() 626 Message << "while building module '" << ModuleName << "' imported from " in emitBuildingModuleLocation() 629 Message << "while building module '" << ModuleName << "':"; in emitBuildingModuleLocation() 608 emitImportLocation(FullSourceLoc Loc,PresumedLoc PLoc,StringRef ModuleName) emitImportLocation() argument 622 emitBuildingModuleLocation(FullSourceLoc Loc,PresumedLoc PLoc,StringRef ModuleName) emitBuildingModuleLocation() argument
|
/llvm-project/clang/lib/Tooling/DependencyScanning/ |
H A D | DependencyScanningWorker.cpp | 106 void visitImport(StringRef ModuleName, StringRef Filename) override { in visitImport() argument 107 if (PrebuiltModuleFiles.insert({ModuleName.str(), Filename.str()}).second) in visitImport() 290 std::optional<StringRef> ModuleName = std::nullopt) in DependencyScanningAction() argument 294 DisableFree(DisableFree), ModuleName(ModuleName) {} in DependencyScanningAction() 439 else if (ModuleName) in runInvocation() 440 Action = std::make_unique<GetDependenciesByModuleNameAction>(*ModuleName); in runInvocation() 487 std::optional<StringRef> ModuleName; in DependencyScanningWorker() 527 std::optional<StringRef> ModuleName) { in computeDependencies() 541 DiagPrinter, ModuleName)) in forEachDriverJob() 473 std::optional<StringRef> ModuleName; global() member in __anond7e831410111::DependencyScanningAction 510 computeDependencies(StringRef WorkingDirectory,const std::vector<std::string> & CommandLine,DependencyConsumer & Consumer,DependencyActionController & Controller,std::optional<StringRef> ModuleName) computeDependencies() argument 593 computeDependencies(StringRef WorkingDirectory,const std::vector<std::string> & CommandLine,DependencyConsumer & Consumer,DependencyActionController & Controller,DiagnosticConsumer & DC,std::optional<StringRef> ModuleName) computeDependencies() argument [all...] |
/llvm-project/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 | 26 if (auto EC = Reader.readCString(Info.ModuleName)) in initialize() 75 StringRef DbiModuleDescriptor::getModuleName() const { return ModuleName; } in getModuleName() 80 uint32_t M = ModuleName.str().size() + 1; in getRecordLength()
|
/llvm-project/clang/lib/Lex/ |
H A D | Pragma.cpp | 790 &ModuleName) { 793 if (LexModuleNameComponent(PP, Tok, NameComponent, ModuleName.empty())) in LexModuleName() 795 ModuleName.push_back(NameComponent); in LexModuleName() 809 IdentifierInfo *ModuleName = ModuleNameLoc.first; in HandlePragmaModuleBuild() 873 TheModuleLoader.createModuleFromSource(Loc, ModuleName->getName(), in HandlePragmaModuleBuild() 1113 ModuleName; in HandlePragma() 1114 if (LexModuleName(PP, Tok, ModuleName)) in HandlePragma() 1118 for (auto IIAndLoc : ModuleName) { in HandlePragma() 1695 ModuleName; in HandlePragma() 1696 if (LexModuleName(PP, Tok, ModuleName)) in HandlePragma() 794 LexModuleName(Preprocessor & PP,Token & Tok,llvm::SmallVectorImpl<std::pair<IdentifierInfo *,SourceLocation>> & ModuleName) LexModuleName() argument 813 IdentifierInfo *ModuleName = ModuleNameLoc.first; HandlePragmaModuleBuild() local 1117 ModuleName; HandlePragma() local 1699 ModuleName; HandlePragma() local 1736 ModuleName; HandlePragma() local 1826 ModuleName; HandlePragma() local [all...] |
H A D | HeaderSearch.cpp | 205 std::string HeaderSearch::getPrebuiltModuleFileName(StringRef ModuleName, 208 auto i(HSOpts->PrebuiltModuleFiles.find(ModuleName)); in getPrebuiltModuleFileName() 220 if (ModuleName.contains(':')) in getPrebuiltModuleFileName() 224 llvm::sys::path::append(Result, ModuleName.split(':').first + "-" + in getPrebuiltModuleFileName() 225 ModuleName.split(':').second + in getPrebuiltModuleFileName() 228 llvm::sys::path::append(Result, ModuleName + ".pcm"); in getPrebuiltModuleFileName() 239 StringRef ModuleName = Module->Name; in getPrebuiltImplicitModuleFileName() 247 getCachedModuleFileNameImpl(ModuleName, ModuleMapPath, CachePath); in getPrebuiltImplicitModuleFileName() 254 std::string HeaderSearch::getCachedModuleFileName(StringRef ModuleName, 256 return getCachedModuleFileNameImpl(ModuleName, ModuleMapPat in getCachedModuleFileName() 206 getPrebuiltModuleFileName(StringRef ModuleName,bool FileMapOnly) getPrebuiltModuleFileName() argument 240 StringRef ModuleName = Module->Name; getPrebuiltImplicitModuleFileName() local 255 getCachedModuleFileName(StringRef ModuleName,StringRef ModuleMapPath) getCachedModuleFileName() argument 261 getCachedModuleFileNameImpl(StringRef ModuleName,StringRef ModuleMapPath,StringRef CachePath) getCachedModuleFileNameImpl() argument 295 lookupModule(StringRef ModuleName,SourceLocation ImportLoc,bool AllowSearch,bool AllowExtraModuleMapSearch) lookupModule() argument 324 lookupModule(StringRef ModuleName,StringRef SearchName,SourceLocation ImportLoc,bool AllowExtraModuleMapSearch) lookupModule() argument 646 StringRef ModuleName(Filename.begin(), SlashPos); DoFrameworkLookup() local 1748 StringRef ModuleName = llvm::sys::path::stem(TopFrameworkDir->getName()); findUsableModuleForFrameworkHeader() local [all...] |
/llvm-project/clang/tools/clang-scan-deps/ |
H A D | ClangScanDeps.cpp | 88 static std::string ModuleName; 202 ModuleName = A->getValue(); in ParseArgs() 352 JOS.attribute("module-name", StringRef(MID.ModuleName)); in toJSONSorted() 477 JOS.attribute("name", StringRef(MD.ID.ModuleName)); in printFullOutput() 545 return std::tie(ID.ModuleName, InputIndex) < 546 std::tie(Other.ID.ModuleName, Other.InputIndex); 589 StringRef ModuleName, llvm::Expected<ModuleDepsGraph> &MaybeModuleGraph, 593 [&ModuleName, &Errs](llvm::StringError &Err) { in printDependencies() 596 << ModuleName << ":\n"; in printDependencies() 622 Object Provided{{"logical-name", R.Provides->ModuleName}, in printDependencies() 83 static std::string ModuleName; global() variable 573 handleModuleResult(StringRef ModuleName,llvm::Expected<ModuleDepsGraph> & MaybeModuleGraph,FullDeps & FD,size_t InputIndex,SharedStream & OS,SharedStream & Errs) handleModuleResult() argument [all...] |
/llvm-project/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() 72 options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName), in SerializeToStructuredData() 81 options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName), in SerializeToStructuredData()
|
/llvm-project/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()
|
/llvm-project/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
|
/llvm-project/clang/include/clang/ExtractAPI/Serialization/ |
H A D | SymbolGraphSerializer.h | 173 Object serializeGraph(StringRef ModuleName, ExtendedModule &&EM); 179 StringRef ModuleName, ExtendedModule &&EM); 193 Object serializeModuleObject(StringRef ModuleName) const;
|