reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/CodeGen/MIRParser/MIParser.h
   29 class SourceMgr;
include/llvm/MC/MCContext.h
   60   class SourceMgr;
include/llvm/MC/MCDwarf.h
   42 class SourceMgr;
include/llvm/MC/MCParser/MCAsmParser.h
   34 class SourceMgr;
include/llvm/Support/YAMLParser.h
   54 class SourceMgr;
lib/TableGen/TGLexer.h
   27 class SourceMgr;
tools/llvm-mc/Disassembler.h
   24 class SourceMgr;

References

include/llvm/CodeGen/AsmPrinter.h
  166     SourceMgr SrcMgr;
include/llvm/CodeGen/MIRParser/MIParser.h
  162   SourceMgr *SM;
  174   PerFunctionMIParsingState(MachineFunction &MF, SourceMgr &SM,
include/llvm/MC/MCContext.h
   71     const SourceMgr *SrcMgr;
   74     SourceMgr *InlineSrcMgr;
  307                        const SourceMgr *Mgr = nullptr,
  314     const SourceMgr *getSourceManager() const { return SrcMgr; }
  316     void setInlineSourceManager(SourceMgr *SM) { InlineSrcMgr = SM; }
include/llvm/MC/MCDwarf.h
  431   static void Make(MCSymbol *Symbol, MCStreamer *MCOS, SourceMgr &SrcMgr,
include/llvm/MC/MCParser/MCAsmParser.h
  101   virtual StringRef LookupInlineAsmLabel(StringRef Identifier, SourceMgr &SM,
  144   virtual SourceMgr &getSourceManager() = 0;
  304 MCAsmParser *createMCAsmParser(SourceMgr &, MCContext &, MCStreamer &,
include/llvm/MC/MCParser/MCAsmParserExtension.h
   67   SourceMgr &getSourceManager() { return getParser().getSourceManager(); }
include/llvm/Support/Error.h
  330 template <typename ErrT, typename... ArgTs> Error make_error(ArgTs &&... Args) {
include/llvm/Support/FileCheck.h
  130   FileCheckDiag(const SourceMgr &SM, const Check::FileCheckType &CheckTy,
  161   bool readCheckFile(SourceMgr &SM, StringRef Buffer, Regex &PrefixRE);
  175   bool checkInput(SourceMgr &SM, StringRef Buffer,
include/llvm/Support/SourceMgr.h
  107   SourceMgr(const SourceMgr &) = delete;
  108   SourceMgr &operator=(const SourceMgr &) = delete;
  108   SourceMgr &operator=(const SourceMgr &) = delete;
  109   SourceMgr(SourceMgr &&) = default;
  110   SourceMgr &operator=(SourceMgr &&) = default;
  110   SourceMgr &operator=(SourceMgr &&) = default;
  262   const SourceMgr *SM = nullptr;
  267   SourceMgr::DiagKind Kind = SourceMgr::DK_Error;
  267   SourceMgr::DiagKind Kind = SourceMgr::DK_Error;
  276   SMDiagnostic(StringRef filename, SourceMgr::DiagKind Knd, StringRef Msg)
  280   SMDiagnostic(const SourceMgr &sm, SMLoc L, StringRef FN,
  281                int Line, int Col, SourceMgr::DiagKind Kind,
  286   const SourceMgr *getSourceMgr() const { return SM; }
  291   SourceMgr::DiagKind getKind() const { return Kind; }
include/llvm/Support/VirtualFileSystem.h
  503                llvm::SourceMgr::DiagHandlerTy DiagHandler,
  721          SourceMgr::DiagHandlerTy DiagHandler, StringRef YAMLFilePath,
  754     llvm::SourceMgr::DiagHandlerTy DiagHandler, StringRef YAMLFilePath,
include/llvm/Support/YAMLParser.h
   86   Stream(StringRef Input, SourceMgr &, bool ShowColors = true,
   89   Stream(MemoryBufferRef InputBuffer, SourceMgr &, bool ShowColors = true,
include/llvm/Support/YAMLTraits.h
 1394         SourceMgr::DiagHandlerTy DiagHandler = nullptr,
 1398         SourceMgr::DiagHandlerTy DiagHandler = nullptr,
 1526   SourceMgr                           SrcMgr; // must be before Strm
include/llvm/TableGen/Error.h
   36 extern SourceMgr SrcMgr;
lib/AsmParser/LLLexer.cpp
   29   ErrorInfo = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg);
   34   SM.PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg);
  159 LLLexer::LLLexer(StringRef StartBuf, SourceMgr &SM, SMDiagnostic &Err,
lib/AsmParser/LLLexer.h
   32     SourceMgr &SM;
   49     explicit LLLexer(StringRef StartBuf, SourceMgr &SM, SMDiagnostic &,
lib/AsmParser/LLParser.h
  169     LLParser(StringRef F, SourceMgr &SM, SMDiagnostic &Err, Module *M,
lib/AsmParser/Parser.cpp
   29   SourceMgr SM;
   61     Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
   91     Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
  113   SourceMgr SM;
  139     Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
  149   SourceMgr SM;
  166     SourceMgr SM;
  170                         SourceMgr::DK_Error, "expected end of string");
  178   SourceMgr SM;
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
   88   SourceMgr &SrcMgr = DiagInfo->SrcMgr;
  544     auto &SrcMgr = DiagInfo->SrcMgr;
  557     SrcMgr.PrintMessage(Loc, SourceMgr::DK_Warning, Msg);
  558     SrcMgr.PrintMessage(Loc, SourceMgr::DK_Note, Note);
lib/CodeGen/MIRParser/MIParser.cpp
  319     SourceMgr &SM, const SlotMapping &IRSlots, PerTargetMIParsingState &T)
  537   const SourceMgr &SM = *PFS.SM;
  543     Error = SM.GetMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
  548                        Loc - Source.data(), SourceMgr::DK_Error, Msg.str(),
lib/CodeGen/MIRParser/MIRParser.cpp
   53   SourceMgr SM;
  178       DS_Error, SMDiagnostic(Filename, SourceMgr::DK_Error, Message.str())));
  184       DS_Error, SM.GetMessage(Loc, SourceMgr::DK_Error, Message)));
  197   case SourceMgr::DK_Error:
  200   case SourceMgr::DK_Warning:
  203   case SourceMgr::DK_Note:
  206   case SourceMgr::DK_Remark:
  422   SourceMgr BlockSM;
  446   SourceMgr InsnSM;
  933     Error = SMDiagnostic(Filename, SourceMgr::DK_Error,
  948             Filename, SourceMgr::DK_Error,
lib/IRReader/IRReader.cpp
   41         Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error,
   59     Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
   81         Err = SMDiagnostic(Buffer.getBufferIdentifier(), SourceMgr::DK_Error,
  102     Err = SMDiagnostic(Filename, SourceMgr::DK_Error,
lib/LTO/ThinLTOCodeGenerator.cpp
  194                                       SourceMgr::DK_Error, EIB.message());
  219                                       SourceMgr::DK_Error, EIB.message());
lib/MC/MCContext.cpp
   60                      const MCObjectFileInfo *mofi, const SourceMgr *mgr,
  694     SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
  696     InlineSrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
  710       SrcMgr->PrintMessage(Loc, SourceMgr::DK_Warning, Msg);
  712       InlineSrcMgr->PrintMessage(Loc, SourceMgr::DK_Warning, Msg);
lib/MC/MCDwarf.cpp
 1208                                      SourceMgr &SrcMgr, SMLoc &Loc) {
lib/MC/MCObjectStreamer.cpp
  682           Loc, SourceMgr::DK_Warning,
lib/MC/MCParser/AsmParser.cpp
  130   SourceMgr &SrcMgr;
  131   SourceMgr::DiagHandlerTy SavedDiagHandler;
  191   AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
  211   SourceMgr &getSourceManager() override { return SrcMgr; }
  309   void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg,
  704 AsmParser::AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
  759     printMessage((*it)->InstantiationLoc, SourceMgr::DK_Note,
  765   printMessage(L, SourceMgr::DK_Note, Msg, Range);
  774   printMessage(L, SourceMgr::DK_Warning, Msg, Range);
  781   printMessage(L, SourceMgr::DK_Error, Msg, Range);
 2232     printMessage(IDLoc, SourceMgr::DK_Note, OS.str());
 2334   const SourceMgr &DiagSrcMgr = *Diag.getSourceMgr();
 6077 MCAsmParser *llvm::createMCAsmParser(SourceMgr &SM, MCContext &C,
lib/Object/ModuleSymbolTable.cpp
  108   SourceMgr SrcMgr;
lib/Remarks/YAMLRemarkParser.cpp
   36 YAMLParseError::YAMLParseError(StringRef Msg, SourceMgr &SM,
   53 static SourceMgr setupSM(std::string &LastErrorMessage) {
   54   SourceMgr SM;
lib/Remarks/YAMLRemarkParser.h
   35   YAMLParseError(StringRef Message, SourceMgr &SM, yaml::Stream &Stream,
   57   SourceMgr SM;
lib/Support/FileCheck.cpp
   74 FileCheckPattern::parseVariable(StringRef &Str, const SourceMgr &SM) {
  119     Optional<size_t> LineNumber, const SourceMgr &SM) {
  155                                           const SourceMgr &SM) {
  191                                       const SourceMgr &SM) {
  226     FileCheckPatternContext *Context, const SourceMgr &SM) {
  271     FileCheckPatternContext *Context, const SourceMgr &SM) {
  320                                     SourceMgr &SM,
  335     SM.PrintMessage(PatternLoc, SourceMgr::DK_Error,
  342         PatternLoc, SourceMgr::DK_Error,
  380                         SourceMgr::DK_Error,
  419                         SourceMgr::DK_Error,
  444                           SourceMgr::DK_Error, "unexpected whitespace");
  464                             SourceMgr::DK_Error,
  474                 SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
  557                             SourceMgr::DK_Error,
  592 bool FileCheckPattern::AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM) {
  596     SM.PrintMessage(SMLoc::getFromPointer(RS.data()), SourceMgr::DK_Error,
  613                                          const SourceMgr &SM) const {
  721 void FileCheckPattern::printSubstitutions(const SourceMgr &SM, StringRef Buffer,
  754         SM.PrintMessage(MatchRange.Start, SourceMgr::DK_Note, OS.str(),
  758                         SourceMgr::DK_Note, OS.str());
  764                                   const SourceMgr &SM, SMLoc Loc,
  782     const SourceMgr &SM, StringRef Buffer,
  820     SM.PrintMessage(MatchRange.Start, SourceMgr::DK_Note,
  861 size_t FileCheckPattern::FindRegexVarEnd(StringRef Str, SourceMgr &SM) {
  884                           SourceMgr::DK_Error,
  928 FileCheckDiag::FileCheckDiag(const SourceMgr &SM,
 1131 bool FileCheck::readCheckFile(SourceMgr &SM, StringRef Buffer,
 1194       SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Error,
 1201       SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Error,
 1226           SMLoc::getFromPointer(UsedPrefixStart), SourceMgr::DK_Error,
 1242                       SourceMgr::DK_Error,
 1288 static void PrintMatch(bool ExpectedMatch, const SourceMgr &SM,
 1319       Loc, ExpectedMatch ? SourceMgr::DK_Remark : SourceMgr::DK_Error, Message);
 1319       Loc, ExpectedMatch ? SourceMgr::DK_Remark : SourceMgr::DK_Error, Message);
 1320   SM.PrintMessage(MatchRange.Start, SourceMgr::DK_Note, "found here",
 1325 static void PrintMatch(bool ExpectedMatch, const SourceMgr &SM,
 1334 static void PrintNoMatch(bool ExpectedMatch, const SourceMgr &SM,
 1381       Loc, ExpectedMatch ? SourceMgr::DK_Error : SourceMgr::DK_Remark, Message);
 1381       Loc, ExpectedMatch ? SourceMgr::DK_Error : SourceMgr::DK_Remark, Message);
 1384   SM.PrintMessage(SearchRange.Start, SourceMgr::DK_Note, "scanning from here");
 1393 static void PrintNoMatch(bool ExpectedMatch, const SourceMgr &SM,
 1425 size_t FileCheckString::Check(const SourceMgr &SM, StringRef Buffer,
 1507 bool FileCheckString::CheckNext(const SourceMgr &SM, StringRef Buffer) const {
 1521     SM.PrintMessage(Loc, SourceMgr::DK_Error,
 1523     SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), SourceMgr::DK_Note,
 1525     SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
 1531     SM.PrintMessage(Loc, SourceMgr::DK_Error,
 1534     SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), SourceMgr::DK_Note,
 1536     SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
 1538     SM.PrintMessage(SMLoc::getFromPointer(FirstNewLine), SourceMgr::DK_Note,
 1546 bool FileCheckString::CheckSame(const SourceMgr &SM, StringRef Buffer) const {
 1555     SM.PrintMessage(Loc, SourceMgr::DK_Error,
 1558     SM.PrintMessage(SMLoc::getFromPointer(Buffer.end()), SourceMgr::DK_Note,
 1560     SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
 1569     const SourceMgr &SM, StringRef Buffer,
 1595 FileCheckString::CheckDag(const SourceMgr &SM, StringRef Buffer,
 1688           SM.PrintMessage(OldStart, SourceMgr::DK_Note,
 1769     std::vector<std::string> &CmdlineDefines, SourceMgr &SM) {
 1931 bool FileCheck::checkInput(SourceMgr &SM, StringRef Buffer,
lib/Support/FileCheckImpl.h
  291                                SourceMgr &SM);
  340   static Error get(const SourceMgr &SM, SMLoc Loc, const Twine &ErrMsg) {
  342         SM.GetMessage(Loc, SourceMgr::DK_Error, ErrMsg));
  345   static Error get(const SourceMgr &SM, StringRef Buffer, const Twine &ErrMsg) {
  461                                                     const SourceMgr &SM);
  477       FileCheckPatternContext *Context, const SourceMgr &SM);
  485   bool parsePattern(StringRef PatternStr, StringRef Prefix, SourceMgr &SM,
  500                          const SourceMgr &SM) const;
  503   void printSubstitutions(const SourceMgr &SM, StringRef Buffer,
  505   void printFuzzyMatch(const SourceMgr &SM, StringRef Buffer,
  517   bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM);
  529   size_t FindRegexVarEnd(StringRef Str, SourceMgr &SM);
  538       Optional<size_t> LineNumber, const SourceMgr &SM);
  549                           const SourceMgr &SM);
  561                       FileCheckPatternContext *Context, const SourceMgr &SM);
  572              FileCheckPatternContext *Context, const SourceMgr &SM);
  598   size_t Check(const SourceMgr &SM, StringRef Buffer, bool IsLabelScanMode,
  604   bool CheckNext(const SourceMgr &SM, StringRef Buffer) const;
  607   bool CheckSame(const SourceMgr &SM, StringRef Buffer) const;
  611   bool CheckNot(const SourceMgr &SM, StringRef Buffer,
  616   size_t CheckDag(const SourceMgr &SM, StringRef Buffer,
lib/Support/SourceMgr.cpp
  103 SourceMgr::SrcBuffer::SrcBuffer(SourceMgr::SrcBuffer &&Other)
  163 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
  243                              SourceMgr::DiagKind Kind,
  249 void SourceMgr::PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
  259 SMDiagnostic::SMDiagnostic(const SourceMgr &sm, SMLoc L, StringRef FN,
  260                            int Line, int Col, SourceMgr::DiagKind Kind,
  393     case SourceMgr::DK_Error:
  396     case SourceMgr::DK_Warning:
  399     case SourceMgr::DK_Note:
  402     case SourceMgr::DK_Remark:
lib/Support/VirtualFileSystem.cpp
 1583                               SourceMgr::DiagHandlerTy DiagHandler,
 1586   SourceMgr SM;
 1593     SM.PrintMessage(SMLoc(), SourceMgr::DK_Error, "expected root node");
 1817                     SourceMgr::DiagHandlerTy DiagHandler,
 1851                              SourceMgr::DiagHandlerTy DiagHandler,
lib/Support/YAMLParser.cpp
  254   Scanner(StringRef Input, SourceMgr &SM, bool ShowColors = true,
  256   Scanner(MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors = true,
  265   void printError(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Message,
  281       printError(SMLoc::getFromPointer(Current), SourceMgr::DK_Error, Message);
  512   SourceMgr &SM;
  594   SourceMgr SM;
  678   SourceMgr SM;
  756 Scanner::Scanner(StringRef Input, SourceMgr &sm, bool ShowColors,
  762 Scanner::Scanner(MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors,
 1762 Stream::Stream(StringRef Input, SourceMgr &SM, bool ShowColors,
 1766 Stream::Stream(MemoryBufferRef InputBuffer, SourceMgr &SM, bool ShowColors,
 1776                      , SourceMgr::DK_Error
lib/Support/YAMLTraits.cpp
   56              SourceMgr::DiagHandlerTy DiagHandler, void *DiagHandlerCtxt)
   64              SourceMgr::DiagHandlerTy DiagHandler, void *DiagHandlerCtxt)
lib/TableGen/Error.cpp
   23 SourceMgr SrcMgr;
   26 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind,
   30   if (Kind == SourceMgr::DK_Error)
   38     SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
   45   PrintMessage(NoteLoc, SourceMgr::DK_Note, Msg);
   49   PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg);
   53   SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
   59   PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg);
   63   SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
lib/TableGen/TGLexer.cpp
   46 TGLexer::TGLexer(SourceMgr &SM, ArrayRef<std::string> Macros) : SrcMgr(SM) {
  386     SrcMgr.PrintMessage(Found->second, SourceMgr::DK_Note,
lib/TableGen/TGLexer.h
   74   SourceMgr &SrcMgr;
   96   TGLexer(SourceMgr &SrcMgr, ArrayRef<std::string> Macros);
lib/TableGen/TGParser.h
  117   TGParser(SourceMgr &SrcMgr, ArrayRef<std::string> Macros,
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
 1038                          RegName.Value.size(), SourceMgr::DK_Error,
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
 1295           IDLoc, SourceMgr::DK_Error,
lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp
  724       SM->PrintMessage(Loc, SourceMgr::DK_Note, Msg);
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
  674         SM->PrintMessage(I.first, SourceMgr::DK_Note, I.second);
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
 5805   getSourceManager().PrintMessage(Range.Start, SourceMgr::DK_Warning, Msg,
lib/Transforms/Utils/SymbolRewriter.cpp
  267   SourceMgr SM;
tools/clang/include/clang/Tooling/JSONCompilationDatabase.h
  135   llvm::SourceMgr SM;
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 2098     llvm::SourceMgr SM;
tools/clang/lib/CodeGen/CodeGenAction.cpp
  402   const llvm::SourceMgr &LSM = *D.getSourceMgr();
  445   case llvm::SourceMgr::DK_Error:
  448   case llvm::SourceMgr::DK_Warning:
  451   case llvm::SourceMgr::DK_Note:
  454   case llvm::SourceMgr::DK_Remark:
  962   case llvm::SourceMgr::DK_Error:
  965   case llvm::SourceMgr::DK_Warning:
  968   case llvm::SourceMgr::DK_Note:
  971   case llvm::SourceMgr::DK_Remark:
tools/clang/lib/Parse/ParseStmtAsm.cpp
   60   StringRef LookupInlineAsmLabel(StringRef Identifier, llvm::SourceMgr &LSM,
   79   SourceLocation translateLocation(const llvm::SourceMgr &LSM,
  128                                                        llvm::SourceMgr &LSM,
  167 ClangAsmParserCallback::translateLocation(const llvm::SourceMgr &LSM,
  194   const llvm::SourceMgr &LSM = *D.getSourceMgr();
  595   llvm::SourceMgr TempSrcMgr;
tools/clang/tools/clang-format/ClangFormat.cpp
  336           WarningsAsErrors ? SourceMgr::DiagKind::DK_Error
  337                            : SourceMgr::DiagKind::DK_Warning,
tools/clang/tools/driver/cc1as_main.cpp
  344   SourceMgr SrcMgr;
tools/clang/tools/extra/clangd/unittests/TraceTests.cpp
   85   llvm::SourceMgr SM;
tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
   63                           SourceMgr::DK_Error,
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  232                             SourceMgr::DK_Error,
  236                             SourceMgr::DK_Note, "group defined here");
  250                           SourceMgr::DK_Error,
  256                             SourceMgr::DK_Note, "also referenced here");
tools/llc/llc.cpp
  276   if (SMD.getKind() == SourceMgr::DK_Error)
tools/llvm-exegesis/lib/SnippetFile.cpp
  127   SourceMgr SM;
tools/llvm-lto/llvm-lto.cpp
  497                                       SourceMgr::DK_Error, EIB.message());
tools/llvm-mc/Disassembler.cpp
   36                        SourceMgr &SM, raw_ostream &Out,
   54                       SourceMgr::DK_Warning,
   67                       SourceMgr::DK_Warning,
  103                                 SourceMgr &SM) {
  117       SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error,
  135                               MemoryBuffer &Buffer, SourceMgr &SM,
  175         SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
  184         SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
  202     SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
tools/llvm-mc/Disassembler.h
   34                          MemoryBuffer &Buffer, SourceMgr &SM, MCContext &Ctx,
tools/llvm-mc/llvm-mc.cpp
  242 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI,
  281                          SourceMgr &SrcMgr, MCContext &Ctx, MCStreamer &Str,
  342   SourceMgr SrcMgr;
tools/llvm-mca/CodeRegion.cpp
   19 CodeRegions::CodeRegions(llvm::SourceMgr &S) : SM(S), FoundErrors(false) {
   47         SM.PrintMessage(Loc, SourceMgr::DK_Error,
   49         SM.PrintMessage(R.startLoc(), SourceMgr::DK_Note,
   55       SM.PrintMessage(Loc, SourceMgr::DK_Error,
   57       SM.PrintMessage(R.startLoc(), SourceMgr::DK_Note,
   98   SM.PrintMessage(Loc, SourceMgr::DK_Error,
  101     SM.PrintMessage(Loc, SourceMgr::DK_Note,
  104     SM.PrintMessage(Loc, SourceMgr::DK_Note,
tools/llvm-mca/CodeRegion.h
   86   llvm::SourceMgr &SM;
   97   CodeRegions(llvm::SourceMgr &S);
  110   llvm::SourceMgr &getSourceMgr() const { return SM; }
tools/llvm-mca/CodeRegionGenerator.h
   40   CodeRegionGenerator(SourceMgr &SM) : Regions(SM) {}
   56   AsmCodeRegionGenerator(const Target &T, SourceMgr &SM, MCContext &C,
tools/llvm-mca/llvm-mca.cpp
  362   SourceMgr SrcMgr;
tools/sancov/sancov.cpp
  372   SourceMgr SM;
unittests/CodeGen/GlobalISel/GISelMITest.h
  194   SourceMgr SM;
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.h
   60     SourceMgr SrcMgr;
unittests/Support/FileCheckTest.cpp
  135 static StringRef bufferize(SourceMgr &SM, StringRef Str) {
  144   SourceMgr SM;
  215   SourceMgr SM;
  401   SourceMgr SM;
  456   SourceMgr SM;
unittests/Support/SourceMgrTest.cpp
   20   SourceMgr SM;
   39   void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
   51   printMessage(getLoc(4), SourceMgr::DK_Error, "message", None, None);
   61   printMessage(getLoc(4), SourceMgr::DK_Warning, "message", None, None);
   71   printMessage(getLoc(4), SourceMgr::DK_Remark, "message", None, None);
   81   printMessage(getLoc(4), SourceMgr::DK_Note, "message", None, None);
   91   printMessage(getLoc(6), SourceMgr::DK_Error, "message", None, None);
  101   printMessage(getLoc(7), SourceMgr::DK_Error, "message", None, None);
  111   printMessage(getLoc(0), SourceMgr::DK_Error, "message", None, None);
  121   printMessage(getLoc(0), SourceMgr::DK_Error, "message", None, None);
  131   printMessage(getLoc(1), SourceMgr::DK_Error, "message", None, None);
  141   printMessage(getLoc(3), SourceMgr::DK_Error, "message", None, None);
  151   printMessage(getLoc(3), SourceMgr::DK_Error, "message", None, None);
  161   printMessage(getLoc(4), SourceMgr::DK_Error, "message", None, None);
  171   printMessage(getLoc(5), SourceMgr::DK_Error, "message", None, None);
  181   printMessage(getLoc(5), SourceMgr::DK_Error, "message", None, None);
  191   printMessage(getLoc(9), SourceMgr::DK_Error, "message", None, None);
  221   printMessage(getLoc(253), SourceMgr::DK_Error, "message", None, None);
  232   printMessage(getLoc(254), SourceMgr::DK_Error, "message", None, None);
  243   printMessage(getLoc(255), SourceMgr::DK_Error, "message", None, None);
  254   printMessage(getLoc(253), SourceMgr::DK_Error, "message", None, None);
  265   printMessage(getLoc(254), SourceMgr::DK_Error, "message", None, None);
  276   printMessage(getLoc(255), SourceMgr::DK_Error, "message", None, None);
  291   printMessage(getLoc(254), SourceMgr::DK_Error, "message", None, None);
  302   printMessage(getLoc(255), SourceMgr::DK_Error, "message", None, None);
  313   printMessage(getLoc(256), SourceMgr::DK_Error, "message", None, None);
  324   printMessage(getLoc(254), SourceMgr::DK_Error, "message", None, None);
  335   printMessage(getLoc(255), SourceMgr::DK_Error, "message", None, None);
  346   printMessage(getLoc(256), SourceMgr::DK_Error, "message", None, None);
  361   printMessage(getLoc(255), SourceMgr::DK_Error, "message", None, None);
  372   printMessage(getLoc(256), SourceMgr::DK_Error, "message", None, None);
  383   printMessage(getLoc(257), SourceMgr::DK_Error, "message", None, None);
  394   printMessage(getLoc(255), SourceMgr::DK_Error, "message", None, None);
  405   printMessage(getLoc(256), SourceMgr::DK_Error, "message", None, None);
  416   printMessage(getLoc(257), SourceMgr::DK_Error, "message", None, None);
  425   printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(4, 3), None);
  435   printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(3, 3), None);
  445   printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(4, 7), None);
  456   printMessage(getLoc(4), SourceMgr::DK_Error, "message", Ranges, None);
  467   printMessage(getLoc(4), SourceMgr::DK_Error, "message", Ranges, None);
  477   printMessage(getLoc(4), SourceMgr::DK_Error, "message", None,
  489   printMessage(getLoc(3), SourceMgr::DK_Error, "message", None,
unittests/Support/YAMLParserTest.cpp
   32   SourceMgr SM;
   41   SourceMgr SM;
  159   SourceMgr SM;
  190   SourceMgr SM;
  227   SourceMgr SM;
  235   SourceMgr SM;
  248   SourceMgr SM;
  263   SourceMgr SM;
  278   SourceMgr SM;
  293   SourceMgr SM;
  314   SourceMgr SM;
unittests/TableGen/CodeExpanderTest.cpp
  117       SourceMgr::DK_Warning, "Assuming missing escape character", " $foo", {}));
  164       SMDiagnostic(SrcMgr, SMLoc(), "<unknown>", 0, -1, SourceMgr::DK_Error,
  184       SourceMgr::DK_Error, "Attempting to expand an undeclared variable foo",
  201                                   "TestBuffer", 1, 1, SourceMgr::DK_Warning,
usr/include/c++/7.4.0/bits/alloc_traits.h
  474 	construct(allocator_type& __a, _Up* __p, _Args&&... __args)
usr/include/c++/7.4.0/bits/move.h
   72     constexpr _Tp&&
   83     constexpr _Tp&&
usr/include/c++/7.4.0/bits/stl_vector.h
  962 	emplace_back(_Args&&... __args);
 1483 	_M_realloc_insert(iterator __position, _Args&&... __args);
usr/include/c++/7.4.0/bits/unique_ptr.h
  824     make_unique(_Args&&... __args)
usr/include/c++/7.4.0/ext/new_allocator.h
  135 	construct(_Up* __p, _Args&&... __args)
usr/include/c++/7.4.0/type_traits
 1633     { typedef _Tp   type; };
utils/FileCheck/FileCheck.cpp
  586   SourceMgr SM;
utils/yaml-bench/YAMLBench.cpp
  169     llvm::SourceMgr SM;
  208     llvm::SourceMgr sm;