LLVM 24.0.0git
llvm::MapResolver Class Referencefinal

Resolve arbitrary mappings. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::MapResolver:
[legend]

Public Member Functions

 MapResolver (const Record *CurRec=nullptr)
void set (const Init *Key, const Init *Value)
bool isComplete (Init *VarName) const
const Init * resolve (const Init *VarName) override
 Return the initializer for the given variable name (should normally be a StringInit), or nullptr if the name could not be resolved.
const Init * getCachedResult (const Init *I, bool &FoundUnresolved) const override
 Return the cached result of resolving I, or nullptr.
void cacheResult (const Init *I, const Init *Result, bool FoundUnresolved) override
 Cache the result of resolving I.
Public Member Functions inherited from llvm::Resolver
 Resolver (const Record *CurRec)
virtual ~Resolver ()=default
const Record * getCurrentRecord () const
virtual bool keepUnsetBits () const
bool isFinal () const
void setFinal (bool Final)
virtual void noteUnresolved ()
 Called when a cached result has unresolved references.

Protected Member Functions

void clearCachedResults () override

Detailed Description

Resolve arbitrary mappings.

Definition at line 2317 of file Record.h.

Constructor & Destructor Documentation

◆ MapResolver()

llvm::MapResolver::MapResolver ( const Record * CurRec = nullptr)
inlineexplicit

Definition at line 2334 of file Record.h.

References llvm::Resolver::Resolver().

Member Function Documentation

◆ cacheResult()

void llvm::MapResolver::cacheResult ( const Init * I,
const Init * Result,
bool FoundUnresolved )
inlineoverridevirtual

Cache the result of resolving I.

Reimplemented from llvm::Resolver.

Definition at line 2358 of file Record.h.

References I.

◆ clearCachedResults()

void llvm::MapResolver::clearCachedResults ( )
inlineoverrideprotectedvirtual

Reimplemented from llvm::Resolver.

Definition at line 2365 of file Record.h.

Referenced by set().

◆ getCachedResult()

const Init * llvm::MapResolver::getCachedResult ( const Init * I,
bool & FoundUnresolved ) const
inlineoverridevirtual

Return the cached result of resolving I, or nullptr.

FoundUnresolved is set if the result has unresolved references.

Reimplemented from llvm::Resolver.

Definition at line 2349 of file Record.h.

References I.

◆ isComplete()

bool llvm::MapResolver::isComplete ( Init * VarName) const
inline

Definition at line 2341 of file Record.h.

References assert().

◆ resolve()

const Init * MapResolver::resolve ( const Init * VarName)
overridevirtual

Return the initializer for the given variable name (should normally be a StringInit), or nullptr if the name could not be resolved.

Implements llvm::Resolver.

Definition at line 3253 of file Record.cpp.

References I.

◆ set()

void llvm::MapResolver::set ( const Init * Key,
const Init * Value )
inline

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