LLVM  3.7.0
Public Types | Public Member Functions | List of all members
llvm::RecTy Class Referenceabstract

#include <Record.h>

Inheritance diagram for llvm::RecTy:
[legend]

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...
 
ListRecTygetListTy ()
 getListTy - Returns the type representing list<this>. More...
 

Detailed Description

Definition at line 40 of file Record.h.

Member Enumeration Documentation

Subclass discriminator (for dyn_cast<> et al.)

Enumerator
BitRecTyKind 
BitsRecTyKind 
IntRecTyKind 
StringRecTyKind 
ListRecTyKind 
DagRecTyKind 
RecordRecTyKind 

Definition at line 43 of file Record.h.

Constructor & Destructor Documentation

llvm::RecTy::RecTy ( RecTyKind  K)
inline

Definition at line 60 of file Record.h.

virtual llvm::RecTy::~RecTy ( )
inlinevirtual

Definition at line 61 of file Record.h.

Member Function Documentation

void RecTy::dump ( ) const

Definition at line 89 of file Record.cpp.

References llvm::errs(), and print().

virtual std::string llvm::RecTy::getAsString ( ) const
pure virtual
ListRecTy * RecTy::getListTy ( )

getListTy - Returns the type representing list<this>.

Definition at line 91 of file Record.cpp.

Referenced by llvm::ListRecTy::get().

RecTyKind llvm::RecTy::getRecTyKind ( ) const
inline
void llvm::RecTy::print ( raw_ostream OS) const
inline

Definition at line 64 of file Record.h.

References getAsString().

Referenced by dump(), and llvm::operator<<().

bool RecTy::typeIsConvertibleTo ( const RecTy RHS) const
virtual

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().


The documentation for this class was generated from the following files: