LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for llvm::ListRecTy:
Collaboration graph
[legend]

Public Member Functions

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. More...
 
bool typeIsA (const RecTy *RHS) const override
 Return true if 'this' type is equal to or a subtype of RHS. More...
 
- Public Member Functions inherited from llvm::RecTy
 RecTy (RecTyKind K)
 
virtual ~RecTy ()=default
 
RecTyKind getRecTyKind () const
 
void print (raw_ostream &OS) const
 
void dump () const
 
ListRecTygetListTy ()
 Returns the type representing list<thistype>. More...
 

Static Public Member Functions

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

Friends

ListRecTyRecTy::getListTy ()
 

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 179 of file Record.h.

Member Function Documentation

◆ classof()

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

Definition at line 187 of file Record.h.

References llvm::RecTy::getRecTyKind(), and llvm::RecTy::ListRecTyKind.

◆ get()

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

Definition at line 191 of file Record.h.

References T.

◆ getAsString()

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

Implements llvm::RecTy.

Definition at line 121 of file Record.cpp.

References llvm::RecTy::getAsString().

◆ getElementType()

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

Definition at line 192 of file Record.h.

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 131 of file Record.cpp.

References getElementType(), 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 125 of file Record.cpp.

References llvm::RecTy::typeIsConvertibleTo().

Friends And Related Function Documentation

◆ RecTy::getListTy


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