Searched refs:fileLoc (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | DebugTranslation.cpp | 69 if (auto fileLoc = loc.dyn_cast<FileLineColLoc>()) in extractFileLoc() local 70 return fileLoc; in extractFileLoc() 99 FileLineColLoc fileLoc = extractFileLoc(func.getLoc()); in translate() local 101 translateFile(fileLoc ? fileLoc.getFilename().strref() : "<unknown>"); in translate() 102 unsigned line = fileLoc ? fileLoc.getLine() : 0; in translate() 149 } else if (auto fileLoc = loc.dyn_cast<FileLineColLoc>()) { in translateLoc() local 150 auto *file = translateFile(fileLoc.getFilename()); in translateLoc() 152 llvmLoc = llvm::DILocation::get(llvmCtx, fileLoc.getLine(), in translateLoc() 153 fileLoc.getColumn(), fileScope, in translateLoc()
|
| /llvm-project-15.0.7/mlir/test/lib/IR/ |
| H A D | TestDiagnostics.cpp | 39 FileLineColLoc fileLoc = loc.dyn_cast<FileLineColLoc>(); in runOnOperation() local 40 if (!fileLoc) in runOnOperation() 45 return fileLoc.getFilename().strref().contains(filter); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | Diagnostics.cpp | 392 firstFileLoc = fileLoc; in getFileLineColLoc() 452 auto fileLoc = getFileLineColLoc(loc); in emitDiagnostic() local 455 if (!fileLoc) { in emitDiagnostic() 467 auto smloc = convertLocToSMLoc(*fileLoc); in emitDiagnostic() 477 locOS << fileLoc->getFilename().getValue() << ":" << fileLoc->getLine() << ":" in emitDiagnostic() 478 << fileLoc->getColumn(); in emitDiagnostic() 596 : kind(kind), lineNo(lineNo), fileLoc(fileLoc), substring(substring) {} in ExpectedDiag() 601 SMRange range(fileLoc, SMLoc::getFromPointer(fileLoc.getPointer() + in emitError() 655 SMLoc fileLoc; member 851 if (auto fileLoc = getFileLineColLoc(diag.getLocation())) in process() local [all …]
|
| /llvm-project-15.0.7/mlir/lib/Tools/mlir-lsp-server/ |
| H A D | MLIRServer.cpp | 47 FileLineColLoc fileLoc = nestedLoc.dyn_cast<FileLineColLoc>(); in getLocationFromLoc() local 48 if (!fileLoc) in getLocationFromLoc() 51 Optional<lsp::Location> sourceLoc = getLocationFromLoc(fileLoc); in getLocationFromLoc() 55 sourceMgr.getMainFileID(), fileLoc.getLine(), fileLoc.getColumn()); in getLocationFromLoc() 63 std::max(fileLoc.getColumn() + 1, lineCol.second - 1); in getLocationFromLoc() 79 FileLineColLoc fileLoc = nestedLoc.dyn_cast<FileLineColLoc>(); in collectLocationsFromLoc() local 80 if (!fileLoc || !visitedLocs.insert(nestedLoc)) in collectLocationsFromLoc() 83 Optional<lsp::Location> sourceLoc = getLocationFromLoc(fileLoc); in collectLocationsFromLoc()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenACC/ |
| H A D | OpenACCToLLVMIRTranslation.cpp | 54 if (auto fileLoc = loc.dyn_cast<FileLineColLoc>()) { in createSourceLocStrFromLocation() local 55 StringRef fileName = fileLoc.getFilename(); in createSourceLocStrFromLocation() 56 unsigned lineNo = fileLoc.getLine(); in createSourceLocStrFromLocation() 57 unsigned colNo = fileLoc.getColumn(); in createSourceLocStrFromLocation()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/ |
| H A D | Serializer.cpp | 175 auto fileLoc = module.getLoc().dyn_cast<FileLineColLoc>(); in processDebugInfo() local 176 auto fileName = fileLoc ? fileLoc.getFilename().strref() : "<unknown>"; in processDebugInfo() 1220 auto fileLoc = loc.dyn_cast<FileLineColLoc>(); in emitDebugLine() local 1221 if (fileLoc) in emitDebugLine() 1223 {fileID, fileLoc.getLine(), fileLoc.getColumn()}); in emitDebugLine()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/ |
| H A D | Parser.cpp | 156 LogicalResult parseTdInclude(StringRef filename, SMRange fileLoc, 738 SMRange fileLoc = curToken.getLoc(); in parseInclude() local 746 if (failed(lexer.pushInclude(filename, fileLoc))) in parseInclude() 747 return emitError(fileLoc, in parseInclude() 761 return parseTdInclude(filename, fileLoc, decls); in parseInclude() 763 return emitError(fileLoc, in parseInclude() 767 LogicalResult Parser::parseTdInclude(StringRef filename, llvm::SMRange fileLoc, in parseTdInclude() argument 776 return emitError(fileLoc, "unable to open include file `" + filename + "`"); in parseTdInclude() 789 } handlerContext{*this, filename, fileLoc}; in parseTdInclude() 813 parserSrcMgr.takeSourceBuffersFrom(tdSrcMgr, fileLoc.End); in parseTdInclude()
|
| /llvm-project-15.0.7/mlir/docs/ |
| H A D | Diagnostics.md | 278 FileLineColLoc fileLoc = loc.dyn_cast<FileLineColLoc>(); 282 if (!fileLoc) 286 return !fileLoc.getFilename().strref().contains("my/framework/source/");
|