/llvm-project/mlir/test/mlir-pdll/ |
H A D | split-markers.pdll | 17 // CHECK-DEFAULT-NEXT: PatternDecl 18 // CHECK-DEFAULT-NOT: PatternDecl 21 // CHECK-DEFAULT-NEXT: PatternDecl 22 // CHECK-DEFAULT: PatternDecl 25 // CHECK-CUSTOM-NEXT: PatternDecl 26 // CHECK-CUSTOM: PatternDecl 29 // CHECK-CUSTOM-NEXT: PatternDecl 30 // CHECK-CUSTOM-NOT: PatternDecl 33 // CHECK-NOSPLIT-NEXT: PatternDecl 35 // CHECK-NOSPLIT: PatternDecl [all …]
|
/llvm-project/mlir/test/mlir-pdll/Parser/ |
H A D | pattern.pdll | 4 // CHECK: `-PatternDecl 14 // CHECK: `-PatternDecl {{.*}} Name<NamedPattern> 22 // CHECK: `-PatternDecl {{.*}} Name<NamedPattern> Benefit<10> Recursion 30 // CHECK: `-PatternDecl {{.*}} Name<NamedPattern>
|
H A D | include.pdll | 13 // CHECK: PatternDecl {{.*}} Name<BeforeIncludedPattern> 14 // CHECK: PatternDecl {{.*}} Name<IncludedPattern> 15 // CHECK: PatternDecl {{.*}} Name<AfterIncludedPattern>
|
H A D | expr.pdll | 36 // CHECK: `-PatternDecl {{.*}} 55 // CHECK: `-PatternDecl {{.*}}
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateInstantiateDecl.cpp | 4667 const FunctionDecl *PatternDecl, in InstantiateExceptionSpec() 4671 for (auto *decl : PatternDecl->decls()) { in InstantiateExceptionSpec() 4695 FunctionDecl *Function, const FunctionDecl *PatternDecl, in InstantiateExceptionSpec() 4699 for (unsigned I = 0, N = PatternDecl->getNumParams(); I != N; ++I) { in InstantiateExceptionSpec() 4700 const ParmVarDecl *PatternParam = PatternDecl->getParamDecl(I); in InstantiateExceptionSpec() 4712 if (!PatternDecl->getType()->isDependentType()) { in InstantiateExceptionSpec() 4736 if (!PatternDecl->getType()->isDependentType()) { in InitFunctionInstantiation() 5043 const FunctionDecl *PatternDecl = Function->getTemplateInstantiationPattern(); in InstantiateFunctionDefinition() 5044 assert(PatternDecl && "instantiating a non-template"); in InstantiateFunctionDefinition() 5046 const FunctionDecl *PatternDef = PatternDecl in InstantiateFunctionDefinition() 4542 addInstantiatedLocalVarsToScope(FunctionDecl * Function,const FunctionDecl * PatternDecl,LocalInstantiationScope & Scope) addInstantiatedLocalVarsToScope() argument 4570 addInstantiatedParametersToScope(FunctionDecl * Function,const FunctionDecl * PatternDecl,LocalInstantiationScope & Scope,const MultiLevelTemplateArgumentList & TemplateArgs) addInstantiatedParametersToScope() argument 4905 const FunctionDecl *PatternDecl = Function->getTemplateInstantiationPattern(); InstantiateFunctionDefinition() local 5248 CompleteVarTemplateSpecializationDecl(VarTemplateSpecializationDecl * VarSpec,VarDecl * PatternDecl,const MultiLevelTemplateArgumentList & TemplateArgs) CompleteVarTemplateSpecializationDecl() argument 5487 VarDecl *PatternDecl = Var->getTemplateInstantiationPattern(); InstantiateVariableDefinition() local [all...] |
H A D | SemaConcept.cpp | 706 FunctionDecl *Function, const FunctionDecl *PatternDecl, in CheckFunctionConstraints() 710 const auto *LambdaPattern = cast<CXXMethodDecl>(PatternDecl)->getParent(); in CheckFunctionConstraints() 551 addInstantiatedCapturesToScope(FunctionDecl * Function,const FunctionDecl * PatternDecl,LocalInstantiationScope & Scope,const MultiLevelTemplateArgumentList & TemplateArgs) addInstantiatedCapturesToScope() argument
|
/llvm-project/mlir/lib/Tools/PDLL/AST/ |
H A D | Nodes.cpp | 70 const NamedAttributeDecl, const OpNameDecl, const PatternDecl, in visit() 136 void visitImpl(const PatternDecl *decl) { visit(decl->getBody()); } in visitImpl() 520 PatternDecl *PatternDecl::create(Context &ctx, SMRange loc, const Name *name, in create() 524 return new (ctx.getAllocator().Allocate<PatternDecl>()) in create() 525 PatternDecl(loc, name, benefit, hasBoundedRecursion, body); in create()
|
H A D | NodePrinter.cpp | 101 void printImpl(const PatternDecl *decl); 182 const OpNameDecl, const PatternDecl, const UserRewriteDecl, in print() 341 void NodePrinter::printImpl(const PatternDecl *decl) { in printImpl()
|
/llvm-project/mlir/test/mlir-pdll-lsp-server/ |
H A D | view-output.test | 18 // CHECK-NEXT: "output": "-Module{{.*}}PatternDecl{{.*}}Name<TestPat>{{.*}}\n"
|
/llvm-project/mlir/include/mlir/Tools/PDLL/AST/ |
H A D | Nodes.h | 1037 class PatternDecl : public Node::NodeBase<PatternDecl, Decl> { 1039 static PatternDecl *create(Context &ctx, SMRange location, const Name *name, 1059 PatternDecl(SMRange loc, const Name *name, std::optional<uint16_t> benefit, in PatternDecl() function 1319 return isa<ConstraintDecl, NamedAttributeDecl, OpNameDecl, PatternDecl, in classof()
|
/llvm-project/mlir/test/mlir-pdll/CodeGen/MLIR/ |
H A D | decl.pdll | 4 // PatternDecl
|
/llvm-project/mlir/lib/Tools/PDLL/CodeGen/ |
H A D | MLIRGen.cpp | 75 void genImpl(const ast::PatternDecl *decl); 186 const ast::UserRewriteDecl, const ast::PatternDecl>( in gen() 281 void CodeGen::genImpl(const ast::PatternDecl *decl) { in genImpl()
|
/llvm-project/mlir/lib/Tools/mlir-pdll-lsp-server/ |
H A D | PDLLServer.cpp | 296 lsp::Hover buildHoverForPattern(const ast::PatternDecl *decl, 484 if (const auto *patternDecl = dyn_cast<ast::PatternDecl>(decl)) in findHover() 525 lsp::Hover PDLDocument::buildHoverForPattern(const ast::PatternDecl *decl, in buildHoverForPattern() 628 if (const auto *patternDecl = dyn_cast<ast::PatternDecl>(decl)) { in findDocumentSymbols()
|
/llvm-project/clang/lib/AST/ |
H A D | Decl.cpp | 4113 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); in getTemplateInstantiationPattern() 4115 if (PatternDecl) in getTemplateInstantiationPattern() 4116 HasPattern = PatternDecl->hasBody(PatternDecl); in getTemplateInstantiationPattern() 4122 if (!HasPattern || !PatternDecl) in getTemplateInstantiationPattern() 4125 return PatternDecl->isInlined(); in getTemplateInstantiationPattern() 4079 const FunctionDecl *PatternDecl = getTemplateInstantiationPattern(); isImplicitlyInstantiable() local
|
/llvm-project/mlir/lib/Tools/PDLL/Parser/ |
H A D | Parser.cpp | 357 FailureOr<ast::PatternDecl *> 2493 FailureOr<ast::PatternDecl *> 2497 return ast::PatternDecl::create(ctx, loc, name, metadata.benefit, in createPatternDecl()
|
/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 13769 VarTemplateSpecializationDecl *VarSpec, VarDecl *PatternDecl, 13878 const FunctionDecl *PatternDecl, 13884 FunctionDecl *Function, const FunctionDecl *PatternDecl, 13891 FunctionDecl *Function, const FunctionDecl *PatternDecl,
|