MLIR  22.0.0git
Public Member Functions | List of all members
mlir::StateStackFrameBase< Derived > Class Template Reference

Concrete CRTP base class for StateStack frames. More...

#include "mlir/Support/StateStack.h"

+ Inheritance diagram for mlir::StateStackFrameBase< Derived >:

Public Member Functions

 StateStackFrameBase ()
 
- Public Member Functions inherited from mlir::StateStackFrame
virtual ~StateStackFrame ()=default
 
TypeID getTypeID () const
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::StateStackFrame
 StateStackFrame (TypeID typeID)
 

Detailed Description

template<typename Derived>
class mlir::StateStackFrameBase< Derived >

Concrete CRTP base class for StateStack frames.

This is used for keeping a stack of common state useful for recursive IR conversions. For example, when translating operations with regions, users of StateStack can store state on StateStack before entering the region and inspect it when converting operations nested within that region. Users are expected to derive this class and put any relevant information into fields of the derived class. The usual isa/dyn_cast functionality is available for instances of derived classes.

Definition at line 47 of file StateStack.h.

Constructor & Destructor Documentation

◆ StateStackFrameBase()

template<typename Derived >
mlir::StateStackFrameBase< Derived >::StateStackFrameBase ( )
inlineexplicit

Definition at line 49 of file StateStack.h.


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