LLVM 20.0.0git
Public Member Functions | List of all members
llvm::RecordResolver Class Referencefinal

Resolve all variables from a record except for unset variables. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::RecordResolver:
Inheritance graph
[legend]

Public Member Functions

 RecordResolver (Record &R)
 
void setName (Init *NewName)
 
Initresolve (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.
 
bool keepUnsetBits () const override
 
- Public Member Functions inherited from llvm::Resolver
 Resolver (Record *CurRec)
 
virtual ~Resolver ()=default
 
RecordgetCurrentRecord () const
 
virtual Initresolve (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

Resolve all variables from a record except for unset variables.

Definition at line 2266 of file Record.h.

Constructor & Destructor Documentation

◆ RecordResolver()

llvm::RecordResolver::RecordResolver ( Record R)
inlineexplicit

Definition at line 2272 of file Record.h.

Member Function Documentation

◆ keepUnsetBits()

bool llvm::RecordResolver::keepUnsetBits ( ) const
inlineoverridevirtual

Reimplemented from llvm::Resolver.

Definition at line 2278 of file Record.h.

◆ resolve()

Init * RecordResolver::resolve ( 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 3282 of file Record.cpp.

References llvm::Resolver::getCurrentRecord(), llvm::is_contained(), and llvm::Init::resolveReferences().

◆ setName()

void llvm::RecordResolver::setName ( Init NewName)
inline

Definition at line 2274 of file Record.h.


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