LLVM 20.0.0git
|
#include "llvm/TableGen/Record.h"
Public Member Functions | |
RecordKeeper () | |
~RecordKeeper () | |
detail::RecordKeeperImpl & | getImpl () |
Return the internal implementation of the RecordKeeper. | |
const std::string | getInputFilename () const |
Get the main TableGen input file's name. | |
const RecordMap & | getClasses () const |
Get the map of classes. | |
const RecordMap & | getDefs () const |
Get the map of records (defs). | |
const GlobalMap & | getGlobals () const |
Get the map of global variables. | |
const Record * | getClass (StringRef Name) const |
Get the class with the specified name. | |
const Record * | getDef (StringRef Name) const |
Get the concrete record with the specified name. | |
const Init * | getGlobal (StringRef Name) const |
Get the Init value of the specified global variable. | |
void | saveInputFilename (std::string Filename) |
void | addClass (std::unique_ptr< Record > R) |
void | addDef (std::unique_ptr< Record > R) |
void | addExtraGlobal (StringRef Name, const Init *I) |
const Init * | getNewAnonymousName () |
GetNewAnonymousName - Generate a unique anonymous name that can be used as an identifier. | |
TGTimer & | getTimer () const |
ArrayRef< const Record * > | getAllDerivedDefinitions (StringRef ClassName) const |
Get all the concrete records that inherit from the one specified class. | |
std::vector< const Record * > | getAllDerivedDefinitions (ArrayRef< StringRef > ClassNames) const |
Get all the concrete records that inherit from all the specified classes. | |
ArrayRef< const Record * > | getAllDerivedDefinitionsIfDefined (StringRef ClassName) const |
Get all the concrete records that inherit from specified class, if the class is defined. | |
void | dump () const |
void | dumpAllocationStats (raw_ostream &OS) const |
RecordKeeper::RecordKeeper | ( | ) |
Definition at line 3264 of file Record.cpp.
|
default |
|
inline |
|
inline |
LLVM_DUMP_METHOD void RecordKeeper::dump | ( | ) | const |
Definition at line 3271 of file Record.cpp.
References llvm::errs().
void RecordKeeper::dumpAllocationStats | ( | raw_ostream & | OS | ) | const |
Definition at line 3331 of file Record.cpp.
References OS.
std::vector< const Record * > RecordKeeper::getAllDerivedDefinitions | ( | ArrayRef< StringRef > | ClassNames | ) | const |
Get all the concrete records that inherit from all the specified classes.
The classes must be defined.
Definition at line 3302 of file Record.cpp.
References llvm::all_of(), assert(), getClass(), getDefs(), llvm::PrintFatalError(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::ArrayRef< T >::size(), and llvm::sort().
Get all the concrete records that inherit from the one specified class.
The class must be defined.
Definition at line 3292 of file Record.cpp.
References getAllDerivedDefinitions(), and llvm::StringRef::str().
Referenced by getAllDerivedDefinitions(), getAllDerivedDefinitionsIfDefined(), llvm::DirectiveLanguage::getAssociations(), llvm::DirectiveLanguage::getCategories(), llvm::DirectiveLanguage::getClauses(), and llvm::DirectiveLanguage::getDirectives().
ArrayRef< const Record * > RecordKeeper::getAllDerivedDefinitionsIfDefined | ( | StringRef | ClassName | ) | const |
Get all the concrete records that inherit from specified class, if the class is defined.
Returns an empty vector if the class is not defined.
Definition at line 3325 of file Record.cpp.
References getAllDerivedDefinitions(), and getClass().
Get the class with the specified name.
Definition at line 2004 of file Record.h.
Referenced by getAllDerivedDefinitions(), and getAllDerivedDefinitionsIfDefined().
|
inline |
Get the concrete record with the specified name.
Definition at line 2010 of file Record.h.
Referenced by addExtraGlobal(), llvm::UnOpInit::Fold(), llvm::ExistsOpInit::Fold(), and getGlobal().
|
inline |
Get the map of records (defs).
Definition at line 1998 of file Record.h.
Referenced by getAllDerivedDefinitions(), and llvm::operator<<().
|
inline |
|
inline |
Return the internal implementation of the RecordKeeper.
Definition at line 1989 of file Record.h.
Referenced by llvm::CondOpInit::get(), llvm::ListInit::get(), llvm::ArgumentInit::get(), llvm::IsAOpInit::get(), llvm::ExistsOpInit::get(), llvm::BitRecTy::get(), llvm::IntRecTy::get(), llvm::StringRecTy::get(), llvm::DagRecTy::get(), llvm::UnsetInit::get(), llvm::BitsInit::get(), llvm::RecordRecTy::get(), llvm::BitInit::get(), llvm::IntInit::get(), llvm::StringInit::get(), llvm::BitsRecTy::get(), llvm::AnonymousNameInit::get(), llvm::Record::getDefInit(), llvm::RecTy::getListTy(), getNewAnonymousName(), and llvm::Record::getNewUID().
|
inline |
GetNewAnonymousName - Generate a unique anonymous name that can be used as an identifier.
Definition at line 3287 of file Record.cpp.
References llvm::AnonymousNameInit::get(), and getImpl().
|
inline |