Home
last modified time | relevance | path

Searched refs:UserRewriteDecl (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Drewrite.pdll4 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Tuple<>>
10 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Tuple<>> Code< /* Native Code */ >
16 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Value>
31 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Tuple<result1: Value, result2: Attr>>
53 // CHECK: UserRewriteDecl {{.*}} Name<<anonymous_rewrite_0>> ResultType<Tuple<>>
54 // CHECK: UserRewriteDecl {{.*}} Name<<anonymous_rewrite_1>> ResultType<Attr>
H A Dexpr.pdll35 // CHECK: |-UserRewriteDecl {{.*}} Name<CreateNewOp> ResultType<Op<my_dialect.foo>>
39 // CHECK: `-UserRewriteDecl {{.*}} Name<CreateNewOp> ResultType<Op<my_dialect.foo>>
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h1042 class UserRewriteDecl final
1043 : public Node::NodeBase<UserRewriteDecl, Decl>,
1044 llvm::TrailingObjects<UserRewriteDecl, VariableDecl *> {
1074 return const_cast<UserRewriteDecl *>(this)->getInputs(); in getInputs()
1083 return const_cast<UserRewriteDecl *>(this)->getResults(); in getResults()
1154 return cast<UserRewriteDecl>(this)->getInputs(); in getInputs()
1161 return cast<UserRewriteDecl>(this)->getResultType(); in getResultType()
1170 return cast<UserRewriteDecl>(this)->getResults(); in getResults()
1178 return cast<UserRewriteDecl>(this)->getCodeBlock(); in getCodeBlock()
1183 return isa<UserConstraintDecl, UserRewriteDecl>(decl); in classof()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp70 const UserConstraintDecl, const UserRewriteDecl, const VariableDecl, in visit()
139 void visitImpl(const UserRewriteDecl *decl) { in visitImpl()
510 UserRewriteDecl *UserRewriteDecl::createImpl(Context &ctx, const Name &name, in createImpl()
516 unsigned allocSize = UserRewriteDecl::totalSizeToAlloc<VariableDecl *>( in createImpl()
519 ctx.getAllocator().Allocate(allocSize, alignof(UserRewriteDecl)); in createImpl()
523 UserRewriteDecl *decl = new (rawData) UserRewriteDecl( in createImpl()
H A DNodePrinter.cpp100 void printImpl(const UserRewriteDecl *decl);
180 const OpNameDecl, const PatternDecl, const UserRewriteDecl, in print()
341 void NodePrinter::printImpl(const UserRewriteDecl *decl) { in printImpl()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DCPPGen.cpp54 void generate(const ast::UserRewriteDecl *decl, StringSet<> &nativeFunctions);
148 .Case<ast::UserConstraintDecl, ast::UserRewriteDecl>( in generateConstraintAndRewrites()
165 void CodeGen::generate(const ast::UserRewriteDecl *decl, in generate()
H A DMLIRGen.cpp73 void genImpl(const ast::UserRewriteDecl *decl);
105 SmallVector<Value> genRewriteCall(const ast::UserRewriteDecl *decl,
182 const ast::UserRewriteDecl, const ast::PatternDecl>( in gen()
271 void CodeGen::genImpl(const ast::UserRewriteDecl *decl) { in genImpl()
419 if (const auto *decl = dyn_cast<ast::UserRewriteDecl>(callable)) in genExprImpl()
553 SmallVector<Value> CodeGen::genRewriteCall(const ast::UserRewriteDecl *decl, in genRewriteCall()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp215 FailureOr<ast::UserRewriteDecl *> parseUserRewriteDecl(bool isInline = false);
219 FailureOr<ast::UserRewriteDecl *> parseInlineUserRewriteDecl();
223 FailureOr<ast::UserRewriteDecl *> parseUserPDLLRewriteDecl(
1193 return parseUserConstraintOrRewriteDecl<ast::UserRewriteDecl>( in parseUserRewriteDecl()
1198 FailureOr<ast::UserRewriteDecl *> Parser::parseInlineUserRewriteDecl() { in parseInlineUserRewriteDecl()
1199 FailureOr<ast::UserRewriteDecl *> decl = in parseInlineUserRewriteDecl()
1208 FailureOr<ast::UserRewriteDecl *> Parser::parseUserPDLLRewriteDecl( in parseUserPDLLRewriteDecl()
1254 return createUserPDLLConstraintOrRewriteDecl<ast::UserRewriteDecl>( in parseUserPDLLRewriteDecl()
1908 FailureOr<ast::UserRewriteDecl *> decl = parseInlineUserRewriteDecl(); in parseInlineRewriteLambdaExpr()
2678 } else if (isa<ast::UserRewriteDecl>(callableDecl)) { in createCallExpr()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp538 if (const auto *rewrite = dyn_cast<ast::UserRewriteDecl>(decl)) in findHover()
687 } else if (const auto *cDecl = dyn_cast<ast::UserRewriteDecl>(decl)) { in findDocumentSymbols()