LLVM  3.7.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::BitsRecTy Class Reference

BitsRecTy - 'bits<n>' - Represent a fixed number of bits. More...

#include <Record.h>

Inheritance diagram for llvm::BitsRecTy:
[legend]
Collaboration diagram for llvm::BitsRecTy:
[legend]

Public Member Functions

unsigned getNumBits () const
 
std::string getAsString () const override
 
bool typeIsConvertibleTo (const RecTy *RHS) const override
 typeIsConvertibleTo - Return true if all values of 'this' type can be converted to the specified type. More...
 
- Public Member Functions inherited from llvm::RecTy
RecTyKind getRecTyKind () const
 
 RecTy (RecTyKind K)
 
virtual ~RecTy ()
 
void print (raw_ostream &OS) const
 
void dump () const
 
ListRecTygetListTy ()
 getListTy - Returns the type representing list<this>. More...
 

Static Public Member Functions

static bool classof (const RecTy *RT)
 
static BitsRecTyget (unsigned Sz)
 

Additional Inherited Members

- Public Types inherited from llvm::RecTy
enum  RecTyKind {
  BitRecTyKind, BitsRecTyKind, IntRecTyKind, StringRecTyKind,
  ListRecTyKind, DagRecTyKind, RecordRecTyKind
}
 Subclass discriminator (for dyn_cast<> et al.) More...
 

Detailed Description

BitsRecTy - 'bits<n>' - Represent a fixed number of bits.

Definition at line 100 of file Record.h.

Member Function Documentation

static bool llvm::BitsRecTy::classof ( const RecTy RT)
inlinestatic

Definition at line 105 of file Record.h.

References llvm::RecTy::BitsRecTyKind, and llvm::RecTy::getRecTyKind().

BitsRecTy * BitsRecTy::get ( unsigned  Sz)
static

Definition at line 110 of file Record.cpp.

References get().

Referenced by get().

std::string BitsRecTy::getAsString ( ) const
overridevirtual

Implements llvm::RecTy.

Definition at line 120 of file Record.cpp.

References llvm::utostr().

unsigned llvm::BitsRecTy::getNumBits ( ) const
inline

Definition at line 111 of file Record.h.

Referenced by llvm::TypedInit::convertInitializerBitRange().

bool BitsRecTy::typeIsConvertibleTo ( const RecTy RHS) const
overridevirtual

typeIsConvertibleTo - Return true if all values of 'this' type can be converted to the specified type.

Reimplemented from llvm::RecTy.

Definition at line 124 of file Record.cpp.

References llvm::RecTy::BitRecTyKind, llvm::RecTy::getRecTyKind(), llvm::RecTy::IntRecTyKind, and llvm::RecTy::typeIsConvertibleTo().


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