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

This statement represents a let statement in PDLL. More...

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

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

Public Member Functions

VariableDeclgetVarDecl () const
 Return the variable defined by this statement. More...
 

Static Public Member Functions

static LetStmtcreate (Context &ctx, SMRange loc, VariableDecl *varDecl)
 
- 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 let statement in PDLL.

This statement is used to define variables.

Definition at line 211 of file Nodes.h.

Member Function Documentation

◆ create()

LetStmt * LetStmt::create ( Context ctx,
SMRange  loc,
VariableDecl varDecl 
)
static

Definition at line 207 of file Nodes.cpp.

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

◆ getVarDecl()

VariableDecl* mlir::pdll::ast::LetStmt::getVarDecl ( ) const
inline

Return the variable defined by this statement.

Definition at line 216 of file Nodes.h.


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