|
LLVM 24.0.0git
|
Resolve arbitrary mappings. More...
#include "llvm/TableGen/Record.h"
Public Member Functions | |
| MapResolver (const Record *CurRec=nullptr) | |
| void | set (const Init *Key, const Init *Value) |
| bool | isComplete (Init *VarName) const |
| 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. | |
| const Init * | getCachedResult (const Init *I, bool &FoundUnresolved) const override |
Return the cached result of resolving I, or nullptr. | |
| void | cacheResult (const Init *I, const Init *Result, bool FoundUnresolved) override |
Cache the result of resolving I. | |
| 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 void | noteUnresolved () |
| Called when a cached result has unresolved references. | |
Protected Member Functions | |
| void | clearCachedResults () override |
Definition at line 2334 of file Record.h.
References llvm::Resolver::Resolver().
|
inlineoverridevirtual |
Cache the result of resolving I.
Reimplemented from llvm::Resolver.
Definition at line 2358 of file Record.h.
References I.
|
inlineoverrideprotectedvirtual |
|
inlineoverridevirtual |
Return the cached result of resolving I, or nullptr.
FoundUnresolved is set if the result has unresolved references.
Reimplemented from llvm::Resolver.
Definition at line 2349 of file Record.h.
References I.
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 3253 of file Record.cpp.
References I.
Definition at line 2336 of file Record.h.
References clearCachedResults(), and llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key.