LLVM  14.0.0git
Public Member Functions | List of all members
llvm::HasReferenceResolver Class Referencefinal

Do not resolve anything, but keep track of whether a given variable was referenced. More...

#include "llvm/TableGen/Record.h"

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

Public Member Functions

 HasReferenceResolver (Init *VarNameToTrack)
 
bool found () 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 ()
 
RecordgetCurrentRecord () const
 
virtual bool keepUnsetBits () const
 
bool isFinal () const
 
void setFinal (bool Final)
 

Detailed Description

Do not resolve anything, but keep track of whether a given variable was referenced.

Definition at line 2119 of file Record.h.

Constructor & Destructor Documentation

◆ HasReferenceResolver()

llvm::HasReferenceResolver::HasReferenceResolver ( Init VarNameToTrack)
inlineexplicit

Definition at line 2124 of file Record.h.

Member Function Documentation

◆ found()

bool llvm::HasReferenceResolver::found ( ) const
inline

Definition at line 2127 of file Record.h.

◆ resolve()

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

References llvm::tgtok::VarName.


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