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

This statement represents a return from a "callable" like decl, e.g. More...

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

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

Public Member Functions

ExprgetResultExpr ()
 Return the result expression of this statement. More...
 
const ExprgetResultExpr () const
 
void setResultExpr (Expr *expr)
 Set the result expression of this statement. More...
 

Static Public Member Functions

static ReturnStmtcreate (Context &ctx, SMRange loc, Expr *resultExpr)
 
- 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 a return from a "callable" like decl, e.g.

a Constraint or a Rewrite.

Definition at line 321 of file Nodes.h.

Member Function Documentation

◆ create()

ReturnStmt * ReturnStmt::create ( Context ctx,
SMRange  loc,
Expr resultExpr 
)
static

Definition at line 249 of file Nodes.cpp.

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

◆ getResultExpr() [1/2]

Expr* mlir::pdll::ast::ReturnStmt::getResultExpr ( )
inline

Return the result expression of this statement.

Definition at line 326 of file Nodes.h.

◆ getResultExpr() [2/2]

const Expr* mlir::pdll::ast::ReturnStmt::getResultExpr ( ) const
inline

Definition at line 327 of file Nodes.h.

◆ setResultExpr()

void mlir::pdll::ast::ReturnStmt::setResultExpr ( Expr expr)
inline

Set the result expression of this statement.

Definition at line 330 of file Nodes.h.


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