|
LLVM
3.7.0
|
#include <Record.h>
Public Types | |
| enum | RecTyKind { BitRecTyKind, BitsRecTyKind, IntRecTyKind, StringRecTyKind, ListRecTyKind, DagRecTyKind, RecordRecTyKind } |
| Subclass discriminator (for dyn_cast<> et al.) More... | |
Public Member Functions | |
| RecTyKind | getRecTyKind () const |
| RecTy (RecTyKind K) | |
| virtual | ~RecTy () |
| virtual std::string | getAsString () const =0 |
| void | print (raw_ostream &OS) const |
| void | dump () const |
| virtual bool | typeIsConvertibleTo (const RecTy *RHS) const |
| typeIsConvertibleTo - Return true if all values of 'this' type can be converted to the specified type. More... | |
| ListRecTy * | getListTy () |
| getListTy - Returns the type representing list<this>. More... | |
| void RecTy::dump | ( | ) | const |
Definition at line 89 of file Record.cpp.
References llvm::errs(), and print().
|
pure virtual |
Implemented in llvm::RecordRecTy, llvm::DagRecTy, llvm::ListRecTy, llvm::StringRecTy, llvm::IntRecTy, llvm::BitsRecTy, and llvm::BitRecTy.
Referenced by llvm::ListRecTy::getAsString(), llvm::UnOpInit::getAsString(), and print().
| ListRecTy * RecTy::getListTy | ( | ) |
getListTy - Returns the type representing list<this>.
Definition at line 91 of file Record.cpp.
Referenced by llvm::ListRecTy::get().
|
inline |
Definition at line 58 of file Record.h.
Referenced by llvm::BitRecTy::classof(), llvm::BitsRecTy::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 64 of file Record.h.
References getAsString().
Referenced by dump(), and llvm::operator<<().
typeIsConvertibleTo - 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 97 of file Record.cpp.
References getRecTyKind().
Referenced by llvm::TypedInit::convertInitializerTo(), llvm::resolveTypes(), llvm::BitRecTy::typeIsConvertibleTo(), llvm::BitsRecTy::typeIsConvertibleTo(), and llvm::ListRecTy::typeIsConvertibleTo().
1.8.6