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

Methods

RecordKeeper(const llvm::RecordKeeper&)

Declared at: llvm/include/llvm/TableGen/Record.h:1965

Parameters

const llvm::RecordKeeper&

RecordKeeper(llvm::RecordKeeper&&)

Declared at: llvm/include/llvm/TableGen/Record.h:1964

Parameters

llvm::RecordKeeper&&

RecordKeeper()

Declared at: llvm/include/llvm/TableGen/Record.h:1855

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)

Declared at: llvm/include/llvm/TableGen/Record.h:1904

Parameters

std::unique_ptr<Record> R

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

Declared at: llvm/include/llvm/TableGen/Record.h:1961

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

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

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

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

Description

Get the map of classes.

Declared at: llvm/include/llvm/TableGen/Record.h:1865

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

Description

Get the map of records (defs).

Declared at: llvm/include/llvm/TableGen/Record.h:1868

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

Description

Get the map of global variables.

Declared at: llvm/include/llvm/TableGen/Record.h:1871

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

Description

Get the main TableGen input file's name.

Declared at: llvm/include/llvm/TableGen/Record.h:1862

llvm::Init* getNewAnonymousName()

Declared at: llvm/include/llvm/TableGen/Record.h:1918

void saveInputFilename(std::string Filename)

Declared at: llvm/include/llvm/TableGen/Record.h:1893

Parameters

std::string Filename

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()

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)

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()

Description

Stop timing the overall backend.

Declared at: llvm/include/llvm/TableGen/Record.h:1936

void stopPhaseTiming()

Description

Stop phase timing and print the report.

Declared at: llvm/include/llvm/TableGen/Record.h:1939

void stopTimer()

Description

Stop timing a phase.

Declared at: llvm/include/llvm/TableGen/Record.h:1929

~RecordKeeper()

Declared at: llvm/include/llvm/TableGen/Record.h:1856