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

This expression represents a reference to a Decl node. More...

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

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

Public Member Functions

DeclgetDecl () const
 Get the decl referenced by this expression. More...
 

Static Public Member Functions

static DeclRefExprcreate (Context &ctx, SMRange loc, Decl *decl, Type type)
 
- 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 expression represents a reference to a Decl node.

Definition at line 434 of file Nodes.h.

Member Function Documentation

◆ create()

DeclRefExpr * DeclRefExpr::create ( Context ctx,
SMRange  loc,
Decl decl,
Type  type 
)
static

Definition at line 285 of file Nodes.cpp.

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

◆ getDecl()

Decl* mlir::pdll::ast::DeclRefExpr::getDecl ( ) const
inline

Get the decl referenced by this expression.

Definition at line 439 of file Nodes.h.


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