Home
last modified time | relevance | path

Searched refs:SrcMgr (Results 1 – 25 of 107) sorted by relevance

12345

/freebsd-14-stable/contrib/llvm-project/clang/lib/Basic/
HDSourceLocation.cpp161 return SrcMgr->getFileID(*this); in getFileID()
166 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc()
170 return SrcMgr->getDecomposedExpansionLoc(*this); in getDecomposedExpansionLoc()
175 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
180 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc()
187 return SrcMgr->getPresumedLoc(*this, UseLineDirectives); in getPresumedLoc()
192 return SrcMgr->isMacroArgExpansion(*this, StartLoc); in isMacroArgExpansion()
197 return FullSourceLoc(SrcMgr->getImmediateMacroCallerLoc(*this), *SrcMgr); in getImmediateMacroCallerLoc()
205 SrcMgr->getModuleImportLoc(*this); in getModuleImportLoc()
206 return std::make_pair(FullSourceLoc(ImportLoc.first, *SrcMgr), in getModuleImportLoc()
[all …]
HDSourceMgrAdapter.cpp29 : SrcMgr(SM), Diagnostics(Diagnostics), ErrorDiagID(ErrorDiagID), in SourceMgrAdapter()
53 FileID = SrcMgr.getOrCreateFileID(*DefaultFile, SrcMgr::C_User); in mapLocation()
65 FileID = SrcMgr.createFileID(std::move(bufferCopy)); in mapLocation()
77 return SrcMgr.getLocForStartOfFile(KnownBuffer->second) in mapLocation()
HDSourceManager.cpp47 using namespace SrcMgr;
213 SrcMgr::CharacteristicKind FileKind) { in AddLineNote()
283 SrcMgr::CharacteristicKind FileKind) { in AddLineNote()
291 SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
390 SrcMgr::ContentCache *&Slot = FileInfos[FileInfo.first]; in initializeForReplay()
440 const SrcMgr::SLocEntry &SourceManager::loadSLocEntry(unsigned Index, in loadSLocEntry()
445 SrcMgr::SLocEntry &SourceManager::loadSLocEntry(unsigned Index, bool *Invalid) { in loadSLocEntry()
456 SrcMgr::C_User, ""))); in loadSLocEntry()
495 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
497 FakeContentCacheForRecovery = std::make_unique<SrcMgr::ContentCache>(); in getFakeContentCacheForRecovery()
[all …]
HDDiagnostic.cpp181 void DiagnosticsEngine::DiagStateMap::append(SourceManager &SrcMgr, in append() argument
187 std::pair<FileID, unsigned> Decomp = SrcMgr.getDecomposedLoc(Loc); in append()
189 for (File *F = getFile(SrcMgr, Decomp.first); F; in append()
207 DiagnosticsEngine::DiagStateMap::lookup(SourceManager &SrcMgr, in lookup() argument
213 std::pair<FileID, unsigned> Decomp = SrcMgr.getDecomposedLoc(Loc); in lookup()
214 const File *F = getFile(SrcMgr, Decomp.first); in lookup()
229 DiagnosticsEngine::DiagStateMap::getFile(SourceManager &SrcMgr, in getFile() argument
240 std::pair<FileID, unsigned> Decomp = SrcMgr.getDecomposedIncludedLoc(ID); in getFile()
241 F.Parent = getFile(SrcMgr, Decomp.first); in getFile()
257 void DiagnosticsEngine::DiagStateMap::dump(SourceManager &SrcMgr, in dump() argument
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/lib/TableGen/
HDParser.cpp21 SrcMgr = SourceMgr(); in TableGenParseFile()
22 SrcMgr.takeSourceBuffersFrom(InputSrcMgr); in TableGenParseFile()
23 SrcMgr.setIncludeDirs(InputSrcMgr.getIncludeDirs()); in TableGenParseFile()
24 SrcMgr.setDiagHandler(InputSrcMgr.getDiagHandler(), in TableGenParseFile()
28 auto *MainFileBuffer = SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID()); in TableGenParseFile()
31 TGParser Parser(SrcMgr, /*Macros=*/std::nullopt, Records, in TableGenParseFile()
38 InputSrcMgr.takeSourceBuffersFrom(SrcMgr); in TableGenParseFile()
39 SrcMgr = SourceMgr(); in TableGenParseFile()
HDError.cpp24 SourceMgr SrcMgr; variable
37 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage()
39 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note, in PrintMessage()
96 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning()
108 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
HDDetailedRecordsBackend.cpp91 SrcMgr.getFormattedLocationNoOffset(Class->getLoc().front())); in printClasses()
108 SrcMgr.getFormattedLocationNoOffset(Rec->getLoc().front())); in printRecords()
131 OS << formatv(" |{0}|", SrcMgr.getFormattedLocationNoOffset(LocList[I])); in printDefms()
151 OS << formatv(" |{0}|", SrcMgr.getFormattedLocationNoOffset(Value->getLoc())); in printTemplateArgs()
190 SrcMgr.getFormattedLocationNoOffset(Value.getLoc())); in printFields()
HDTGLexer.cpp47 TGLexer::TGLexer(SourceMgr &SM, ArrayRef<std::string> Macros) : SrcMgr(SM) { in TGLexer()
48 CurBuffer = SrcMgr.getMainFileID(); in TGLexer()
49 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in TGLexer()
82 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in processEOF()
91 CurBuffer = SrcMgr.FindBufferContainingLoc(ParentIncludeLoc); in processEOF()
92 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in processEOF()
407 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), in LexInclude()
416 CurBuf = SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(); in LexInclude()
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Basic/
HDSourceManager.h72 namespace SrcMgr {
677 llvm::DenseMap<FileEntryRef, SrcMgr::ContentCache*> FileInfos;
715 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
721 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable;
727 llvm::PagedVector<SrcMgr::SLocEntry> LoadedSLocEntryTable;
779 mutable const SrcMgr::ContentCache *LastLineNoContentCache;
819 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery;
821 mutable std::unique_ptr<SrcMgr::SLocEntry> FakeSLocEntryForRecovery;
916 SrcMgr::CharacteristicKind FileCharacter,
925 SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User,
[all …]
HDSourceLocation.h370 const SourceManager *SrcMgr = nullptr;
377 : SourceLocation(Loc), SrcMgr(&SM) {}
380 bool hasManager() const { return SrcMgr != nullptr; }
384 assert(SrcMgr && "SourceManager is NULL.");
385 return *SrcMgr;
441 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!");
460 LHS.SrcMgr == RHS.SrcMgr;
HDSourceManagerInternals.h44 SrcMgr::CharacteristicKind FileKind;
53 SrcMgr::CharacteristicKind FileKind, in get()
112 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
/freebsd-14-stable/contrib/llvm-project/clang/lib/Frontend/
HDHeaderIncludeGen.cpp50 SrcMgr::CharacteristicKind FileType,
54 SrcMgr::CharacteristicKind FileType) override;
57 bool ShouldShowHeader(SrcMgr::CharacteristicKind HeaderType) { in ShouldShowHeader()
103 SrcMgr::CharacteristicKind FileType,
107 SrcMgr::CharacteristicKind FileType) override;
207 SrcMgr::CharacteristicKind NewFileType, in FileChanged()
250 SrcMgr::CharacteristicKind FileType) { in FileSkipped()
291 static bool shouldRecordNewFile(SrcMgr::CharacteristicKind NewFileType, in shouldRecordNewFile()
293 return SrcMgr::isSystem(NewFileType) && !SM.isInSystemHeader(PrevLoc); in shouldRecordNewFile()
298 SrcMgr::CharacteristicKind NewFileType, FileID PrevFID) { in FileChanged()
[all …]
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Lex/
HDDirectoryLookup.h53 LLVM_PREFERRED_TYPE(SrcMgr::CharacteristicKind)
72 DirectoryLookup(DirectoryEntryRef Dir, SrcMgr::CharacteristicKind DT, in DirectoryLookup()
79 DirectoryLookup(const HeaderMap *Map, SrcMgr::CharacteristicKind DT, in DirectoryLookup()
140 SrcMgr::CharacteristicKind getDirCharacteristic() const { in getDirCharacteristic()
141 return (SrcMgr::CharacteristicKind)DirCharacteristic; in getDirCharacteristic()
146 return getDirCharacteristic() != SrcMgr::C_User; in isSystemHeaderDirectory()
HDPPCallbacks.h50 SrcMgr::CharacteristicKind FileType,
72 SrcMgr::CharacteristicKind FileType, in LexedFileChanged()
85 SrcMgr::CharacteristicKind FileType) {} in FileSkipped()
175 SrcMgr::CharacteristicKind FileType) {} in InclusionDirective()
373 SrcMgr::CharacteristicKind FileType);
481 SrcMgr::CharacteristicKind FileType, in FileChanged()
488 SrcMgr::CharacteristicKind FileType, FileID PrevFID, in LexedFileChanged()
495 SrcMgr::CharacteristicKind FileType) override { in FileSkipped()
529 SrcMgr::CharacteristicKind FileType) override { in InclusionDirective()
624 SrcMgr::CharacteristicKind FileType) override;
/freebsd-14-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
HDInclusionRewriter.cpp33 SrcMgr::CharacteristicKind FileType;
34 IncludedFile(FileID Id, SrcMgr::CharacteristicKind FileType) in IncludedFile()
58 void Process(FileID FileId, SrcMgr::CharacteristicKind FileType);
70 SrcMgr::CharacteristicKind FileType,
73 SrcMgr::CharacteristicKind FileType) override;
80 SrcMgr::CharacteristicKind FileType) override;
86 SrcMgr::CharacteristicKind FileType,
119 SrcMgr::CharacteristicKind FileType, in WriteLineInfo()
135 if (FileType == SrcMgr::C_System) in WriteLineInfo()
139 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/lib/MCA/
HDContext.cpp32 Context::createDefaultPipeline(const PipelineOptions &Opts, SourceMgr &SrcMgr, in createDefaultPipeline() argument
37 return createInOrderPipeline(Opts, SrcMgr, CB); in createDefaultPipeline()
47 auto Fetch = std::make_unique<EntryStage>(SrcMgr); in createDefaultPipeline()
73 Context::createInOrderPipeline(const PipelineOptions &Opts, SourceMgr &SrcMgr, in createInOrderPipeline() argument
81 auto Entry = std::make_unique<EntryStage>(SrcMgr); in createInOrderPipeline()
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/InstallAPI/
HDVisitor.h32 SourceManager &SrcMgr, Preprocessor &PP) in InstallAPIVisitor() argument
33 : Ctx(Ctx), SrcMgr(SrcMgr), PP(PP), in InstallAPIVisitor()
80 SourceManager &SrcMgr; variable
/freebsd-14-stable/contrib/llvm-project/llvm/include/llvm/MCA/
HDCustomBehaviour.h69 const mca::SourceMgr &SrcMgr; variable
73 CustomBehaviour(const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, in CustomBehaviour() argument
75 : STI(STI), SrcMgr(SrcMgr), MCII(MCII) {} in CustomBehaviour()
/freebsd-14-stable/contrib/llvm-project/llvm/tools/llvm-mc/
HDllvm-mc.cpp276 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument
280 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput()
315 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument
319 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput()
383 SourceMgr SrcMgr; in main() local
386 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc()); in main()
390 SrcMgr.setIncludeDirs(IncludeDirs); in main()
424 MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr, in main()
568 Res = AsLexInput(SrcMgr, *MAI, Out->os()); in main()
571 Res = AssembleInput(ProgName, TheTarget, SrcMgr, Ctx, *Str, *MAI, *STI, in main()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/
HDAMDGPUCustomBehaviour.cpp62 const mca::SourceMgr &SrcMgr, in AMDGPUCustomBehaviour() argument
64 : CustomBehaviour(STI, SrcMgr, MCII) { in AMDGPUCustomBehaviour()
128 const unsigned PrevInstIndex = PrevIR.getSourceIndex() % SrcMgr.size(); in handleWaitCnt()
243 InstrWaitCntInfo.resize(SrcMgr.size()); in generateWaitCntInfo()
245 for (const auto &EN : llvm::enumerate(SrcMgr.getInstructions())) { in generateWaitCntInfo()
341 const mca::SourceMgr &SrcMgr, in createAMDGPUCustomBehaviour() argument
343 return new AMDGPUCustomBehaviour(STI, SrcMgr, MCII); in createAMDGPUCustomBehaviour()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/CodeGen/
HDMachineModuleInfo.cpp188 static uint64_t getLocCookie(const SMDiagnostic &SMD, const SourceMgr &SrcMgr, in getLocCookie() argument
191 unsigned BufNum = SrcMgr.FindBufferContainingLoc(SMD.getLoc()); in getLocCookie()
219 const SourceMgr &SrcMgr, in doInitialization()
223 LocCookie = getLocCookie(SMD, SrcMgr, LocInfos); in doInitialization()
245 const SourceMgr &SrcMgr, in run()
249 LocCookie = getLocCookie(SMD, SrcMgr, LocInfos); in run()
/freebsd-14-stable/contrib/llvm-project/llvm/utils/TableGen/
HDCTagsEmitter.cpp37 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Location)); in Tag()
39 auto LineAndColumn = SrcMgr.getLineAndColumn(Location); in Tag()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Object/
HDModuleSymbolTable.cpp106 SourceMgr SrcMgr; in initializeRecordStreamer() local
107 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc()); in initializeRecordStreamer()
109 MCContext MCCtx(TT, MAI.get(), MRI.get(), STI.get(), &SrcMgr); in initializeRecordStreamer()
118 createMCAsmParser(SrcMgr, MCCtx, Streamer, *MAI)); in initializeRecordStreamer()
126 const SourceMgr &SrcMgr, in initializeRecordStreamer()
/freebsd-14-stable/contrib/llvm-project/llvm/include/llvm/Support/
HDSourceMgr.h157 void takeSourceBuffersFrom(SourceMgr &SrcMgr,
159 if (SrcMgr.Buffers.empty())
163 std::move(SrcMgr.Buffers.begin(), SrcMgr.Buffers.end(),
165 SrcMgr.Buffers.clear();
/freebsd-14-stable/contrib/llvm-project/clang/lib/Lex/
HDPPCallbacks.cpp19 SrcMgr::CharacteristicKind FileType) {} in HasInclude()
26 SrcMgr::CharacteristicKind FileType) { in HasInclude()

12345