LLVM  8.0.1
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 1599 of file Record.h.

Member Function Documentation

◆ addClass()

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

Definition at line 1628 of file Record.h.

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

◆ addDef()

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

Definition at line 1635 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 1642 of file Record.h.

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

◆ dump()

LLVM_DUMP_METHOD void RecordKeeper::dump ( ) const

Definition at line 2135 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 2156 of file Record.cpp.

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

◆ getClass()

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

Definition at line 1611 of file Record.h.

References I.

◆ getClasses()

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

Definition at line 1608 of file Record.h.

Referenced by llvm::operator<<().

◆ getDef()

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

Definition at line 1616 of file Record.h.

References I.

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

◆ getDefs()

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

Definition at line 1609 of file Record.h.

Referenced by llvm::operator<<().

◆ getGlobal()

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

Definition at line 1621 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 2151 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 1600 of file Record.h.


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