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

Resolve all variables from a record except for unset variables.

Definition at line 2257 of file Record.h.

Constructor & Destructor Documentation

◆ RecordResolver()

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

Definition at line 2263 of file Record.h.

Member Function Documentation

◆ keepUnsetBits()

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

Reimplemented from llvm::Resolver.

Definition at line 2269 of file Record.h.

◆ resolve()

const Init * RecordResolver::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 3353 of file Record.cpp.

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

◆ setName()

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

Definition at line 2265 of file Record.h.


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