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

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::RecTy:
Inheritance graph
[legend]

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

Detailed Description

Definition at line 51 of file Record.h.

Member Enumeration Documentation

◆ RecTyKind

Subclass discriminator (for dyn_cast<> et al.)

Enumerator
BitRecTyKind 
BitsRecTyKind 
CodeRecTyKind 
IntRecTyKind 
StringRecTyKind 
ListRecTyKind 
DagRecTyKind 
RecordRecTyKind 

Definition at line 54 of file Record.h.

Constructor & Destructor Documentation

◆ RecTy()

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

Definition at line 70 of file Record.h.

References ~RecTy().

◆ ~RecTy()

virtual llvm::RecTy::~RecTy ( )
virtualdefault

Referenced by RecTy().

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void RecTy::dump ( ) const

◆ getAsString()

virtual std::string llvm::RecTy::getAsString ( ) const
pure virtual

◆ getListTy()

ListRecTy * RecTy::getListTy ( )

Returns the type representing list<this>.

Definition at line 55 of file Record.cpp.

References Allocator.

Referenced by llvm::ListRecTy::get(), and print().

◆ getRecTyKind()

RecTyKind llvm::RecTy::getRecTyKind ( ) const
inline

◆ print()

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

◆ typeIsConvertibleTo()

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

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