LLVM 22.0.0git
llvm::Resolver Class Referenceabstract

Interface for looking up the initializer for a variable name, used by Init::resolveReferences. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::Resolver:
[legend]

Public Member Functions

 Resolver (const Record *CurRec)
virtual ~Resolver ()=default
const RecordgetCurrentRecord () const
virtual const Initresolve (const Init *VarName)=0
 Return the initializer for the given variable name (should normally be a StringInit), or nullptr if the name could not be resolved.
virtual bool keepUnsetBits () const
bool isFinal () const
void setFinal (bool Final)

Detailed Description

Interface for looking up the initializer for a variable name, used by Init::resolveReferences.

Definition at line 2199 of file Record.h.

Constructor & Destructor Documentation

◆ Resolver()

◆ ~Resolver()

virtual llvm::Resolver::~Resolver ( )
virtualdefault

Member Function Documentation

◆ getCurrentRecord()

const Record * llvm::Resolver::getCurrentRecord ( ) const
inline

◆ isFinal()

bool llvm::Resolver::isFinal ( ) const
inline

Definition at line 2221 of file Record.h.

◆ keepUnsetBits()

virtual bool llvm::Resolver::keepUnsetBits ( ) const
inlinevirtual

Reimplemented in llvm::RecordResolver.

Definition at line 2216 of file Record.h.

◆ resolve()

virtual const Init * llvm::Resolver::resolve ( const Init * VarName)
pure virtual

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

Implemented in llvm::HasReferenceResolver, llvm::MapResolver, llvm::RecordResolver, llvm::ShadowResolver, and llvm::TrackUnresolvedResolver.

◆ setFinal()

void llvm::Resolver::setFinal ( bool Final)
inline

Definition at line 2223 of file Record.h.

Referenced by llvm::ShadowResolver::ShadowResolver().


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