This Decl represents a single Pattern.
More...
#include "mlir/Tools/PDLL/AST/Nodes.h"
This Decl represents a single Pattern.
Definition at line 1037 of file Nodes.h.
◆ create()
PatternDecl * PatternDecl::create |
( |
Context & |
ctx, |
|
|
SMRange |
location, |
|
|
const Name * |
name, |
|
|
std::optional< uint16_t > |
benefit, |
|
|
bool |
hasBoundedRecursion, |
|
|
const CompoundStmt * |
body |
|
) |
| |
|
static |
◆ getBenefit()
std::optional<uint16_t> mlir::pdll::ast::PatternDecl::getBenefit |
( |
| ) |
const |
|
inline |
Return the benefit of this pattern if specified, or std::nullopt.
Definition at line 1045 of file Nodes.h.
◆ getBody()
const CompoundStmt* mlir::pdll::ast::PatternDecl::getBody |
( |
| ) |
const |
|
inline |
Return the body of this pattern.
Definition at line 1051 of file Nodes.h.
◆ getRootRewriteStmt()
const OpRewriteStmt* mlir::pdll::ast::PatternDecl::getRootRewriteStmt |
( |
| ) |
const |
|
inline |
◆ hasBoundedRewriteRecursion()
bool mlir::pdll::ast::PatternDecl::hasBoundedRewriteRecursion |
( |
| ) |
const |
|
inline |
Return if this pattern has bounded rewrite recursion.
Definition at line 1048 of file Nodes.h.
The documentation for this class was generated from the following files: