|
LLVM 24.0.0git
|
#include "llvm/TableGen/Record.h"
Public Member Functions | |
| RecordKeeper () | |
| ~RecordKeeper () | |
| detail::RecordKeeperImpl & | getImpl () |
| Return the internal implementation of the RecordKeeper. | |
| StringRef | getInputFilename () const |
| Get the main TableGen input file's name. | |
| ArrayRef< const Record * > | getClasses () const |
| Get all classes, sorted by name. | |
| ArrayRef< const Record * > | getDefs () const |
| Get all records (defs), sorted by name. | |
| 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 3144 of file Record.cpp.
|
default |
|
inline |
|
inline |
Definition at line 2120 of file Record.h.
References assert(), and llvm::make_first_range().
| LLVM_DUMP_METHOD void RecordKeeper::dump | ( | ) | const |
Definition at line 3151 of file Record.cpp.
References llvm::errs(), and LLVM_DUMP_METHOD.
| void RecordKeeper::dumpAllocationStats | ( | raw_ostream & | OS | ) | const |
Definition at line 3284 of file Record.cpp.
| 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 3244 of file Record.cpp.
References llvm::all_of(), assert(), C(), llvm::drop_begin(), getClass(), llvm::PrintFatalError(), llvm::ArrayRef< T >::size(), llvm::sort(), and llvm::unique().
Get all the concrete records that inherit from the one specified class.
The class must be defined.
Definition at line 3172 of file Record.cpp.
References llvm::ArrayRef(), getAllDerivedDefinitions(), and llvm::StringRef::str().
Referenced by getAllDerivedDefinitions(), and getAllDerivedDefinitionsIfDefined().
| 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 3278 of file Record.cpp.
References getAllDerivedDefinitions(), and getClass().
Referenced by llvm::InstancesOpInit::Fold().
Get the class with the specified name.
Definition at line 2091 of file Record.h.
Referenced by getAllDerivedDefinitions(), and getAllDerivedDefinitionsIfDefined().
Get all classes, sorted by name.
Definition at line 3198 of file Record.cpp.
References getSortedRecords().
Referenced by llvm::operator<<().
Get the concrete record with the specified name.
Definition at line 2097 of file Record.h.
Referenced by addExtraGlobal(), llvm::UnOpInit::Fold(), and getGlobal().
Get all records (defs), sorted by name.
Definition at line 3202 of file Record.cpp.
References getSortedRecords().
Referenced by llvm::operator<<().
|
inline |
|
inline |
Return the internal implementation of the RecordKeeper.
Definition at line 2076 of file Record.h.
Referenced by llvm::AnonymousNameInit::get(), llvm::ArgumentInit::get(), llvm::BinOpInit::get(), llvm::BitInit::get(), llvm::BitsInit::get(), llvm::CondOpInit::get(), llvm::DagInit::get(), llvm::ExistsOpInit::get(), llvm::FoldOpInit::get(), llvm::InstancesOpInit::get(), llvm::IntInit::get(), llvm::IsAOpInit::get(), llvm::ListInit::get(), llvm::StringInit::get(), llvm::TernOpInit::get(), llvm::VarDefInit::get(), getNewAnonymousName(), and llvm::Record::getNewUID().
|
inline |
GetNewAnonymousName - Generate a unique anonymous name that can be used as an identifier.
Definition at line 3167 of file Record.cpp.
References llvm::AnonymousNameInit::get(), and getImpl().
|
inline |