MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::pdll::ast::RewriteStmt Class Referencefinal

This statement represents an operation rewrite that contains a block of nested rewrite commands. More...

#include "mlir/Tools/PDLL/AST/Nodes.h"

+ Inheritance diagram for mlir::pdll::ast::RewriteStmt:

Public Member Functions

CompoundStmtgetRewriteBody () const
 Return the compound rewrite body. More...
 

Static Public Member Functions

static RewriteStmtcreate (Context &ctx, SMRange loc, Expr *rootOp, CompoundStmt *rewriteBody)
 
- Static Public Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
static bool classof (const Node *node)
 Provide type casting support. More...
 

Additional Inherited Members

- Public Types inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
using Base = NodeBase< T, BaseT >
 
- Protected Member Functions inherited from mlir::pdll::ast::Node::NodeBase< T, BaseT >
template<typename... Args>
 NodeBase (SMRange loc, Args &&...args)
 

Detailed Description

This statement represents an operation rewrite that contains a block of nested rewrite commands.

This allows for building more complex operation rewrites that span across multiple statements, which may be unconnected.

Definition at line 299 of file Nodes.h.

Member Function Documentation

◆ create()

RewriteStmt * RewriteStmt::create ( Context ctx,
SMRange  loc,
Expr rootOp,
CompoundStmt rewriteBody 
)
static

Definition at line 239 of file Nodes.cpp.

References mlir::pdll::ast::Context::getAllocator().

◆ getRewriteBody()

CompoundStmt* mlir::pdll::ast::RewriteStmt::getRewriteBody ( ) const
inline

Return the compound rewrite body.

Definition at line 305 of file Nodes.h.


The documentation for this class was generated from the following files: