Searched defs:SrcMgr (Results 1 - 25 of 30) sorted by relevance

12

/external/swiftshader/third_party/LLVM/lib/TableGen/
H A DError.cpp21 SourceMgr SrcMgr; member in namespace:llvm
24 SrcMgr.PrintMessage(ErrorLoc, Msg, "error");
28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error");
H A DTGParser.h56 TGParser(SourceMgr &SrcMgr, RecordKeeper &records) : argument
57 Lex(SrcMgr), CurMultiClass(0), Records(records) {}
H A DTGLexer.h61 SourceMgr &SrcMgr; member in class:llvm::TGLexer
79 TGLexer(SourceMgr &SrcMgr);
/external/llvm/lib/TableGen/
H A DError.cpp23 SourceMgr SrcMgr; member in namespace:llvm
36 SrcMgr.PrintMessage(Loc.front(), Kind, Msg);
38 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
47 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
59 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
H A DTGParser.h87 TGParser(SourceMgr &SrcMgr, RecordKeeper &records) argument
88 : Lex(SrcMgr), CurMultiClass(nullptr), Records(records), AnonCounter(0) {}
H A DTGLexer.h67 SourceMgr &SrcMgr; member in class:llvm::TGLexer
89 TGLexer(SourceMgr &SrcMgr);
/external/swiftshader/third_party/LLVM/tools/llvm-mc/
H A Dllvm-mc.cpp241 SourceMgr SrcMgr; local
243 // Tell SrcMgr about this buffer, which is what TGParser will pick up.
244 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
248 SrcMgr.setIncludeDirs(IncludeDirs);
258 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0));
270 SrcMgr.PrintMessage(Lexer.getLoc(), "unknown token", "warning");
354 SourceMgr SrcMgr; local
356 // Tell SrcMgr about this buffer, which is what the parser will pick up.
357 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
361 SrcMgr
[all...]
/external/llvm/lib/Object/
H A DIRObjectFile.cpp84 SourceMgr SrcMgr; local
85 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc());
87 createMCAsmParser(SrcMgr, MCCtx, *Streamer, *MAI));
/external/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp249 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, argument
253 Lexer.setBuffer(SrcMgr.getMemoryBuffer(SrcMgr.getMainFileID())->getBuffer());
261 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning,
349 SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str,
353 createMCAsmParser(SrcMgr, Ctx, Str, MAI));
412 SourceMgr SrcMgr; local
414 // Tell SrcMgr about this buffer, which is what the parser will pick up.
415 SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc());
419 SrcMgr
348 AssembleInput(const char *ProgName, const Target *TheTarget, SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str, MCAsmInfo &MAI, MCSubtargetInfo &STI, MCInstrInfo &MCII, MCTargetOptions &MCOptions) argument
[all...]
/external/llvm/tools/llvm-mcmarkup/
H A Dllvm-mcmarkup.cpp73 MarkupParser(MarkupLexer &lex, SourceMgr &SrcMgr) : Lex(lex), SM(SrcMgr) {} argument
146 SourceMgr SrcMgr; local
150 // Tell SrcMgr about this buffer, which is what the parser will pick up.
151 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc());
154 MarkupParser Parser(Lex, SrcMgr);
203 SrcMgr.PrintMessage(Tag.getLoc(), SourceMgr::DK_Error,
/external/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp87 SourceMgr SrcMgr; local
99 SrcMgr.setDiagHandler(SrcMgrDiagHandler, &DiagInfo);
109 // Tell SrcMgr about this buffer, it takes ownership of the buffer.
110 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
112 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr,
/external/clang/tools/driver/
H A Dcc1as_main.cpp298 SourceMgr SrcMgr; local
300 // Tell SrcMgr about this buffer, which is what the parser will pick up.
301 SrcMgr.AddNewSourceBuffer(std::move(*Buffer), SMLoc());
305 SrcMgr.setIncludeDirs(Opts.IncludePaths);
329 MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr);
412 createMCAsmParser(SrcMgr, Ctx, *Str.get(), *MAI));
/external/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp102 SourceMgr SrcMgr; local
114 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo);
124 // Tell SrcMgr about this buffer, it takes ownership of the buffer.
125 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc());
128 createMCAsmParser(SrcMgr, OutContext, *OutStreamer, *MAI));
/external/clang/include/clang/Basic/
H A DSourceLocation.h269 const SourceManager *SrcMgr; member in class:clang::SourceLocation::FullSourceLoc
272 explicit FullSourceLoc() : SrcMgr(nullptr) {}
275 : SourceLocation(Loc), SrcMgr(&SM) {}
279 assert(SrcMgr && "SourceManager is NULL.");
280 return *SrcMgr;
319 assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!");
339 LHS.SrcMgr == RHS.SrcMgr;
H A DDiagnostic.h384 void setSourceManager(SourceManager *SrcMgr) { SourceMgr = SrcMgr; } argument
H A DSourceManager.h70 namespace SrcMgr { namespace in namespace:clang
436 } // end SrcMgr namespace.
563 llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> FileInfos;
600 std::vector<SrcMgr::ContentCache*> MemBufferInfos;
606 SmallVector<SrcMgr::SLocEntry, 0> LocalSLocEntryTable;
612 mutable SmallVector<SrcMgr::SLocEntry, 0> LoadedSLocEntryTable;
652 mutable SrcMgr::ContentCache *LastLineNoContentCache;
691 mutable std::unique_ptr<SrcMgr::ContentCache> FakeContentCacheForRecovery;
779 SrcMgr::CharacteristicKind FileCharacter,
781 const SrcMgr
792 createFileID(std::unique_ptr<llvm::MemoryBuffer> Buffer, SrcMgr::CharacteristicKind FileCharacter = SrcMgr::C_User, int LoadedID = 0, unsigned LoadedOffset = 0, SourceLocation IncludeLoc = SourceLocation()) argument
[all...]
/external/clang/lib/ARCMigrate/
H A DTransformActions.cpp99 SourceManager &SrcMgr, Preprocessor &PP) {
100 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP)
102 SrcMgr, PP));
98 compare(SourceRange LHS, SourceRange RHS, SourceManager &SrcMgr, Preprocessor &PP) argument
/external/clang/lib/Frontend/
H A DCacheTokens.cpp508 const SrcMgr::ContentCache &C = *I->second;
518 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User);
575 const SourceManager &SrcMgr = PP.getSourceManager(); local
576 const FileEntry *MainFile = SrcMgr.getFileEntryForID(SrcMgr.getMainFileID());
/external/clang/lib/Sema/
H A DSemaLookup.cpp1372 auto &SrcMgr = PP.getSourceManager(); local
1374 SrcMgr.getLocForStartOfFile(SrcMgr.getMainFileID());
/external/llvm/include/llvm/MC/
H A DMCContext.h60 const SourceMgr *SrcMgr; member in class:llvm::MCContext
245 const SourceMgr *getSourceManager() const { return SrcMgr; }
/external/llvm/include/llvm/Support/
H A DYAMLTraits.h1094 llvm::SourceMgr SrcMgr; // must be before Strm member in class:llvm::yaml::Input
/external/swiftshader/third_party/LLVM/tools/lto/
H A DLTOModule.cpp623 SourceMgr SrcMgr; local
624 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
625 OwningPtr<MCAsmParser> Parser(createMCAsmParser(SrcMgr,
/external/clang/include/clang/Serialization/
H A DASTWriter.h76 namespace SrcMgr { class SLocEntry; } namespace in namespace:clang
/external/clang/lib/Lex/
H A DModuleMap.cpp928 const SourceManager &SrcMgr = Loc.getManager(); local
932 = SrcMgr.getFileEntryForID(ExpansionFileID)) {
939 SourceLocation IncludeLoc = SrcMgr.getIncludeLoc(ExpansionFileID);
943 ExpansionFileID = SrcMgr.getFileID(IncludeLoc);
2449 auto FileCharacter = IsSystem ? SrcMgr::C_System : SrcMgr::C_User;
/external/llvm/lib/MC/
H A DMCDwarf.cpp912 SourceMgr &SrcMgr, SMLoc &Loc) {
933 unsigned CurBuffer = SrcMgr.FindBufferContainingLoc(Loc);
934 unsigned LineNumber = SrcMgr.FindLineNumber(Loc, CurBuffer);
911 Make(MCSymbol *Symbol, MCStreamer *MCOS, SourceMgr &SrcMgr, SMLoc &Loc) argument

Completed in 810 milliseconds

12