LLVM
8.0.1
|
'list<Ty>' - Represent a list of values, all of which must be of the specified type. More...
#include "llvm/TableGen/Record.h"
Public Member Functions | |
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. 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 |
ListRecTy * | getListTy () |
Returns the type representing list<this>. More... | |
Static Public Member Functions | |
static bool | classof (const RecTy *RT) |
static ListRecTy * | get (RecTy *T) |
Friends | |
ListRecTy * | RecTy::getListTy () |
Additional Inherited Members | |
Public Types inherited from llvm::RecTy | |
enum | RecTyKind { BitRecTyKind, BitsRecTyKind, CodeRecTyKind, IntRecTyKind, StringRecTyKind, ListRecTyKind, DagRecTyKind, RecordRecTyKind } |
Subclass discriminator (for dyn_cast<> et al.) More... | |
'list<Ty>' - Represent a list of values, all of which must be of the specified type.
Definition at line 204 of file Record.h.
References llvm::RecTy::getRecTyKind(), and llvm::RecTy::ListRecTyKind.
Definition at line 208 of file Record.h.
References llvm::RecTy::getListTy().
|
overridevirtual |
Implements llvm::RecTy.
Definition at line 123 of file Record.cpp.
|
inline |
Definition at line 209 of file Record.h.
References llvm::RecTy::getAsString(), llvm::RecTy::typeIsA(), and llvm::RecTy::typeIsConvertibleTo().
Referenced by llvm::TypedInit::convertInitListSlice(), and typeIsConvertibleTo().
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 133 of file Record.cpp.
Return true if all values of 'this' type can be converted to the specified type.
Reimplemented from llvm::RecTy.
Definition at line 127 of file Record.cpp.
References getElementType().
|
friend |