LLVM 24.0.0git
llvm::ShadowResolver Class Referencefinal

Delegate resolving to a sub-resolver, but shadow some variable names. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::ShadowResolver:
[legend]

Public Member Functions

 ShadowResolver (Resolver &R)
void addShadow (const Init *Key)
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.
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 const Init * getCachedResult (const Init *I, bool &FoundUnresolved) const
 Return the cached result of resolving I, or nullptr.
virtual void cacheResult (const Init *I, const Init *Result, bool FoundUnresolved)
 Cache the result of resolving I.
virtual void noteUnresolved ()
 Called when a cached result has unresolved references.

Additional Inherited Members

Protected Member Functions inherited from llvm::Resolver
virtual void clearCachedResults ()

Detailed Description

Delegate resolving to a sub-resolver, but shadow some variable names.

Definition at line 2409 of file Record.h.

Constructor & Destructor Documentation

◆ ShadowResolver()

llvm::ShadowResolver::ShadowResolver ( Resolver & R)
inlineexplicit

Member Function Documentation

◆ addShadow()

void llvm::ShadowResolver::addShadow ( const Init * Key)
inline

◆ resolve()

const Init * llvm::ShadowResolver::resolve ( const Init * VarName)
inlineoverridevirtual

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 2421 of file Record.h.


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