LLVM  9.0.0svn
Public Member Functions | Friends | List of all members
llvm::RecordKeeper Class Reference

#include "llvm/TableGen/Record.h"

Public Member Functions

const RecordMap & getClasses () const
 
const RecordMap & getDefs () const
 
RecordgetClass (StringRef Name) const
 
RecordgetDef (StringRef Name) const
 
InitgetGlobal (StringRef Name) const
 
void addClass (std::unique_ptr< Record > R)
 
void addDef (std::unique_ptr< Record > R)
 
void addExtraGlobal (StringRef Name, Init *I)
 
InitgetNewAnonymousName ()
 GetNewAnonymousName - Generate a unique anonymous name that can be used as an identifier. More...
 
std::vector< Record * > getAllDerivedDefinitions (StringRef ClassName) const
 This method returns all concrete definitions that derive from the specified class name. More...
 
void dump () const
 

Friends

class RecordRecTy
 

Detailed Description

Definition at line 1681 of file Record.h.

Member Function Documentation

◆ addClass()

void llvm::RecordKeeper::addClass ( std::unique_ptr< Record R)
inline

Definition at line 1710 of file Record.h.

References assert(), and llvm::MipsISD::Ins.

◆ addDef()

void llvm::RecordKeeper::addDef ( std::unique_ptr< Record R)
inline

Definition at line 1717 of file Record.h.

References assert(), and llvm::MipsISD::Ins.

Referenced by llvm::VarDefInit::Profile().

◆ addExtraGlobal()

void llvm::RecordKeeper::addExtraGlobal ( StringRef  Name,
Init I 
)
inline

Definition at line 1724 of file Record.h.

References assert(), llvm::RecTy::dump(), and llvm::MipsISD::Ins.

◆ dump()

LLVM_DUMP_METHOD void RecordKeeper::dump ( ) const

Definition at line 2315 of file Record.cpp.

References llvm::errs().

◆ getAllDerivedDefinitions()

std::vector< Record * > RecordKeeper::getAllDerivedDefinitions ( StringRef  ClassName) const

This method returns all concrete definitions that derive from the specified class name.

A class with the specified name must exist.

Definition at line 2336 of file Record.cpp.

References llvm::Record::isSubClassOf(), and llvm::PrintFatalError().

◆ getClass()

Record* llvm::RecordKeeper::getClass ( StringRef  Name) const
inline

Definition at line 1693 of file Record.h.

References I.

◆ getClasses()

const RecordMap& llvm::RecordKeeper::getClasses ( ) const
inline

Definition at line 1690 of file Record.h.

Referenced by llvm::operator<<().

◆ getDef()

Record* llvm::RecordKeeper::getDef ( StringRef  Name) const
inline

Definition at line 1698 of file Record.h.

References I.

Referenced by llvm::UnOpInit::Fold().

◆ getDefs()

const RecordMap& llvm::RecordKeeper::getDefs ( ) const
inline

Definition at line 1691 of file Record.h.

Referenced by llvm::operator<<().

◆ getGlobal()

Init* llvm::RecordKeeper::getGlobal ( StringRef  Name) const
inline

Definition at line 1703 of file Record.h.

References llvm::Record::getDefInit().

◆ getNewAnonymousName()

Init * RecordKeeper::getNewAnonymousName ( )

GetNewAnonymousName - Generate a unique anonymous name that can be used as an identifier.

Definition at line 2331 of file Record.cpp.

References llvm::StringInit::get(), and llvm::utostr().

Referenced by llvm::VarDefInit::Profile().

Friends And Related Function Documentation

◆ RecordRecTy

friend class RecordRecTy
friend

Definition at line 1682 of file Record.h.


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