Home
last modified time | relevance | path

Searched refs:SMRange (Results 1 – 25 of 79) sorted by relevance

1234

/llvm-project-15.0.7/mlir/include/mlir/AsmParser/
H A DAsmParserState.h38 SMDefinition(SMRange loc) : loc(loc) {} in SMDefinition()
41 SMRange loc;
43 SmallVector<SMRange> uses;
50 ResultGroupDefinition(unsigned index, SMRange loc) in ResultGroupDefinition()
59 OperationDefinition(Operation *op, SMRange loc, SMLoc endLoc) in OperationDefinition()
66 SMRange loc;
70 SMRange scopeLoc;
77 SmallVector<SMRange> symbolUses;
83 BlockDefinition(Block *block, SMRange loc = {})
127 static SMRange convertIdLocToRange(SMLoc loc);
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h43 SMRange getLoc() const { return location; } in getLoc()
54 SMRange location;
122 explicit NodeBase(SMRange loc, Args &&...args) in NodeBase()
130 SMRange getLoc() const { return loc; } in getLoc()
155 SMRange loc;
332 ReturnStmt(SMRange loc, Expr *resultExpr) in ReturnStmt()
432 DeclRefExpr(SMRange loc, Decl *decl, Type type) in DeclRefExpr()
519 SMRange getNameLoc() const { return nameLoc; } in getNameLoc()
560 SMRange nameLoc;
679 SMRange referenceLoc;
[all …]
H A DDiagnostic.h40 SMRange getLocation() const { return location; } in getLocation()
47 Optional<SMRange> noteLoc = llvm::None) {
60 Diagnostic(Severity severity, SMRange loc, const Twine &msg) in Diagnostic()
71 SMRange location;
145 InFlightDiagnostic emitError(SMRange loc, const Twine &msg) { in emitError()
149 InFlightDiagnostic emitWarning(SMRange loc, const Twine &msg) { in emitWarning()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp32 const Name &Name::create(Context &ctx, StringRef name, SMRange location) { in create()
187 CompoundStmt *CompoundStmt::create(Context &ctx, SMRange loc, in create()
213 EraseStmt *EraseStmt::create(Context &ctx, SMRange loc, Expr *rootOp) { in create()
253 AttributeExpr *AttributeExpr::create(Context &ctx, SMRange loc, in create()
263 CallExpr *CallExpr::create(Context &ctx, SMRange loc, Expr *callable, in create()
279 DeclRefExpr *DeclRefExpr::create(Context &ctx, SMRange loc, Decl *decl, in create()
289 MemberAccessExpr *MemberAccessExpr::create(Context &ctx, SMRange loc, in create()
332 TupleExpr *TupleExpr::create(Context &ctx, SMRange loc, in create()
379 OpConstraintDecl *OpConstraintDecl::create(Context &ctx, SMRange loc, in create()
382 nameDecl = OpNameDecl::create(ctx, SMRange()); in create()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp435 StringRef groupName, SMRange loc, Optional<SMRange> odsOpLoc,
507 void resetToken(SMRange tokLoc) { in resetToken()
527 LogicalResult emitErrorAndNote(SMRange loc, const Twine &msg, SMRange noteLoc, in emitErrorAndNote()
727 SMRange loc = curToken.getLoc(); in parseInclude()
788 llvm::SMRange loc; in parseTdInclude()
1262 SMRange loc = curToken.getLoc(); in parseUserConstraintOrRewriteDecl()
1435 SMRange loc = curToken.getLoc(); in parsePatternDecl()
1498 Optional<SMRange> benefitLoc; in parsePatternDeclMetadata()
1658 SMRange loc = curToken.getLoc(); in parseConstraint()
1821 SMRange loc = curToken.getLoc(); in parseAttributeExpr()
[all …]
H A DLexer.h151 SMRange getLoc() const { return SMRange(getStartLoc(), getEndLoc()); } in getLoc()
181 LogicalResult pushInclude(StringRef filename, SMRange includeLoc);
191 Token emitError(SMRange loc, const Twine &msg);
193 Token emitErrorAndNote(SMRange loc, const Twine &msg, SMRange noteLoc,
H A DLexer.cpp108 LogicalResult Lexer::pushInclude(StringRef filename, SMRange includeLoc) { in pushInclude()
121 Token Lexer::emitError(SMRange loc, const Twine &msg) { in emitError()
125 Token Lexer::emitErrorAndNote(SMRange loc, const Twine &msg, SMRange noteLoc, in emitErrorAndNote()
132 SMRange(SMLoc::getFromPointer(loc), SMLoc::getFromPointer(loc + 1)), msg); in emitError()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSMLoc.h48 class SMRange {
52 SMRange() = default;
53 SMRange(NoneType) {} in SMRange() function
54 SMRange(SMLoc St, SMLoc En) : Start(St), End(En) { in SMRange() function
H A DSourceMgr.h220 ArrayRef<SMRange> Ranges = {},
226 ArrayRef<SMRange> Ranges = {},
243 ArrayRef<SMRange> Ranges = {},
257 SMRange Range;
262 SMFixIt(SMRange R, const Twine &Replacement);
265 : SMFixIt(SMRange(Loc, Loc), Replacement) {} in SMFixIt()
268 SMRange getRange() const { return Range; } in getRange()
H A DYAMLParser.h107 void printError(const SMRange &Range, const Twine &Msg,
164 SMRange getSourceRange() const { return SourceRange; } in getSourceRange()
165 void setSourceRange(SMRange SR) { SourceRange = SR; } in setSourceRange()
181 SMRange SourceRange;
220 SourceRange = SMRange(Start, End); in ScalarNode()
263 SourceRange = SMRange(Start, End); in BlockScalarNode()
/llvm-project-15.0.7/mlir/lib/Tools/lsp-server-support/
H A DSourceMgrUtils.cpp45 SMRange lsp::convertTokenLocToRange(SMLoc loc) { in convertTokenLocToRange()
47 return SMRange(); in convertTokenLocToRange()
65 return SMRange(loc, SMLoc::getFromPointer(curPtr)); in convertTokenLocToRange()
106 SMRange includeRange(SMLoc::getFromPointer(includeStart), includeLoc); in gatherIncludeFiles()
/llvm-project-15.0.7/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h133 SMRange Range;
213 virtual void Note(SMLoc L, const Twine &Msg, SMRange Range = None) = 0;
218 virtual bool Warning(SMLoc L, const Twine &Msg, SMRange Range = None) = 0;
225 bool Error(SMLoc L, const Twine &Msg, SMRange Range = None);
231 virtual bool printError(SMLoc L, const Twine &Msg, SMRange Range = None) = 0;
256 bool TokError(const Twine &Msg, SMRange Range = None);
H A DMCAsmParserExtension.h73 bool Error(SMLoc L, const Twine &Msg, SMRange Range = SMRange()) {
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAsmParserState.cpp23 DenseMap<Attribute, SmallVector<SmallVector<SMRange>, 0>>;
79 for (ArrayRef<SMRange> useRange : it.second) { in resolveSymbolUses()
151 SMRange AsmParserState::convertIdLocToRange(SMLoc loc) { in convertIdLocToRange()
153 return SMRange(); in convertIdLocToRange()
171 return SMRange(loc, SMLoc::getFromPointer(curPtr)); in convertIdLocToRange()
204 Operation *op, SMRange nameLoc, SMLoc endLoc, in finalizeOperationDefinition()
327 ArrayRef<SMRange> locations) { in addUses()
H A DToken.cpp24 SMRange Token::getLocRange() const { return SMRange(getLoc(), getEndLoc()); } in getLocRange()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp68 static bool contains(SMRange range, SMLoc loc) { in contains()
184 SMRange getDefLoc() const { in getDefLoc()
195 std::vector<SMRange> references;
479 for (SMRange refLoc : symbol->references) in findReferencesOf()
507 SMRange hoverRange; in findHover()
681 SMRange nameLoc = cDecl->getName().getLoc(); in findDocumentSymbols()
682 SMRange bodyLoc = nameLoc; in findDocumentSymbols()
689 SMRange nameLoc = cDecl->getName().getLoc(); in findDocumentSymbols()
690 SMRange bodyLoc = nameLoc; in findDocumentSymbols()
1223 SMRange rangeLoc = range.getAsSMRange(sourceMgr); in getInlayHints()
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DSourceMgrTest.cpp35 SMRange getRange(unsigned Offset, unsigned Length) { in getRange()
36 return SMRange(getLoc(Offset), getLoc(Offset + Length)); in getRange()
40 const Twine &Msg, ArrayRef<SMRange> Ranges, in printMessage()
455 SMRange Ranges[] = { getRange(0, 3), getRange(4, 3) }; in TEST_F()
466 SMRange Ranges[] = { getRange(0, 3), getRange(2, 4) }; in TEST_F()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-lsp-server/
H A DMLIRServer.cpp60 if (Optional<SMRange> range = lsp::convertTokenLocToRange(loc)) { in getLocationFromLoc()
93 static bool contains(SMRange range, SMLoc loc) { in contains()
102 SMRange *overlappedRange = nullptr) { in isDefOrUse()
150 static Optional<StringRef> getTextFromRange(SMRange range) { in getTextFromRange()
261 buildHoverForOperation(SMRange hoverRange,
266 lsp::Hover buildHoverForBlock(SMRange hoverRange,
269 buildHoverForBlockArgument(SMRange hoverRange, BlockArgument arg,
385 for (const SMRange &use : def.uses) in findReferencesOf()
431 SMRange hoverRange; in findHover()
544 MLIRDocument::buildHoverForBlock(SMRange hoverRange, in buildHoverForBlock()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/tblgen-lsp-server/
H A DTableGenServer.cpp45 static lsp::Location getLocationFromLoc(llvm::SourceMgr &mgr, SMRange loc, in getLocationFromLoc()
116 SMRange defLoc;
119 SmallVector<SMRange> references;
136 SMRange *overlappedRange = nullptr) const;
166 auto insertRef = [&](TableGenIndexSymbol *sym, SMRange refLoc, in initialize()
220 TableGenIndex::lookup(SMLoc loc, SMRange *overlappedRange) const { in lookup()
226 *overlappedRange = SMRange(SMLoc::getFromPointer(it.start()), in lookup()
401 for (SMRange refLoc : symbol->references) in findReferencesOf()
/llvm-project-15.0.7/llvm/lib/FileCheck/
H A DFileCheckImpl.h539 SMRange Range;
544 ErrorDiagnostic(SMDiagnostic &&Diag, SMRange Range) in ErrorDiagnostic()
555 SMRange getRange() const { return Range; } in getRange()
558 SMRange Range = None) {
566 return get(SM, Start, ErrMsg, SMRange(Start, End)); in get()
760 SMRange MatchRange, FileCheckDiag::MatchType MatchTy,
/llvm-project-15.0.7/llvm/lib/Support/
H A DSourceMgr.cpp271 const Twine &Msg, ArrayRef<SMRange> Ranges, in GetMessage()
303 for (SMRange R : Ranges) { in GetMessage()
350 ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, in PrintMessage()
356 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage()
365 SMFixIt::SMFixIt(SMRange R, const Twine &Replacement) in SMFixIt()
401 SMRange R = Fixit.getRange(); in buildFixItLine()
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/ODS/
H A DOperation.h128 SMRange getLoc() const { return location; } in getLoc()
191 SMRange location;
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DConfigFragment.h48 Located(T Value, llvm::SMRange Range = {})
51 llvm::SMRange Range;
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DMCAsmParser.cpp95 bool MCAsmParser::TokError(const Twine &Msg, SMRange Range) { in TokError()
99 bool MCAsmParser::Error(SMLoc L, const Twine &Msg, SMRange Range) { in Error()
H A DMCAsmLexer.cpp34 SMRange AsmToken::getLocRange() const { in getLocRange()
35 return SMRange(getLoc(), getEndLoc()); in getLocRange()

1234