Searched refs:SrcMgr (Results 1 - 25 of 100) sorted by relevance

1234

/freebsd-current/contrib/llvm-project/llvm/lib/TableGen/
H A DParser.cpp18 // of the input buffer in `SrcMgr`. This is kind of a hack, but allows for
21 SrcMgr = SourceMgr();
22 SrcMgr.takeSourceBuffersFrom(InputSrcMgr);
23 SrcMgr.setIncludeDirs(InputSrcMgr.getIncludeDirs());
24 SrcMgr.setDiagHandler(InputSrcMgr.getDiagHandler(),
28 auto *MainFileBuffer = SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID());
31 TGParser Parser(SrcMgr, /*Macros=*/std::nullopt, Records,
38 InputSrcMgr.takeSourceBuffersFrom(SrcMgr);
39 SrcMgr
[all...]
H A DDetailedRecordsBackend.cpp91 SrcMgr.getFormattedLocationNoOffset(Class->getLoc().front()));
108 SrcMgr.getFormattedLocationNoOffset(Rec->getLoc().front()));
131 OS << formatv(" |{0}|", SrcMgr.getFormattedLocationNoOffset(LocList[I]));
151 OS << formatv(" |{0}|", SrcMgr.getFormattedLocationNoOffset(Value->getLoc()));
190 SrcMgr.getFormattedLocationNoOffset(Value.getLoc()));
H A DError.cpp24 SourceMgr SrcMgr; member in namespace:llvm
37 SrcMgr.PrintMessage(Loc.front(), Kind, Msg);
39 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
96 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
108 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
H A DMain.cpp116 // Tell SrcMgr about this buffer, which is what TGParser will pick up.
117 SrcMgr.AddNewSourceBuffer(std::move(*FileOrErr), SMLoc());
121 SrcMgr.setIncludeDirs(IncludeDirs);
123 TGParser Parser(SrcMgr, MacroNames, Records, NoWarnOnUnusedTemplateArgs);
/freebsd-current/contrib/llvm-project/clang/lib/Basic/
H A DSourceLocation.cpp161 return SrcMgr->getFileID(*this);
166 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr);
170 return SrcMgr->getDecomposedExpansionLoc(*this);
175 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr);
180 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr);
187 return SrcMgr->getPresumedLoc(*this, UseLineDirectives);
192 return SrcMgr
[all...]
H A DSourceMgrAdapter.cpp29 : SrcMgr(SM), Diagnostics(Diagnostics), ErrorDiagID(ErrorDiagID),
53 FileID = SrcMgr.getOrCreateFileID(*DefaultFile, SrcMgr::C_User);
65 FileID = SrcMgr.createFileID(std::move(bufferCopy));
77 return SrcMgr.getLocForStartOfFile(KnownBuffer->second)
/freebsd-current/contrib/llvm-project/clang/lib/Lex/
H A DPPCallbacks.cpp19 SrcMgr::CharacteristicKind FileType) {}
26 SrcMgr::CharacteristicKind FileType) {
H A DScratchBuffer.cpp43 .SourceLineCache = SrcMgr::LineOffsetMapping();
/freebsd-current/contrib/llvm-project/clang/include/clang/Lex/
H A DDirectoryLookup.h52 /// SrcMgr::CharacteristicKind.
53 LLVM_PREFERRED_TYPE(SrcMgr::CharacteristicKind)
72 DirectoryLookup(DirectoryEntryRef Dir, SrcMgr::CharacteristicKind DT,
79 DirectoryLookup(const HeaderMap *Map, SrcMgr::CharacteristicKind DT,
140 SrcMgr::CharacteristicKind getDirCharacteristic() const {
141 return (SrcMgr::CharacteristicKind)DirCharacteristic;
146 return getDirCharacteristic() != SrcMgr::C_User;
/freebsd-current/contrib/llvm-project/llvm/lib/MCA/
H A DContext.cpp32 Context::createDefaultPipeline(const PipelineOptions &Opts, SourceMgr &SrcMgr, argument
37 return createInOrderPipeline(Opts, SrcMgr, CB);
47 auto Fetch = std::make_unique<EntryStage>(SrcMgr);
73 Context::createInOrderPipeline(const PipelineOptions &Opts, SourceMgr &SrcMgr, argument
81 auto Entry = std::make_unique<EntryStage>(SrcMgr);
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp50 SrcMgr::CharacteristicKind FileType,
54 SrcMgr::CharacteristicKind FileType) override;
57 bool ShouldShowHeader(SrcMgr::CharacteristicKind HeaderType) {
103 SrcMgr::CharacteristicKind FileType,
107 SrcMgr::CharacteristicKind FileType) override;
207 SrcMgr::CharacteristicKind NewFileType,
250 SrcMgr::CharacteristicKind FileType) {
291 static bool shouldRecordNewFile(SrcMgr::CharacteristicKind NewFileType,
293 return SrcMgr::isSystem(NewFileType) && !SM.isInSystemHeader(PrevLoc);
298 SrcMgr
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManagerInternals.h44 SrcMgr::CharacteristicKind FileKind;
53 SrcMgr::CharacteristicKind FileKind,
112 unsigned EntryExit, SrcMgr::CharacteristicKind FileKind);
H A DSourceManager.h72 namespace SrcMgr { namespace in namespace:clang
537 } // namespace SrcMgr
673 llvm::DenseMap<FileEntryRef, SrcMgr::ContentCache*> FileInfos;
711 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
717 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable;
723 llvm::PagedVector<SrcMgr::SLocEntry> LoadedSLocEntryTable;
775 mutable const SrcMgr::ContentCache *LastLineNoContentCache;
815 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery;
817 mutable std::unique_ptr<SrcMgr::SLocEntry> FakeSLocEntryForRecovery;
912 SrcMgr
[all...]
H A DSourceMgrAdapter.h32 SourceManager &SrcMgr; member in class:clang::SourceMgrAdapter
H A DSourceLocation.h369 const SourceManager *SrcMgr = nullptr; member in class:clang::SourceLocation::FullSourceLoc
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;
/freebsd-current/contrib/llvm-project/llvm/utils/TableGen/
H A DCTagsEmitter.cpp36 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Location));
38 auto LineAndColumn = SrcMgr.getLineAndColumn(Location);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/MCA/
H A DCustomBehaviour.h69 const mca::SourceMgr &SrcMgr; member in class:llvm::mca::CustomBehaviour
73 CustomBehaviour(const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, argument
75 : STI(STI), SrcMgr(SrcMgr), MCII(MCII) {}
H A DContext.h71 SourceMgr &SrcMgr,
77 SourceMgr &SrcMgr,
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h97 SrcMgr::CharacteristicKind FileType,
106 SrcMgr::CharacteristicKind FileType) override;
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp33 SrcMgr::CharacteristicKind FileType;
34 IncludedFile(FileID Id, SrcMgr::CharacteristicKind FileType)
58 void Process(FileID FileId, SrcMgr::CharacteristicKind FileType);
70 SrcMgr::CharacteristicKind FileType,
73 SrcMgr::CharacteristicKind FileType) override;
79 SrcMgr::CharacteristicKind FileType) override;
85 SrcMgr::CharacteristicKind FileType,
118 SrcMgr::CharacteristicKind FileType,
134 if (FileType == SrcMgr::C_System)
138 else if (FileType == SrcMgr
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCA/
H A DAMDGPUCustomBehaviour.cpp63 const mca::SourceMgr &SrcMgr,
65 : CustomBehaviour(STI, SrcMgr, MCII) {
129 const unsigned PrevInstIndex = PrevIR.getSourceIndex() % SrcMgr.size();
244 InstrWaitCntInfo.resize(SrcMgr.size());
246 for (const auto &EN : llvm::enumerate(SrcMgr.getInstructions())) {
343 const mca::SourceMgr &SrcMgr,
345 return new AMDGPUCustomBehaviour(STI, SrcMgr, MCII);
62 AMDGPUCustomBehaviour(const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII) argument
342 createAMDGPUCustomBehaviour(const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII) argument
/freebsd-current/contrib/llvm-project/llvm/lib/Object/
H A DModuleSymbolTable.cpp106 SourceMgr SrcMgr; local
107 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc());
109 MCContext MCCtx(TT, MAI.get(), MRI.get(), STI.get(), &SrcMgr);
118 createMCAsmParser(SrcMgr, MCCtx, Streamer, *MAI));
126 const SourceMgr &SrcMgr,
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h155 /// location to attach to the main buffer of `SrcMgr` after it gets moved to
157 void takeSourceBuffersFrom(SourceMgr &SrcMgr, argument
159 if (SrcMgr.Buffers.empty())
163 std::move(SrcMgr.Buffers.begin(), SrcMgr.Buffers.end(),
165 SrcMgr.Buffers.clear();
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp285 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, argument
289 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer());
324 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str,
328 createMCAsmParser(SrcMgr, Ctx, Str, MAI));
388 SourceMgr SrcMgr; local
390 // Tell SrcMgr about this buffer, which is what the parser will pick up.
391 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc());
395 SrcMgr.setIncludeDirs(IncludeDirs);
431 MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr,
323 AssembleInput(const char *ProgName, const Target *TheTarget, SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, MCAsmInfo &MAI, MCSubtargetInfo &STI, MCInstrInfo &MCII, MCTargetOptions const &MCOptions) argument
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp188 static unsigned getLocCookie(const SMDiagnostic &SMD, const SourceMgr &SrcMgr, argument
191 unsigned BufNum = SrcMgr.FindBufferContainingLoc(SMD.getLoc());
220 const SourceMgr &SrcMgr,
224 LocCookie = getLocCookie(SMD, SrcMgr, LocInfos);

Completed in 251 milliseconds

1234