/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | SourceLocation.cpp | 161 return SrcMgr->getFileID(*this); in getFileID() 166 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc() 175 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc() 180 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc() 197 return FullSourceLoc(SrcMgr->getImmediateMacroCallerLoc(*this), *SrcMgr); in getImmediateMacroCallerLoc() 205 SrcMgr->getModuleImportLoc(*this); in getModuleImportLoc() 212 return SrcMgr->getFileOffset(*this); in getFileOffset() 257 return SrcMgr->isInSystemHeader(*this); in isInSystemHeader() 266 SourceLocation::dump(*SrcMgr); in dump() 276 return SrcMgr->getBufferData(SrcMgr->getFileID(*this), Invalid); in getBufferData() [all …]
|
H A D | SourceMgrAdapter.cpp | 29 : 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()
|
H A D | SourceManager.cpp | 46 using namespace SrcMgr; 283 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote() 382 SrcMgr::ContentCache *&Slot = FileInfos[FileInfo.first]; in initializeForReplay() 444 SrcMgr::C_User, ""))); in loadSLocEntry() 1026 const SrcMgr::ExpansionInfo &ExpInfo = in isAtStartOfImmediateMacroExpansion() 1062 const SrcMgr::ExpansionInfo &ExpInfo = in isAtEndOfImmediateMacroExpansion() 1409 SrcMgr::CharacteristicKind 1417 const SrcMgr::FileInfo &FI = SEntry->getFile(); in getFileCharacteristic() 1468 const SrcMgr::FileInfo &FI = Entry.getFile(); in getPresumedLoc() 1469 const SrcMgr::ContentCache *C = &FI.getContentCache(); in getPresumedLoc() [all …]
|
H A D | Diagnostic.cpp | 189 for (File *F = getFile(SrcMgr, Decomp.first); F; in append() 207 DiagnosticsEngine::DiagStateMap::lookup(SourceManager &SrcMgr, in lookup() argument 214 const File *F = getFile(SrcMgr, Decomp.first); in lookup() 229 DiagnosticsEngine::DiagStateMap::getFile(SourceManager &SrcMgr, in getFile() argument 241 F.Parent = getFile(SrcMgr, Decomp.first); in getFile() 260 CurDiagStateLoc.print(llvm::errs(), SrcMgr); in dump() 277 SrcMgr.getDecomposedIncludedLoc(ID); in dump() 281 SrcMgr.getLocForStartOfFile(Decomp.first) in dump() 283 .print(llvm::errs(), SrcMgr); in dump() 301 SrcMgr.getLocForStartOfFile(ID) in dump() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | Parser.cpp | 21 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()
|
H A D | Error.cpp | 24 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()
|
H A D | DetailedRecordsBackend.cpp | 91 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()
|
H A D | Main.cpp | 117 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc()); in TableGenMain() 121 SrcMgr.setIncludeDirs(IncludeDirs); in TableGenMain() 123 TGParser Parser(SrcMgr, MacroNames, Records, NoWarnOnUnusedTemplateArgs); in TableGenMain()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | SourceManager.h | 72 namespace SrcMgr { 711 std::vector<SrcMgr::ContentCache*> MemBufferInfos; 717 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable; 921 SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User, 930 SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User, 1589 SrcMgr::CharacteristicKind FileKind); 1749 const SrcMgr::SLocEntry &getSLocEntry(FileID FID, 1840 const SrcMgr::SLocEntry &getSLocEntryByID(int ID, 1848 const SrcMgr::SLocEntry & 1880 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID); in isOffsetInFileID() [all …]
|
H A D | SourceLocation.h | 369 const SourceManager *SrcMgr = nullptr; 376 : SourceLocation(Loc), SrcMgr(&SM) {} 379 bool hasManager() const { return SrcMgr != nullptr; } 383 assert(SrcMgr && "SourceManager is NULL."); 384 return *SrcMgr; 440 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!"); 459 LHS.SrcMgr == RHS.SrcMgr;
|
H A D | SourceManagerInternals.h | 44 SrcMgr::CharacteristicKind FileKind; 53 SrcMgr::CharacteristicKind FileKind, in get() 112 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | HeaderIncludeGen.cpp | 50 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/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | DirectoryLookup.h | 53 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()
|
H A D | PPCallbacks.h | 49 SrcMgr::CharacteristicKind FileType, 71 SrcMgr::CharacteristicKind FileType, in LexedFileChanged() 84 SrcMgr::CharacteristicKind FileType) {} in FileSkipped() 143 SrcMgr::CharacteristicKind FileType) {} in InclusionDirective() 337 SrcMgr::CharacteristicKind FileType); 445 SrcMgr::CharacteristicKind FileType, in FileChanged() 452 SrcMgr::CharacteristicKind FileType, FileID PrevFID, in LexedFileChanged() 459 SrcMgr::CharacteristicKind FileType) override { in FileSkipped() 477 SrcMgr::CharacteristicKind FileType) override { in InclusionDirective() 566 SrcMgr::CharacteristicKind FileType) override;
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | InclusionRewriter.cpp | 33 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; 85 SrcMgr::CharacteristicKind FileType, 134 if (FileType == SrcMgr::C_System) in WriteLineInfo() 138 else if (FileType == SrcMgr::C_ExternCSystem) in WriteLineInfo() 192 const Module *Imported, SrcMgr::CharacteristicKind FileType) { in InclusionDirective() 573 Rewrite->Process(PP.getPredefinesFileID(), SrcMgr::C_User); in RewriteIncludesInInput() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/ |
H A D | Context.cpp | 32 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/contrib/llvm-project/llvm/include/llvm/MCA/ |
H A D | CustomBehaviour.h | 69 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()
|
H A D | Context.h | 71 SourceMgr &SrcMgr, 77 SourceMgr &SrcMgr,
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mc/ |
H A D | llvm-mc.cpp | 285 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument 289 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer()); in AsLexInput() 324 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, in AssembleInput() argument 328 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput() 388 SourceMgr SrcMgr; in main() local 391 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc()); in main() 395 SrcMgr.setIncludeDirs(IncludeDirs); in main() 431 MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr, in main() 585 Res = AsLexInput(SrcMgr, *MAI, Out->os()); in main() 588 Res = AssembleInput(ProgName, TheTarget, SrcMgr, Ctx, *Str, *MAI, *STI, in main() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/ |
H A D | AMDGPUCustomBehaviour.cpp | 63 const mca::SourceMgr &SrcMgr, in AMDGPUCustomBehaviour() argument 65 : CustomBehaviour(STI, SrcMgr, MCII) { in AMDGPUCustomBehaviour() 129 const unsigned PrevInstIndex = PrevIR.getSourceIndex() % SrcMgr.size(); in handleWaitCnt() 244 InstrWaitCntInfo.resize(SrcMgr.size()); in generateWaitCntInfo() 246 for (const auto &EN : llvm::enumerate(SrcMgr.getInstructions())) { in generateWaitCntInfo() 343 const mca::SourceMgr &SrcMgr, in createAMDGPUCustomBehaviour() argument 345 return new AMDGPUCustomBehaviour(STI, SrcMgr, MCII); in createAMDGPUCustomBehaviour()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | ModuleSymbolTable.cpp | 106 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/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | CTagsEmitter.cpp | 36 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Location)); in Tag() 38 auto LineAndColumn = SrcMgr.getLineAndColumn(Location); in Tag()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPCallbacks.cpp | 19 SrcMgr::CharacteristicKind FileType) {} in HasInclude() 26 SrcMgr::CharacteristicKind FileType) { in HasInclude()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | SourceMgr.h | 157 void takeSourceBuffersFrom(SourceMgr &SrcMgr, 159 if (SrcMgr.Buffers.empty()) 163 std::move(SrcMgr.Buffers.begin(), SrcMgr.Buffers.end(), 165 SrcMgr.Buffers.clear();
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineModuleInfo.cpp | 188 static unsigned getLocCookie(const SMDiagnostic &SMD, const SourceMgr &SrcMgr, in getLocCookie() argument 191 unsigned BufNum = SrcMgr.FindBufferContainingLoc(SMD.getLoc()); in getLocCookie() 220 const SourceMgr &SrcMgr, in doInitialization() 224 LocCookie = getLocCookie(SMD, SrcMgr, LocInfos); in doInitialization()
|