LLVM  16.0.0git
Classes | Public Member Functions | List of all members
llvm::MapResolver Class Referencefinal

Resolve arbitrary mappings. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::MapResolver:
Inheritance graph
[legend]
Collaboration diagram for llvm::MapResolver:
Collaboration graph
[legend]

Public Member Functions

 MapResolver (Record *CurRec=nullptr)
 
void set (Init *Key, Init *Value)
 
bool isComplete (Init *VarName) const
 
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. More...
 
- Public Member Functions inherited from llvm::Resolver
 Resolver (Record *CurRec)
 
virtual ~Resolver ()=default
 
RecordgetCurrentRecord () const
 
virtual bool keepUnsetBits () const
 
bool isFinal () const
 
void setFinal (bool Final)
 

Detailed Description

Resolve arbitrary mappings.

Definition at line 2123 of file Record.h.

Constructor & Destructor Documentation

◆ MapResolver()

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

Definition at line 2135 of file Record.h.

Member Function Documentation

◆ isComplete()

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

Definition at line 2139 of file Record.h.

References assert(), and llvm::tgtok::VarName.

◆ resolve()

Init * MapResolver::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 2914 of file Record.cpp.

References I, and llvm::tgtok::VarName.

◆ set()

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

Definition at line 2137 of file Record.h.


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