Home
last modified time | relevance | path

Searched refs:UserConstraintDecl (Results 1 – 10 of 10) sorted by relevance

/llvm-project/mlir/test/mlir-pdll/Parser/
H A Dconstraint.pdll4 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<>>
10 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<>> Code< /* Native Code */ >
18 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Attr>
24 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Value>
38 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<result1: Value, result2: Attr>>
58 // CHECK: |-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>>
59 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Value>
63 // CHECK: `-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>>
67 // CHECK: `-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>>
77 // CHECK: UserConstraintDecl {{.*}} Name<<anonymous_constraint_0>> ResultType<Tuple<>>
[all …]
H A Dinclude_td.pdll35 // CHECK: UserConstraintDecl {{.*}} Name<TestAttrInterface> ResultType<Tuple<>> Code<return ::mlir:…
41 // CHECK: UserConstraintDecl {{.*}} Name<TestTypeInterface> ResultType<Tuple<>> Code<return ::mlir:…
47 // CHECK: UserConstraintDecl {{.*}} Name<TestOpInterface> ResultType<Tuple<>> Code<return ::mlir::s…
H A Dexpr.pdll22 // CHECK: |-UserConstraintDecl {{.*}} Name<MakeRootOp> ResultType<Op<my_dialect.foo>>
25 // CHECK: `-UserConstraintDecl {{.*}} Name<MakeRootOp> ResultType<Op<my_dialect.foo>>
54 // CHECK: -UserConstraintDecl {{.*}} Name<TestConstraint> ResultType<Tuple<>>
58 // CHECK: `-UserConstraintDecl {{.*}} Name<TestConstraint> ResultType<Tuple<>>
/llvm-project/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h880 class UserConstraintDecl final
881 : public Node::NodeBase<UserConstraintDecl, ConstraintDecl>,
882 llvm::TrailingObjects<UserConstraintDecl, VariableDecl *, StringRef> {
885 static UserConstraintDecl *
895 static UserConstraintDecl *createPDLL(Context &ctx, const Name &name, in createPDLL()
912 return const_cast<UserConstraintDecl *>(this)->getInputs(); in getInputs()
925 return const_cast<UserConstraintDecl *>(this)->getResults(); in getResults()
945 static UserConstraintDecl *createImpl(Context &ctx, const Name &name,
953 UserConstraintDecl(const Name &name, unsigned numInputs, in UserConstraintDecl() function
980 friend llvm::TrailingObjects<UserConstraintDecl, VariableDecl *, StringRef>;
[all …]
/llvm-project/mlir/lib/Tools/PDLL/CodeGen/
H A DCPPGen.cpp53 void generate(const ast::UserConstraintDecl *decl,
152 .Case<ast::UserConstraintDecl, ast::UserRewriteDecl>( in generateConstraintAndRewrites()
163 void CodeGen::generate(const ast::UserConstraintDecl *decl, in generate()
193 if (auto *userCst = dyn_cast<ast::UserConstraintDecl>(cst.constraint)) { in getNativeTypeName()
H A DMLIRGen.cpp73 void genImpl(const ast::UserConstraintDecl *decl);
105 SmallVector<Value> genConstraintCall(const ast::UserConstraintDecl *decl,
185 const ast::ReturnStmt, const ast::UserConstraintDecl, in gen()
269 void CodeGen::genImpl(const ast::UserConstraintDecl *decl) { in genImpl()
374 if (const auto *userCst = dyn_cast<ast::UserConstraintDecl>(ref.constraint)) in applyVarConstraints()
423 if (const auto *decl = dyn_cast<ast::UserConstraintDecl>(callable)) in genExprImpl()
551 CodeGen::genConstraintCall(const ast::UserConstraintDecl *decl, Location loc, in genConstraintCall()
/llvm-project/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp71 const UserConstraintDecl, const UserRewriteDecl, const VariableDecl, in visit()
137 void visitImpl(const UserConstraintDecl *decl) { in visitImpl()
457 UserConstraintDecl::getNativeInputType(unsigned index) const { in getNativeInputType()
462 UserConstraintDecl *UserConstraintDecl::createImpl( in createImpl()
471 UserConstraintDecl::totalSizeToAlloc<VariableDecl *, StringRef>( in createImpl()
475 ctx.getAllocator().Allocate(allocSize, alignof(UserConstraintDecl)); in createImpl()
479 UserConstraintDecl *decl = new (rawData) in createImpl()
480 UserConstraintDecl(name, inputs.size(), hasNativeInputTypes, in createImpl()
H A DNodePrinter.cpp96 void printImpl(const UserConstraintDecl *decl);
180 const UserConstraintDecl, const ValueConstraintDecl, in print()
301 void NodePrinter::printImpl(const UserConstraintDecl *decl) { in printImpl()
/llvm-project/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp196 /// UserConstraintDecl or UserRewriteDecl.
199 /// Parse a result variable as part of the signature of a UserConstraintDecl
203 /// Parse a UserConstraintDecl. `isInline` signals if the constraint is being
205 FailureOr<ast::UserConstraintDecl *>
208 /// Parse an inline UserConstraintDecl. An inline decl is one defined in a
210 FailureOr<ast::UserConstraintDecl *> parseInlineUserConstraintDecl();
214 FailureOr<ast::UserConstraintDecl *> parseUserPDLLConstraintDecl(
234 /// Parse either a UserConstraintDecl or UserRewriteDecl. These decls have
242 /// Parse a native (i.e. non-PDLL) UserConstraintDecl or UserRewriteDecl.
251 /// UserConstraintDecl o
[all...]
/llvm-project/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp492 if (const auto *cst = dyn_cast<ast::UserConstraintDecl>(decl)) in findHover()
637 } else if (const auto *cDecl = dyn_cast<ast::UserConstraintDecl>(decl)) { in findDocumentSymbols()
814 if (const auto *cst = dyn_cast<ast::UserConstraintDecl>(decl)) { in codeCompleteConstraintName()