LLVM 20.0.0git
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]

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.
 
- Public Member Functions inherited from llvm::RecTy
 RecTy (RecTyKind K, RecordKeeper &RK)
 
virtual ~RecTy ()=default
 
RecTyKind getRecTyKind () const
 
RecordKeepergetRecordKeeper () const
 Return the RecordKeeper that uniqued this Type.
 
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.
 
virtual bool typeIsA (const RecTy *RHS) const
 Return true if 'this' type is equal to or a subtype of RHS.
 
const ListRecTygetListTy () const
 Returns the type representing list<thistype>.
 

Static Public Member Functions

static bool classof (const RecTy *RT)
 
static const BitsRecTyget (RecordKeeper &RK, 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

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

Definition at line 130 of file Record.h.

Member Function Documentation

◆ classof()

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

Definition at line 137 of file Record.h.

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

◆ get()

const BitsRecTy * BitsRecTy::get ( RecordKeeper RK,
unsigned  Sz 
)
static

◆ getAsString()

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

Implements llvm::RecTy.

Definition at line 174 of file Record.cpp.

◆ getNumBits()

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

Definition at line 143 of file Record.h.

◆ 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 178 of file Record.cpp.

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


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