LLVM 22.0.0git
|
#include "llvm/TableGen/Record.h"
Public Types | |
enum | RecTyKind { BitRecTyKind , BitsRecTyKind , IntRecTyKind , StringRecTyKind , ListRecTyKind , DagRecTyKind , RecordRecTyKind } |
Subclass discriminator (for dyn_cast<> et al.) More... |
Public Member Functions | |
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>. |
|
inline |
Definition at line 83 of file Record.h.
Referenced by llvm::BitRecTy::classof(), llvm::BitsRecTy::classof(), llvm::DagRecTy::classof(), llvm::IntRecTy::classof(), llvm::ListRecTy::classof(), llvm::RecordRecTy::classof(), llvm::StringRecTy::classof(), llvm::ListRecTy::get(), llvm::ListRecTy::getElementType(), llvm::ListRecTy::RecTy::getListTy, llvm::ListRecTy::typeIsA(), llvm::RecordRecTy::typeIsA(), typeIsA(), llvm::BitRecTy::typeIsConvertibleTo(), llvm::BitsRecTy::typeIsConvertibleTo(), llvm::IntRecTy::typeIsConvertibleTo(), llvm::ListRecTy::typeIsConvertibleTo(), llvm::RecordRecTy::typeIsConvertibleTo(), typeIsConvertibleTo(), and llvm::StringRecTy::typeIsConvertibleTo().
|
virtualdefault |
LLVM_DUMP_METHOD void RecTy::dump | ( | ) | const |
Definition at line 139 of file Record.cpp.
References llvm::errs(), LLVM_DUMP_METHOD, and print().
|
pure virtual |
Implemented in llvm::BitRecTy, llvm::BitsRecTy, llvm::DagRecTy, llvm::IntRecTy, llvm::ListRecTy, llvm::RecordRecTy, and llvm::StringRecTy.
Referenced by llvm::UnOpInit::Fold(), llvm::BinOpInit::getAsString(), llvm::UnOpInit::getAsString(), and print().
Returns the type representing list<thistype>.
Definition at line 142 of file Record.cpp.
Referenced by llvm::resolveTypes().
|
inline |
Return the RecordKeeper that uniqued this Type.
Definition at line 89 of file Record.h.
Referenced by llvm::ListInit::get(), and llvm::ListRecTy::RecTy::getListTy.
|
inline |
Definition at line 86 of file Record.h.
Referenced by llvm::BitRecTy::classof(), llvm::BitsRecTy::classof(), llvm::DagRecTy::classof(), llvm::IntRecTy::classof(), llvm::ListRecTy::classof(), llvm::RecordRecTy::classof(), and llvm::StringRecTy::classof().
|
inline |
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 in llvm::ListRecTy, and llvm::RecordRecTy.
Definition at line 153 of file Record.cpp.
References RecTy().
Referenced by llvm::UnOpInit::Fold(), and llvm::ListRecTy::typeIsA().
Return true if all values of 'this' type can be converted to the specified type.
Reimplemented in llvm::BitRecTy, llvm::BitsRecTy, llvm::IntRecTy, llvm::ListRecTy, llvm::RecordRecTy, and llvm::StringRecTy.
Definition at line 148 of file Record.cpp.
References assert(), and RecTy().
Referenced by llvm::BitRecTy::typeIsConvertibleTo(), and llvm::BitsRecTy::typeIsConvertibleTo().