MLIR  19.0.0git
Public Types | Static Public Member Functions | List of all members
mlir::pdll::ast::Type::TypeBase< ImplT, BaseT > Class Template Reference

This class provides several utilities when defining derived type classes. More...

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

+ Inheritance diagram for mlir::pdll::ast::Type::TypeBase< ImplT, BaseT >:

Public Types

using Base = TypeBase< ImplT, BaseT >
 
using ImplTy = ImplT
 

Static Public Member Functions

static bool classof (Type type)
 Provide type casting support. More...
 

Additional Inherited Members

- Public Member Functions inherited from mlir::pdll::ast::Type
 Type (Storage *impl=nullptr)
 
bool operator== (const Type &other) const
 
bool operator!= (const Type &other) const
 
 operator bool () const
 
template<typename U >
bool isa () const
 Provide type casting support. More...
 
template<typename U , typename V , typename... Others>
bool isa () const
 
template<typename U >
dyn_cast () const
 
template<typename U >
dyn_cast_or_null () const
 
template<typename U >
cast () const
 
StoragegetImpl () const
 Return the internal storage instance of this type. More...
 
TypeID getTypeID () const
 Return the TypeID instance of this type. More...
 
void print (raw_ostream &os) const
 Print this type to the given stream. More...
 
Type refineWith (Type other) const
 Try to refine this type with the one provided. More...
 
- Protected Member Functions inherited from mlir::pdll::ast::Type
template<typename T >
const T * getImplAs () const
 Return the internal storage instance of this type reinterpreted as the given derived storage type. More...
 

Detailed Description

template<typename ImplT, typename BaseT = Type>
class mlir::pdll::ast::Type::TypeBase< ImplT, BaseT >

This class provides several utilities when defining derived type classes.

Definition at line 47 of file Types.h.

Member Typedef Documentation

◆ Base

template<typename ImplT , typename BaseT = Type>
using mlir::pdll::ast::Type::TypeBase< ImplT, BaseT >::Base = TypeBase<ImplT, BaseT>

Definition at line 49 of file Types.h.

◆ ImplTy

template<typename ImplT , typename BaseT = Type>
using mlir::pdll::ast::Type::TypeBase< ImplT, BaseT >::ImplTy = ImplT

Definition at line 50 of file Types.h.

Member Function Documentation

◆ classof()

template<typename ImplT , typename BaseT = Type>
static bool mlir::pdll::ast::Type::TypeBase< ImplT, BaseT >::classof ( Type  type)
inlinestatic

Provide type casting support.

Definition at line 54 of file Types.h.

References mlir::pdll::ast::Type::getTypeID().


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