Home
last modified time | relevance | path

Searched refs:PatternDecl (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Dpattern.pdll4 // CHECK: `-PatternDecl
14 // CHECK: `-PatternDecl {{.*}} Name<NamedPattern>
22 // CHECK: `-PatternDecl {{.*}} Name<NamedPattern> Benefit<10> Recursion
30 // CHECK: `-PatternDecl {{.*}} Name<NamedPattern>
H A Dinclude.pdll13 // CHECK: PatternDecl {{.*}} Name<BeforeIncludedPattern>
14 // CHECK: PatternDecl {{.*}} Name<IncludedPattern>
15 // CHECK: PatternDecl {{.*}} Name<AfterIncludedPattern>
H A Dexpr.pdll36 // CHECK: `-PatternDecl {{.*}}
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp4835 PatternDecl = PatternDef; in InstantiateFunctionDefinition()
4902 if (PatternDecl->isFromASTFile()) in InstantiateFunctionDefinition()
4909 Pattern = PatternDecl->getBody(PatternDecl); in InstantiateFunctionDefinition()
4914 PatternDecl->hasSkippedBody()) && in InstantiateFunctionDefinition()
4923 !PatternDecl->isInlined() && in InstantiateFunctionDefinition()
4927 if (PatternDecl->isInlined()) { in InstantiateFunctionDefinition()
4971 assert(PatternDecl->isDefaulted() && in InstantiateFunctionDefinition()
5032 if (PatternDecl->isDefaulted()) { in InstantiateFunctionDefinition()
5056 if (PatternDecl->hasSkippedBody()) { in InstantiateFunctionDefinition()
5159 PatternDecl->getTypeSpecStartLoc(), PatternDecl->getDeclName()); in CompleteVarTemplateSpecializationDecl()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp69 const NamedAttributeDecl, const OpNameDecl, const PatternDecl, in visit()
131 void visitImpl(const PatternDecl *decl) { visit(decl->getBody()); } in visitImpl()
498 PatternDecl *PatternDecl::create(Context &ctx, SMRange loc, const Name *name, in create()
502 return new (ctx.getAllocator().Allocate<PatternDecl>()) in create()
503 PatternDecl(loc, name, benefit, hasBoundedRecursion, body); in create()
H A DNodePrinter.cpp99 void printImpl(const PatternDecl *decl);
180 const OpNameDecl, const PatternDecl, const UserRewriteDecl, in print()
328 void NodePrinter::printImpl(const PatternDecl *decl) { in printImpl()
/llvm-project-15.0.7/mlir/test/mlir-pdll-lsp-server/
H A Dview-output.test18 // CHECK-NEXT: "output": "-Module{{.*}}PatternDecl{{.*}}Name<TestPat>{{.*}}\n"
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h990 class PatternDecl : public Node::NodeBase<PatternDecl, Decl> {
992 static PatternDecl *create(Context &ctx, SMRange location, const Name *name,
1012 PatternDecl(SMRange loc, const Name *name, Optional<uint16_t> benefit, in PatternDecl() function
1271 return isa<ConstraintDecl, NamedAttributeDecl, OpNameDecl, PatternDecl, in classof()
/llvm-project-15.0.7/mlir/test/mlir-pdll/CodeGen/MLIR/
H A Ddecl.pdll4 // PatternDecl
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DMLIRGen.cpp74 void genImpl(const ast::PatternDecl *decl);
182 const ast::UserRewriteDecl, const ast::PatternDecl>( in gen()
277 void CodeGen::genImpl(const ast::PatternDecl *decl) { in genImpl()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp340 lsp::Hover buildHoverForPattern(const ast::PatternDecl *decl,
526 if (const auto *patternDecl = dyn_cast<ast::PatternDecl>(decl)) in findHover()
567 lsp::Hover PDLDocument::buildHoverForPattern(const ast::PatternDecl *decl, in buildHoverForPattern()
670 if (const auto *patternDecl = dyn_cast<ast::PatternDecl>(decl)) { in findDocumentSymbols()
/llvm-project-15.0.7/clang/lib/AST/
H A DDecl.cpp3826 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in isImplicitlyInstantiable() local
3828 if (PatternDecl) in isImplicitlyInstantiable()
3829 HasPattern = PatternDecl->hasBody(PatternDecl); in isImplicitlyInstantiable()
3835 if (!HasPattern || !PatternDecl) in isImplicitlyInstantiable()
3838 return PatternDecl->isInlined(); in isImplicitlyInstantiable()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp352 FailureOr<ast::PatternDecl *>
2457 FailureOr<ast::PatternDecl *>
2461 return ast::PatternDecl::create(ctx, loc, name, metadata.benefit, in createPatternDecl()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h7111 FunctionDecl *Function, const FunctionDecl *PatternDecl,
9812 VarTemplateSpecializationDecl *VarSpec, VarDecl *PatternDecl,