Home
last modified time | relevance | path

Searched refs:OpNameDecl (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Dexpr.pdll96 // CHECK: `-OpNameDecl {{.*}} Name<my_dialect.unregistered_foo>
100 // CHECK: `-OpNameDecl {{.*}} Name<my_dialect.unregistered_bar>
122 // CHECK: `-OpNameDecl
144 // CHECK: `-OpNameDecl
155 // CHECK: `-OpNameDecl {{.*}} Name<my_dialect.foo>
164 // CHECK: `-OpNameDecl
177 // CHECK: `-OpNameDecl
181 // CHECK: `-OpNameDecl {{.*}} Name<my_dialect.bar>
190 // CHECK: `-OpNameDecl
205 // CHECK: `-OpNameDecl
H A Dstmt.pdll43 // CHECK: `-OpNameDecl
59 // CHECK: `-OpNameDecl
61 // CHECK: `-OpNameDecl {{.*}} Name<dialect.op>
78 // CHECK: `-OpNameDecl
H A Dinclude_td.pdll52 // CHECK: `-OpNameDecl
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp69 const NamedAttributeDecl, const OpNameDecl, const PatternDecl, in visit()
130 void visitImpl(const OpNameDecl *decl) {} in visitImpl()
302 const OpNameDecl *name, ArrayRef<Expr *> operands, in create()
380 const OpNameDecl *nameDecl) { in create()
382 nameDecl = OpNameDecl::create(ctx, SMRange()); in create()
487 OpNameDecl *OpNameDecl::create(Context &ctx, const Name &name) { in create()
488 return new (ctx.getAllocator().Allocate<OpNameDecl>()) OpNameDecl(name); in create()
490 OpNameDecl *OpNameDecl::create(Context &ctx, SMRange loc) { in create()
491 return new (ctx.getAllocator().Allocate<OpNameDecl>()) OpNameDecl(loc); in create()
H A DNodePrinter.cpp98 void printImpl(const OpNameDecl *decl);
180 const OpNameDecl, const PatternDecl, const UserRewriteDecl, in print()
321 void NodePrinter::printImpl(const OpNameDecl *decl) { in printImpl()
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h27 class OpNameDecl; variable
506 const OpNameDecl *nameDecl,
515 const OpNameDecl *getNameDecl() const { return nameDecl; } in getNameDecl()
546 OperationExpr(SMRange loc, Type type, const OpNameDecl *nameDecl, in OperationExpr()
554 const OpNameDecl *nameDecl;
737 const OpNameDecl *getNameDecl() const { return nameDecl; } in getNameDecl()
744 const OpNameDecl *nameDecl;
969 class OpNameDecl : public Node::NodeBase<OpNameDecl, Decl> {
971 static OpNameDecl *create(Context &ctx, const Name &name);
972 static OpNameDecl *create(Context &ctx, SMRange loc);
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp319 FailureOr<ast::OpNameDecl *> parseOperationName(bool allowEmptyName = false);
320 FailureOr<ast::OpNameDecl *> parseWrappedOperationName(bool allowEmptyName);
420 createOperationExpr(SMRange loc, const ast::OpNameDecl *name,
1675 FailureOr<ast::OpNameDecl *> opName = in parseConstraint()
1936 FailureOr<ast::OpNameDecl *> Parser::parseOperationName(bool allowEmptyName) { in parseOperationName()
1946 return ast::OpNameDecl::create(ctx, SMRange()); in parseOperationName()
1970 return ast::OpNameDecl::create(ctx, ast::Name::create(ctx, name, loc)); in parseOperationName()
1973 FailureOr<ast::OpNameDecl *>
1976 return ast::OpNameDecl::create(ctx, SMRange()); in parseWrappedOperationName()
2003 FailureOr<ast::OpNameDecl *> opNameDecl = in parseOperationExpr()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp264 if (const auto *decl = dyn_cast<ast::OpNameDecl>(node)) { in initialize()