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

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

#include "llvm/TableGen/Record.h"

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

Public Member Functions

unsigned getNumBits () const
 
std::string getAsString () const override
 
bool typeIsConvertibleTo (const RecTy *RHS) const override
 Return true if all values of 'this' type can be converted to the specified type. More...
 
bool typeIsA (const RecTy *RHS) const override
 Return true if 'this' type is equal to or a subtype of RHS. More...
 
- Public Member Functions inherited from llvm::RecTy
 RecTy (RecTyKind K)
 
virtual ~RecTy ()=default
 
RecTyKind getRecTyKind () const
 
void print (raw_ostream &OS) const
 
void dump () const
 
ListRecTygetListTy ()
 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, CodeRecTyKind, IntRecTyKind,
  StringRecTyKind, ListRecTyKind, DagRecTyKind, RecordRecTyKind
}
 Subclass discriminator (for dyn_cast<> et al.) More...
 

Detailed Description

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

Definition at line 119 of file Record.h.

Member Function Documentation

◆ classof()

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

Definition at line 125 of file Record.h.

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

◆ get()

BitsRecTy * BitsRecTy::get ( unsigned  Sz)
static

Definition at line 77 of file Record.cpp.

References Allocator.

Referenced by QualifiedNameOfImplicitName().

◆ getAsString()

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

Implements llvm::RecTy.

Definition at line 87 of file Record.cpp.

References Size, and llvm::utostr().

◆ getNumBits()

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

◆ typeIsA()

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

Return true if 'this' type is equal to or a subtype of RHS.

For example, a bit set is not an int, but they are convertible.

Reimplemented from llvm::RecTy.

Definition at line 98 of file Record.cpp.

References Size.

◆ typeIsConvertibleTo()

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

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

Reimplemented from llvm::RecTy.

Definition at line 91 of file Record.cpp.

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


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