LLVM 22.0.0git
llvm::ListRecTy Class Reference

'list<Ty>' - Represent a list of element values, all of which must be of the specified type. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::ListRecTy:
[legend]

Public Member Functions

const RecTygetElementType () const
std::string getAsString () const override
bool typeIsConvertibleTo (const RecTy *RHS) const override
 Return true if all values of 'this' type can be converted to the specified type.
bool typeIsA (const RecTy *RHS) const override
 Return true if 'this' type is equal to or a subtype of RHS.
Public Member Functions inherited from llvm::RecTy
 RecTy (RecTyKind K, RecordKeeper &RK)
virtual ~RecTy ()=default
RecTyKind getRecTyKind () const
RecordKeepergetRecordKeeper () const
 Return the RecordKeeper that uniqued this Type.
void print (raw_ostream &OS) const
void dump () const
const ListRecTygetListTy () const
 Returns the type representing list<thistype>.

Static Public Member Functions

static bool classof (const RecTy *RT)
static const ListRecTyget (const RecTy *T)

Friends

const ListRecTyRecTy::getListTy () const

Additional Inherited Members

Public Types inherited from llvm::RecTy
enum  RecTyKind {
  BitRecTyKind , BitsRecTyKind , IntRecTyKind , StringRecTyKind ,
  ListRecTyKind , DagRecTyKind , RecordRecTyKind
}
 Subclass discriminator (for dyn_cast<> et al.) More...

Detailed Description

'list<Ty>' - Represent a list of element values, all of which must be of the specified type.

The type is stored in ElementTy.

Definition at line 189 of file Record.h.

Member Function Documentation

◆ classof()

bool llvm::ListRecTy::classof ( const RecTy * RT)
inlinestatic

◆ get()

const ListRecTy * llvm::ListRecTy::get ( const RecTy * T)
inlinestatic

Definition at line 202 of file Record.h.

References llvm::RecTy::RecTy(), and T.

◆ getAsString()

std::string ListRecTy::getAsString ( ) const
overridevirtual

Implements llvm::RecTy.

Definition at line 210 of file Record.cpp.

◆ getElementType()

const RecTy * llvm::ListRecTy::getElementType ( ) const
inline

Definition at line 203 of file Record.h.

References llvm::RecTy::RecTy().

Referenced by typeIsA().

◆ typeIsA()

bool ListRecTy::typeIsA ( const RecTy * RHS) const
overridevirtual

Return true if 'this' type is equal to or a subtype of RHS.

For example, a bit set is not an int, but they are convertible.

Reimplemented from llvm::RecTy.

Definition at line 220 of file Record.cpp.

References llvm::dyn_cast(), getElementType(), llvm::RecTy::RecTy(), and llvm::RecTy::typeIsA().

◆ typeIsConvertibleTo()

bool ListRecTy::typeIsConvertibleTo ( const RecTy * RHS) const
overridevirtual

Return true if all values of 'this' type can be converted to the specified type.

Reimplemented from llvm::RecTy.

Definition at line 214 of file Record.cpp.

References llvm::dyn_cast(), and llvm::RecTy::RecTy().

◆ RecTy::getListTy


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