|
LLVM
4.0.0
|
#include <Record.h>
Public Types | |
| enum | RecTyKind { BitRecTyKind, BitsRecTyKind, CodeRecTyKind, IntRecTyKind, StringRecTyKind, ListRecTyKind, DagRecTyKind, RecordRecTyKind } |
| Subclass discriminator (for dyn_cast<> et al.) More... | |
Public Member Functions | |
| RecTy (RecTyKind K) | |
| virtual | ~RecTy ()=default |
| RecTyKind | getRecTyKind () const |
| 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. More... | |
| ListRecTy * | getListTy () |
| Returns the type representing list<this>. More... | |
|
virtualdefault |
| LLVM_DUMP_METHOD void RecTy::dump | ( | void | ) | const |
Definition at line 43 of file Record.cpp.
References llvm::errs(), and print().
|
pure virtual |
Implemented in llvm::RecordRecTy, llvm::DagRecTy, llvm::ListRecTy, llvm::StringRecTy, llvm::IntRecTy, llvm::CodeRecTy, llvm::BitsRecTy, and llvm::BitRecTy.
Referenced by llvm::ListRecTy::getAsString(), llvm::UnOpInit::getAsString(), and print().
| ListRecTy * RecTy::getListTy | ( | ) |
Returns the type representing list<this>.
Definition at line 45 of file Record.cpp.
References Allocator.
Referenced by llvm::ListRecTy::get().
|
inline |
Definition at line 73 of file Record.h.
Referenced by llvm::BitRecTy::classof(), llvm::BitsRecTy::classof(), llvm::CodeRecTy::classof(), llvm::IntRecTy::classof(), llvm::StringRecTy::classof(), llvm::ListRecTy::classof(), llvm::DagRecTy::classof(), llvm::RecordRecTy::classof(), typeIsConvertibleTo(), llvm::BitRecTy::typeIsConvertibleTo(), llvm::BitsRecTy::typeIsConvertibleTo(), and llvm::IntRecTy::typeIsConvertibleTo().
|
inline |
Definition at line 76 of file Record.h.
References getAsString().
Referenced by dump(), and llvm::operator<<().
Return true if all values of 'this' type can be converted to the specified type.
Reimplemented in llvm::RecordRecTy, llvm::ListRecTy, llvm::IntRecTy, llvm::BitsRecTy, and llvm::BitRecTy.
Definition at line 51 of file Record.cpp.
References assert(), and getRecTyKind().
Referenced by llvm::TypedInit::convertInitializerTo(), llvm::resolveTypes(), llvm::BitRecTy::typeIsConvertibleTo(), llvm::BitsRecTy::typeIsConvertibleTo(), and llvm::ListRecTy::typeIsConvertibleTo().
1.8.6