Lines Matching refs:mgr

360   unsigned getSourceMgrBufferIDForFile(llvm::SourceMgr &mgr,  in getSourceMgrBufferIDForFile()
368 for (unsigned i = 1, e = mgr.getNumBuffers() + 1; i != e; ++i) { in getSourceMgrBufferIDForFile()
369 auto *buf = mgr.getMemoryBuffer(i); in getSourceMgrBufferIDForFile()
376 unsigned id = mgr.AddIncludeFile(std::string(filename), SMLoc(), ignored); in getSourceMgrBufferIDForFile()
433 llvm::SourceMgr &mgr, MLIRContext *ctx, raw_ostream &os, in SourceMgrDiagnosticHandler() argument
435 : ScopedDiagnosticHandler(ctx), mgr(mgr), os(os), in SourceMgrDiagnosticHandler()
442 llvm::SourceMgr &mgr, MLIRContext *ctx, ShouldShowLocFn &&shouldShowLocFn) in SourceMgrDiagnosticHandler() argument
443 : SourceMgrDiagnosticHandler(mgr, ctx, llvm::errs(), in SourceMgrDiagnosticHandler()
461 return mgr.PrintMessage(os, SMLoc(), getDiagKind(kind), strOS.str()); in emitDiagnostic()
469 return mgr.PrintMessage(os, smloc, getDiagKind(kind), message); in emitDiagnostic()
532 if (unsigned id = impl->getSourceMgrBufferIDForFile(mgr, filename)) in getBufferForFile()
533 return mgr.getMemoryBuffer(id); in getBufferForFile()
580 unsigned bufferId = impl->getSourceMgrBufferIDForFile(mgr, loc.getFilename()); in convertLocToSMLoc()
583 return mgr.FindLocForLineAndColumn(bufferId, loc.getLine(), loc.getColumn()); in convertLocToSMLoc()
599 LogicalResult emitError(raw_ostream &os, llvm::SourceMgr &mgr, in emitError()
603 mgr.PrintMessage(os, fileLoc, llvm::SourceMgr::DK_Error, msg, range); in emitError()
618 LogicalResult computeRegex(raw_ostream &os, llvm::SourceMgr &mgr) { in computeRegex()
635 return emitError(os, mgr, "found start of regex with no end '}}'"); in computeRegex()
641 return emitError(os, mgr, "invalid regex: " + regexError); in computeRegex()
673 computeExpectedDiags(raw_ostream &os, llvm::SourceMgr &mgr,
715 raw_ostream &os, llvm::SourceMgr &mgr, const llvm::MemoryBuffer *buf) { in computeExpectedDiags() argument
760 if (!matches[2].empty() && failed(record.computeRegex(os, mgr))) { in computeExpectedDiags()
804 for (unsigned i = 0, e = mgr.getNumBuffers(); i != e; ++i) in SourceMgrDiagnosticVerifierHandler()
805 (void)impl->computeExpectedDiags(out, mgr, mgr.getMemoryBuffer(i + 1)); in SourceMgrDiagnosticVerifierHandler()
837 err.emitError(os, mgr, in verify()
867 diags = impl->computeExpectedDiags(os, mgr, in process()
892 mgr.PrintMessage(os, nearMiss->fileLoc, llvm::SourceMgr::DK_Error, in process()