LLVM 20.0.0git
|
'list<Ty>' - Represent a list of element values, all of which must be of the specified type. More...
#include "llvm/TableGen/Record.h"
Public Member Functions | |
const RecTy * | getElementType () 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 |
RecordKeeper & | getRecordKeeper () const |
Return the RecordKeeper that uniqued this Type. | |
virtual std::string | getAsString () const =0 |
void | print (raw_ostream &OS) const |
void | dump () const |
virtual bool | typeIsConvertibleTo (const RecTy *RHS) const |
Return true if all values of 'this' type can be converted to the specified type. | |
virtual bool | typeIsA (const RecTy *RHS) const |
Return true if 'this' type is equal to or a subtype of RHS. | |
const ListRecTy * | getListTy () const |
Returns the type representing list<thistype>. | |
Static Public Member Functions | |
static bool | classof (const RecTy *RT) |
static const ListRecTy * | get (const RecTy *T) |
Friends | |
const ListRecTy * | RecTy::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... | |
'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 197 of file Record.h.
References llvm::RecTy::getRecTyKind(), and llvm::RecTy::ListRecTyKind.
|
overridevirtual |
Implements llvm::RecTy.
Definition at line 207 of file Record.cpp.
References llvm::RecTy::getAsString().
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 217 of file Record.cpp.
References getElementType(), RHS, and llvm::RecTy::typeIsA().
Return true if all values of 'this' type can be converted to the specified type.
Reimplemented from llvm::RecTy.
Definition at line 211 of file Record.cpp.
References RHS, and llvm::RecTy::typeIsConvertibleTo().
|
friend |