Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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 */ >
16 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Value>
30 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<result1: Value, result2: Attr>>
50 // CHECK: |-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>>
51 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Value>
55 // CHECK: `-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>>
59 // CHECK: `-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>>
69 // CHECK: UserConstraintDecl {{.*}} Name<<anonymous_constraint_0>> ResultType<Tuple<>>
70 // CHECK: UserConstraintDecl {{.*}} Name<<anonymous_constraint_1>> ResultType<Attr>
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>>
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h836 class UserConstraintDecl final
841 static UserConstraintDecl *
900 static UserConstraintDecl *
906 UserConstraintDecl(const Name &name, unsigned numInputs, in UserConstraintDecl() function
1144 if (isa<UserConstraintDecl>(this)) in getCallableType()
1152 if (const auto *cst = dyn_cast<UserConstraintDecl>(this)) in getInputs()
1159 if (const auto *cst = dyn_cast<UserConstraintDecl>(this)) in getResultType()
1168 if (const auto *cst = dyn_cast<UserConstraintDecl>(this)) in getResults()
1176 if (const auto *cst = dyn_cast<UserConstraintDecl>(this)) 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()
132 void visitImpl(const UserConstraintDecl *decl) { in visitImpl()
436 UserConstraintDecl::getNativeInputType(unsigned index) const { in getNativeInputType()
441 UserConstraintDecl *UserConstraintDecl::createImpl( in createImpl()
449 UserConstraintDecl::totalSizeToAlloc<VariableDecl *, StringRef>( in createImpl()
453 ctx.getAllocator().Allocate(allocSize, alignof(UserConstraintDecl)); in createImpl()
457 UserConstraintDecl *decl = new (rawData) in createImpl()
458 UserConstraintDecl(name, inputs.size(), hasNativeInputTypes, in createImpl()
H A DNodePrinter.cpp94 void printImpl(const UserConstraintDecl *decl);
178 const UserConstraintDecl, const ValueConstraintDecl, in print()
288 void NodePrinter::printImpl(const UserConstraintDecl *decl) { in printImpl()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DCPPGen.cpp52 void generate(const ast::UserConstraintDecl *decl,
148 .Case<ast::UserConstraintDecl, ast::UserRewriteDecl>( in generateConstraintAndRewrites()
159 void CodeGen::generate(const ast::UserConstraintDecl *decl, in generate()
189 if (auto *userCst = dyn_cast<ast::UserConstraintDecl>(cst.constraint)) { in getNativeTypeName()
H A DMLIRGen.cpp72 void genImpl(const ast::UserConstraintDecl *decl);
103 SmallVector<Value> genConstraintCall(const ast::UserConstraintDecl *decl,
181 const ast::ReturnStmt, const ast::UserConstraintDecl, in gen()
265 void CodeGen::genImpl(const ast::UserConstraintDecl *decl) { in genImpl()
369 if (const auto *userCst = dyn_cast<ast::UserConstraintDecl>(ref.constraint)) in applyVarConstraints()
417 if (const auto *decl = dyn_cast<ast::UserConstraintDecl>(callable)) in genExprImpl()
536 CodeGen::genConstraintCall(const ast::UserConstraintDecl *decl, Location loc, in genConstraintCall()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp199 FailureOr<ast::UserConstraintDecl *>
204 FailureOr<ast::UserConstraintDecl *> parseInlineUserConstraintDecl();
208 FailureOr<ast::UserConstraintDecl *> parseUserPDLLConstraintDecl(
939 auto *constraintDecl = ast::UserConstraintDecl::createNative( in createODSNativePDLLConstraintDecl()
1121 FailureOr<ast::UserConstraintDecl *>
1125 return parseUserConstraintOrRewriteDecl<ast::UserConstraintDecl>( in parseUserConstraintDecl()
1133 FailureOr<ast::UserConstraintDecl *> decl = in parseInlineUserConstraintDecl()
1142 FailureOr<ast::UserConstraintDecl *> Parser::parseUserPDLLConstraintDecl( in parseUserPDLLConstraintDecl()
1186 return createUserPDLLConstraintOrRewriteDecl<ast::UserConstraintDecl>( in parseUserPDLLConstraintDecl()
2603 dyn_cast<ast::UserConstraintDecl>(ref.constraint)) { in validateVariableConstraint()
[all …]
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp534 if (const auto *cst = dyn_cast<ast::UserConstraintDecl>(decl)) in findHover()
679 } else if (const auto *cDecl = dyn_cast<ast::UserConstraintDecl>(decl)) { in findDocumentSymbols()
857 if (const auto *cst = dyn_cast<ast::UserConstraintDecl>(decl)) { in codeCompleteConstraintName()