|
LLVM 24.0.0git
|
(Optionally) delegate resolving to a sub-resolver, and keep track whether there were unresolved references. More...
#include "llvm/TableGen/Record.h"
Public Member Functions | |
| TrackUnresolvedResolver (Resolver *R=nullptr) | |
| bool | foundUnresolved () 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 &Unresolved) const override |
Return the cached result of resolving I, or nullptr. | |
| void | cacheResult (const Init *I, const Init *Result, bool Unresolved) override |
Cache the result of resolving I. | |
| void | noteUnresolved () override |
| Called when a cached result has unresolved references. | |
| 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) |
Additional Inherited Members | |
| Protected Member Functions inherited from llvm::Resolver | |
| virtual void | clearCachedResults () |
(Optionally) delegate resolving to a sub-resolver, and keep track whether there were unresolved references.
|
inlineexplicit |
Definition at line 2435 of file Record.h.
References llvm::Resolver::getCurrentRecord(), and llvm::Resolver::Resolver().
Referenced by resolve().
|
inlineoverridevirtual |
Cache the result of resolving I.
Reimplemented from llvm::Resolver.
Definition at line 2447 of file Record.h.
References I.
|
inline |
Definition at line 2438 of file Record.h.
Referenced by llvm::VarDefInit::resolveReferences().
|
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 2443 of file Record.h.
References I.
|
inlineoverridevirtual |
Called when a cached result has unresolved references.
Reimplemented from llvm::Resolver.
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 3298 of file Record.cpp.
References I, llvm::Sub, and TrackUnresolvedResolver().