Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DParser.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()
H A DError.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()
H A DDetailedRecordsBackend.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()
H A DTGLexer.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()
H A DMain.cpp117 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 DSourceManager.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 …]
H A DSourceLocation.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;
H A DSourceManagerInternals.h44 SrcMgr::CharacteristicKind FileKind;
53 SrcMgr::CharacteristicKind FileKind, in get()
112 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.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/contrib/llvm-project/llvm/lib/MCA/
H A DContext.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/contrib/llvm-project/clang/include/clang/InstallAPI/
H A DVisitor.h32 SourceManager &SrcMgr, Preprocessor &PP) in InstallAPIVisitor() argument
33 : Ctx(Ctx), SrcMgr(SrcMgr), PP(PP), in InstallAPIVisitor()
80 SourceManager &SrcMgr; variable
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.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 …]
H A DDiagnostic.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/contrib/llvm-project/llvm/tools/llvm-mc/
H A Dllvm-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/contrib/llvm-project/llvm/include/llvm/MCA/
H A DCustomBehaviour.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()
H A DContext.h71 SourceMgr &SrcMgr,
77 SourceMgr &SrcMgr,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/
H A DAMDGPUCustomBehaviour.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/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineModuleInfo.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/contrib/llvm-project/llvm/utils/TableGen/
H A DCTagsEmitter.cpp37 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Location)); in Tag()
39 auto LineAndColumn = SrcMgr.getLineAndColumn(Location); in Tag()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DModuleSymbolTable.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/contrib/llvm-project/clang/include/clang/Lex/
H A DPPCallbacks.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;
H A DHeaderSearch.h80 LLVM_PREFERRED_TYPE(SrcMgr::CharacteristicKind)
141 DirInfo(SrcMgr::C_User), External(false), isModuleHeader(false), in HeaderFileInfo()
551 SrcMgr::CharacteristicKind getFileDirFlavor(FileEntryRef File) { in getFileDirFlavor()
553 return (SrcMgr::CharacteristicKind)HFI->DirInfo; in getFileDirFlavor()
554 return (SrcMgr::CharacteristicKind)HeaderFileInfo().DirInfo; in getFileDirFlavor()
566 getFileInfo(File).DirInfo = SrcMgr::C_System; in MarkFileSystemHeader()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h157 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/clang/lib/Lex/
H A DPPCallbacks.cpp19 SrcMgr::CharacteristicKind FileType) {} in HasInclude()
26 SrcMgr::CharacteristicKind FileType) { in HasInclude()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h97 SrcMgr::CharacteristicKind FileType,
107 SrcMgr::CharacteristicKind FileType) override;

1234