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

This expression represents a named member or field access of a given parent expression. More...

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

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

Public Member Functions

const ExprgetParentExpr () const
 Get the parent expression of this access. More...
 
StringRef getMemberName () const
 Return the name of the member being accessed. More...
 

Static Public Member Functions

static MemberAccessExprcreate (Context &ctx, SMRange loc, const Expr *parentExpr, StringRef memberName, 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 named member or field access of a given parent expression.

Definition at line 455 of file Nodes.h.

Member Function Documentation

◆ create()

MemberAccessExpr * MemberAccessExpr::create ( Context ctx,
SMRange  loc,
const Expr parentExpr,
StringRef  memberName,
Type  type 
)
static

◆ getMemberName()

StringRef mlir::pdll::ast::MemberAccessExpr::getMemberName ( ) const
inline

Return the name of the member being accessed.

Definition at line 465 of file Nodes.h.

Referenced by mlir::pdll::ast::AllResultsMemberAccessExpr::classof().

◆ getParentExpr()

const Expr* mlir::pdll::ast::MemberAccessExpr::getParentExpr ( ) const
inline

Get the parent expression of this access.

Definition at line 462 of file Nodes.h.


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