MLIR 22.0.0git
mlir::pdll::ast::RangeType Class Reference

This class represents a PDLL type that corresponds to a range of elements with a given element type. More...

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

Inheritance diagram for mlir::pdll::ast::RangeType:

Public Member Functions

Type getElementType () const
 Return the element type of this range.
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
StoragegetImpl () const
 Return the internal storage instance of this type.
TypeID getTypeID () const
 Return the TypeID instance of this type.
void print (raw_ostream &os) const
 Print this type to the given stream.
Type refineWith (Type other) const
 Try to refine this type with the one provided.

Static Public Member Functions

static RangeType get (Context &context, Type elementType)
 Return an instance of the Range type with the given element type.
Static Public Member Functions inherited from mlir::pdll::ast::Type::TypeBase< detail::RangeTypeStorage >
static bool classof (Type type)
 Provide type casting support.

Additional Inherited Members

Public Types inherited from mlir::pdll::ast::Type::TypeBase< detail::RangeTypeStorage >
using Base
using ImplTy
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.

Detailed Description

This class represents a PDLL type that corresponds to a range of elements with a given element type.

Definition at line 159 of file Types.h.

Member Function Documentation

◆ get()

RangeType RangeType::get ( Context & context,
Type elementType )
static

Return an instance of the Range type with the given element type.

Definition at line 95 of file Types.cpp.

References mlir::StorageUniquer::get(), and mlir::pdll::ast::Context::getTypeUniquer().

Referenced by mlir::pdll::ast::TypeRangeType::get(), and mlir::pdll::ast::ValueRangeType::get().

◆ getElementType()

Type RangeType::getElementType ( ) const

Return the element type of this range.

Definition at line 100 of file Types.cpp.

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

Referenced by mlir::pdll::ast::TypeRangeType::classof(), and mlir::pdll::ast::ValueRangeType::classof().


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