MLIR  18.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
mlir::pdll::ast::ReplaceStmt Class Referencefinal

This statement represents the replace statement in PDLL. More...

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

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

Public Member Functions

MutableArrayRef< Expr * > getReplExprs ()
 Return the replacement values of this statement. More...
 
ArrayRef< Expr * > getReplExprs () const
 

Static Public Member Functions

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

Friends

class llvm::TrailingObjects< ReplaceStmt, Expr * >
 TrailingObject utilities. 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 the replace statement in PDLL.

This statement replace the given root operation with a set of values, corresponding roughly to the PatternRewriter::replaceOp API.

Definition at line 268 of file Nodes.h.

Member Function Documentation

◆ create()

ReplaceStmt * ReplaceStmt::create ( Context ctx,
SMRange  loc,
Expr rootOp,
ArrayRef< Expr * >  replExprs 
)
static

Definition at line 225 of file Nodes.cpp.

References mlir::pdll::ast::Context::getAllocator(), and getReplExprs().

◆ getReplExprs() [1/2]

MutableArrayRef<Expr *> mlir::pdll::ast::ReplaceStmt::getReplExprs ( )
inline

Return the replacement values of this statement.

Definition at line 275 of file Nodes.h.

Referenced by create(), and getReplExprs().

◆ getReplExprs() [2/2]

ArrayRef<Expr *> mlir::pdll::ast::ReplaceStmt::getReplExprs ( ) const
inline

Definition at line 278 of file Nodes.h.

References getReplExprs().

Friends And Related Function Documentation

◆ llvm::TrailingObjects< ReplaceStmt, Expr * >

friend class llvm::TrailingObjects< ReplaceStmt, Expr * >
friend

TrailingObject utilities.

Definition at line 287 of file Nodes.h.


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