class RecordKeeper
Declaration
class RecordKeeper { /* full declaration omitted */ };
Declared at: llvm/include/llvm/TableGen/Record.h:1850
Member Variables
- private std::string InputFilename
- private llvm::RecordKeeper::RecordMap Classes
- private llvm::RecordKeeper::RecordMap Defs
- private StringMap<std::vector<Record*>> ClassRecordsMap
- private llvm::RecordKeeper::GlobalMap ExtraGlobals
- private llvm::TimerGroup* TimingGroup = nullptr
- private llvm::Timer* LastTimer = nullptr
- private bool BackendTimer = false
- private std::unique_ptr<detail::RecordKeeperImpl> Impl
- The internal uniquer implementation of the RecordKeeper.
Method Overview
- private RecordKeeper(const llvm::RecordKeeper &)
- private RecordKeeper(llvm::RecordKeeper &&)
- public RecordKeeper()
- public void addClass(std::unique_ptr<Record> R)
- public void addDef(std::unique_ptr<Record> R)
- public void addExtraGlobal(llvm::StringRef Name, llvm::Init * I)
- public void dump() const
- public std::vector<Record *> getAllDerivedDefinitions(ArrayRef<llvm::StringRef> ClassNames) const
- public std::vector<Record *> getAllDerivedDefinitions(llvm::StringRef ClassName) const
- public std::vector<Record *> getAllDerivedDefinitionsIfDefined(llvm::StringRef ClassName) const
- public llvm::Record * getClass(llvm::StringRef Name) const
- public const llvm::RecordKeeper::RecordMap & getClasses() const
- public llvm::Record * getDef(llvm::StringRef Name) const
- public const llvm::RecordKeeper::RecordMap & getDefs() const
- public llvm::Init * getGlobal(llvm::StringRef Name) const
- public const llvm::RecordKeeper::GlobalMap & getGlobals() const
- public detail::RecordKeeperImpl & getImpl()
- public const std::string getInputFilename() const
- public llvm::Init * getNewAnonymousName()
- public void saveInputFilename(std::string Filename)
- public void startBackendTimer(llvm::StringRef Name)
- public void startPhaseTiming()
- public void startTimer(llvm::StringRef Name)
- public void stopBackendTimer()
- public void stopPhaseTiming()
- public void stopTimer()
- public ~RecordKeeper()
Methods
¶RecordKeeper(const llvm::RecordKeeper&)
RecordKeeper(const llvm::RecordKeeper&)
Declared at: llvm/include/llvm/TableGen/Record.h:1965
Parameters
- const llvm::RecordKeeper&
¶RecordKeeper(llvm::RecordKeeper&&)
RecordKeeper(llvm::RecordKeeper&&)
Declared at: llvm/include/llvm/TableGen/Record.h:1964
Parameters
¶RecordKeeper()
RecordKeeper()
Declared at: llvm/include/llvm/TableGen/Record.h:1855
¶void addClass(std::unique_ptr<Record> R)
void addClass(std::unique_ptr<Record> R)
Declared at: llvm/include/llvm/TableGen/Record.h:1897
Parameters
- std::unique_ptr<Record> R
¶void addDef(std::unique_ptr<Record> R)
void addDef(std::unique_ptr<Record> R)
Declared at: llvm/include/llvm/TableGen/Record.h:1904
Parameters
- std::unique_ptr<Record> R
¶void addExtraGlobal(llvm::StringRef Name,
llvm::Init* I)
void addExtraGlobal(llvm::StringRef Name,
llvm::Init* I)
Declared at: llvm/include/llvm/TableGen/Record.h:1911
Parameters
- llvm::StringRef Name
- llvm::Init* I
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/TableGen/Record.h:1961
¶std::vector<Record*> getAllDerivedDefinitions(
ArrayRef<llvm::StringRef> ClassNames) const
std::vector<Record*> getAllDerivedDefinitions(
ArrayRef<llvm::StringRef> ClassNames) const
Description
Get all the concrete records that inherit from all the specified classes. The classes must be defined.
Declared at: llvm/include/llvm/TableGen/Record.h:1953
Parameters
- ArrayRef<llvm::StringRef> ClassNames
¶std::vector<Record*> getAllDerivedDefinitions(
llvm::StringRef ClassName) const
std::vector<Record*> getAllDerivedDefinitions(
llvm::StringRef ClassName) const
Description
Get all the concrete records that inherit from the one specified class. The class must be defined.
Declared at: llvm/include/llvm/TableGen/Record.h:1949
Parameters
- llvm::StringRef ClassName
¶std::vector<Record*>
getAllDerivedDefinitionsIfDefined(
llvm::StringRef ClassName) const
std::vector<Record*>
getAllDerivedDefinitionsIfDefined(
llvm::StringRef ClassName) const
Description
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.
Declared at: llvm/include/llvm/TableGen/Record.h:1959
Parameters
- llvm::StringRef ClassName
¶llvm::Record* getClass(llvm::StringRef Name) const
llvm::Record* getClass(llvm::StringRef Name) const
Description
Get the class with the specified name.
Declared at: llvm/include/llvm/TableGen/Record.h:1874
Parameters
- llvm::StringRef Name
¶const llvm::RecordKeeper::RecordMap& getClasses()
const
const llvm::RecordKeeper::RecordMap& getClasses()
const
Description
Get the map of classes.
Declared at: llvm/include/llvm/TableGen/Record.h:1865
¶llvm::Record* getDef(llvm::StringRef Name) const
llvm::Record* getDef(llvm::StringRef Name) const
Description
Get the concrete record with the specified name.
Declared at: llvm/include/llvm/TableGen/Record.h:1880
Parameters
- llvm::StringRef Name
¶const llvm::RecordKeeper::RecordMap& getDefs()
const
const llvm::RecordKeeper::RecordMap& getDefs()
const
Description
Get the map of records (defs).
Declared at: llvm/include/llvm/TableGen/Record.h:1868
¶llvm::Init* getGlobal(llvm::StringRef Name) const
llvm::Init* getGlobal(llvm::StringRef Name) const
Description
Get the \p Init value of the specified global variable.
Declared at: llvm/include/llvm/TableGen/Record.h:1886
Parameters
- llvm::StringRef Name
¶const llvm::RecordKeeper::GlobalMap& getGlobals()
const
const llvm::RecordKeeper::GlobalMap& getGlobals()
const
Description
Get the map of global variables.
Declared at: llvm/include/llvm/TableGen/Record.h:1871
¶detail::RecordKeeperImpl& getImpl()
detail::RecordKeeperImpl& getImpl()
Description
Return the internal implementation of the RecordKeeper.
Declared at: llvm/include/llvm/TableGen/Record.h:1859
¶const std::string getInputFilename() const
const std::string getInputFilename() const
Description
Get the main TableGen input file's name.
Declared at: llvm/include/llvm/TableGen/Record.h:1862
¶llvm::Init* getNewAnonymousName()
llvm::Init* getNewAnonymousName()
Declared at: llvm/include/llvm/TableGen/Record.h:1918
¶void saveInputFilename(std::string Filename)
void saveInputFilename(std::string Filename)
Declared at: llvm/include/llvm/TableGen/Record.h:1893
Parameters
- std::string Filename
¶void startBackendTimer(llvm::StringRef Name)
void startBackendTimer(llvm::StringRef Name)
Description
Start timing the overall backend. If the backend itself starts a timer, then this timer is cleared.
Declared at: llvm/include/llvm/TableGen/Record.h:1933
Parameters
- llvm::StringRef Name
¶void startPhaseTiming()
void startPhaseTiming()
Description
Start phase timing; called if the --time-phases option is specified.
Declared at: llvm/include/llvm/TableGen/Record.h:1921
¶void startTimer(llvm::StringRef Name)
void startTimer(llvm::StringRef Name)
Description
Start timing a phase. Automatically stops any previous phase timer.
Declared at: llvm/include/llvm/TableGen/Record.h:1926
Parameters
- llvm::StringRef Name
¶void stopBackendTimer()
void stopBackendTimer()
Description
Stop timing the overall backend.
Declared at: llvm/include/llvm/TableGen/Record.h:1936
¶void stopPhaseTiming()
void stopPhaseTiming()
Description
Stop phase timing and print the report.
Declared at: llvm/include/llvm/TableGen/Record.h:1939
¶void stopTimer()
void stopTimer()
Description
Stop timing a phase.
Declared at: llvm/include/llvm/TableGen/Record.h:1929
¶~RecordKeeper()
~RecordKeeper()
Declared at: llvm/include/llvm/TableGen/Record.h:1856