Home
last modified time | relevance | path

Searched refs:nameLoc (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/mlir/lib/IR/
H A DLocation.cpp56 .Case([&](NameLoc nameLoc) -> WalkResult { in walk() argument
57 return nameLoc.getChildLoc()->walk(walkFn); in walk()
H A DDiagnostics.cpp402 if (auto nameLoc = loc.dyn_cast<NameLoc>()) in getCallSiteLoc() local
559 .Case([&](NameLoc nameLoc) -> Optional<Location> { in findLocToShow() argument
560 return findLocToShow(nameLoc.getChildLoc()); in findLocToShow()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAsmParserImpl.h28 AsmParserImpl(SMLoc nameLoc, Parser &parser) in AsmParserImpl() argument
29 : nameLoc(nameLoc), parser(parser) {} in AsmParserImpl()
33 SMLoc getNameLoc() const override { return nameLoc; } in getNameLoc()
558 SMLoc nameLoc;
H A DParser.cpp318 SMLoc nameLoc = getToken().getLoc(); in parseResourceHandle() local
331 return emitError(nameLoc) in parseResourceHandle()
2080 SMLoc nameLoc = getToken().getLoc(); in parseBlock() local
2087 blockAndLoc.loc = nameLoc; in parseBlock()
2122 state.asmState->addDefinition(blockAndLoc.block, nameLoc); in parseBlock()
2473 SMLoc nameLoc = getToken().getLoc(); in parseResourceFileMetadata() local
2481 return parseBody(name, nameLoc); in parseResourceFileMetadata()
2487 SMLoc nameLoc) -> ParseResult { in parseDialectResourceFileMetadata() argument
2491 return emitError(nameLoc, "dialect '" + name + "' is unknown"); in parseDialectResourceFileMetadata()
2516 SMLoc nameLoc) -> ParseResult { in parseExternalResourceFileMetadata() argument
[all …]
H A DAsmParserState.cpp204 Operation *op, SMRange nameLoc, SMLoc endLoc, in finalizeOperationDefinition() argument
212 std::make_unique<OperationDefinition>(op, nameLoc, endLoc); in finalizeOperationDefinition()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DDebugTranslation.cpp71 if (auto nameLoc = loc.dyn_cast<NameLoc>()) in extractFileLoc() local
72 return extractFileLoc(nameLoc.getChildLoc()); in extractFileLoc()
166 } else if (auto nameLoc = loc.dyn_cast<NameLoc>()) { in translateLoc() local
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclObjC.h599 SourceLocation nameLoc, IdentifierInfo *name, in ObjCTypeParamDecl() argument
601 : TypedefNameDecl(ObjCTypeParam, ctx, dc, nameLoc, nameLoc, name, in ObjCTypeParamDecl()
616 SourceLocation nameLoc,
2070 SourceLocation nameLoc, SourceLocation atStartLoc,
2103 SourceLocation nameLoc,
2431 SourceLocation nameLoc, SourceLocation atStartLoc) in ObjCImplDecl() argument
2432 : ObjCContainerDecl(DK, DC, Id, nameLoc, atStartLoc), in ObjCImplDecl()
2504 nameLoc, atStartLoc), in ObjCCategoryImplDecl()
2516 SourceLocation nameLoc,
2579 nameLoc, atStartLoc),
[all …]
H A DExprCXX.h935 NestedNameSpecifierLoc qualifierLoc, SourceLocation nameLoc) in MSPropertyRefExpr() argument
937 TheDecl(decl), MemberLoc(nameLoc), IsArrow(isArrow), in MSPropertyRefExpr()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclObjC.cpp69 IdentifierInfo *Id, SourceLocation nameLoc, in ObjCContainerDecl() argument
71 : NamedDecl(DK, DC, nameLoc, Id), DeclContext(DK) { in ObjCContainerDecl()
1442 SourceLocation nameLoc, in Create() argument
1448 nameLoc, name, colonLoc, boundInfo); in Create()
1905 : ObjCContainerDecl(ObjCProtocol, DC, Id, nameLoc, atStartLoc), in ObjCProtocolDecl()
1914 SourceLocation nameLoc, in Create() argument
1918 new (C, DC) ObjCProtocolDecl(C, DC, Id, nameLoc, atStartLoc, PrevDecl); in Create()
2125 SourceLocation nameLoc, in Create() argument
2130 return new (C, DC) ObjCCategoryImplDecl(DC, Id, ClassInterface, nameLoc, in Create()
2229 SourceLocation nameLoc, in Create() argument
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp273 defineVariableDecl(StringRef name, SMRange nameLoc, ast::Type type,
277 defineVariableDecl(StringRef name, SMRange nameLoc, ast::Type type,
1063 SMRange nameLoc = curToken.getLoc(); in parseArgumentDecl() local
1074 return createArgOrResultVariableDecl(name, nameLoc, *cst); in parseArgumentDecl()
1097 SMRange nameLoc = curToken.getLoc(); in parseResultDecl() local
1108 return createArgOrResultVariableDecl(name, nameLoc, *cst); in parseResultDecl()
1585 const ast::Name &nameDecl = ast::Name::create(ctx, name, nameLoc); in defineVariableDecl()
1880 SMRange nameLoc = curToken.getLoc(); in parseIdentifierExpr() local
1895 return parseDeclRefExpr(name, nameLoc); in parseIdentifierExpr()
2194 SMRange nameLoc = curToken.getLoc(); in parseUnderscoreExpr() local
[all …]
/llvm-project-15.0.7/mlir/include/mlir/AsmParser/
H A DAsmParserState.h145 Operation *op, SMRange nameLoc, SMLoc endLoc,
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h519 SMRange getNameLoc() const { return nameLoc; } in getNameLoc()
548 unsigned numAttributes, SMRange nameLoc) in OperationExpr() argument
551 nameLoc(nameLoc) {} in OperationExpr()
560 SMRange nameLoc; variable
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseObjc.cpp234 SourceLocation nameLoc = ConsumeToken(); in ParseObjCAtInterfaceDeclaration() local
257 Actions.CodeCompleteObjCInterfaceCategory(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
287 AtLoc, nameId, nameLoc, typeParameterList, categoryId, categoryLoc, in ParseObjCAtInterfaceDeclaration()
312 Actions.CodeCompleteObjCSuperclass(getCurScope(), nameId, nameLoc); in ParseObjCAtInterfaceDeclaration()
357 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration()
2046 SourceLocation nameLoc = ConsumeToken(); in ParseObjCAtProtocolDeclaration() local
2049 IdentifierLocPair ProtoInfo(protocolName, nameLoc); in ParseObjCAtProtocolDeclaration()
2057 ProtocolRefs.push_back(std::make_pair(protocolName, nameLoc)); in ParseObjCAtProtocolDeclaration()
2130 SourceLocation nameLoc = ConsumeToken(); // consume class or category name in ParseObjCAtImplementationDeclaration() local
2188 AtLoc, nameId, nameLoc, categoryId, categoryLoc, Attrs); in ParseObjCAtImplementationDeclaration()
[all …]
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenACC/
H A DOpenACCToLLVMIRTranslation.cpp83 if (auto nameLoc = loc.dyn_cast<NameLoc>()) { in createMappingInformation() local
84 StringRef name = nameLoc.getName(); in createMappingInformation()
85 return createSourceLocStrFromLocation(nameLoc.getChildLoc(), builder, name, in createMappingInformation()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp673 SMRange nameLoc = name ? name->getLoc() : patternDecl->getLoc(); in findDocumentSymbols() local
674 SMRange bodyLoc(nameLoc.Start, patternDecl->getBody()->getLoc().End); in findDocumentSymbols()
678 lsp::Range(sourceMgr, bodyLoc), lsp::Range(sourceMgr, nameLoc)); in findDocumentSymbols()
681 SMRange nameLoc = cDecl->getName().getLoc(); in findDocumentSymbols() local
682 SMRange bodyLoc = nameLoc; in findDocumentSymbols()
686 lsp::Range(sourceMgr, bodyLoc), lsp::Range(sourceMgr, nameLoc)); in findDocumentSymbols()
689 SMRange nameLoc = cDecl->getName().getLoc(); in findDocumentSymbols() local
690 SMRange bodyLoc = nameLoc; in findDocumentSymbols()
694 lsp::Range(sourceMgr, bodyLoc), lsp::Range(sourceMgr, nameLoc)); in findDocumentSymbols()
/llvm-project-15.0.7/mlir/test/CAPI/
H A Dir.c2024 MlirLocation nameLoc = in testDiagnostics() local
2026 mlirEmitError(nameLoc, "test diagnostics"); in testDiagnostics()
2027 MlirLocation locs[2] = {nameLoc, callSiteLoc}; in testDiagnostics()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5457 SourceLocation nameLoc,