LLVM 20.0.0git
|
#include "TableGen/TGParser.h"
Public Types | |
enum | ScopeKind { SK_Local , SK_Record , SK_ForeachLoop , SK_MultiClass } |
Public Member Functions | |
TGVarScope (std::unique_ptr< TGVarScope > Parent) | |
TGVarScope (std::unique_ptr< TGVarScope > Parent, Record *Rec) | |
TGVarScope (std::unique_ptr< TGVarScope > Parent, ForeachLoop *Loop) | |
TGVarScope (std::unique_ptr< TGVarScope > Parent, MultiClass *Multiclass) | |
std::unique_ptr< TGVarScope > | extractParent () |
Init * | getVar (RecordKeeper &Records, MultiClass *ParsingMultiClass, StringInit *Name, SMRange NameLoc, bool TrackReferenceLocs) const |
bool | varAlreadyDefined (StringRef Name) const |
void | addVar (StringRef Name, Init *I) |
bool | isOutermost () const |
Definition at line 91 of file TGParser.h.
Enumerator | |
---|---|
SK_Local | |
SK_Record | |
SK_ForeachLoop | |
SK_MultiClass |
Definition at line 93 of file TGParser.h.
|
inline |
Definition at line 105 of file TGParser.h.
|
inline |
Definition at line 107 of file TGParser.h.
|
inline |
Definition at line 109 of file TGParser.h.
|
inline |
Definition at line 111 of file TGParser.h.
Definition at line 133 of file TGParser.h.
|
inline |
Definition at line 115 of file TGParser.h.
Init * TGVarScope::getVar | ( | RecordKeeper & | Records, |
MultiClass * | ParsingMultiClass, | ||
StringInit * | Name, | ||
SMRange | NameLoc, | ||
bool | TrackReferenceLocs | ||
) | const |
Definition at line 138 of file TGParser.cpp.
References llvm::RecordVal::addReferenceLoc(), assert(), llvm::StringRecTy::get(), llvm::VarInit::get(), llvm::VarInit::getNameInit(), llvm::RecordVal::getType(), llvm::Record::getValue(), llvm::Record::isClass(), llvm::Record::isTemplateArg(), llvm::ForeachLoop::IterVar, Name, QualifyName(), llvm::MultiClass::Rec, llvm::RecordVal::setUsed(), SK_ForeachLoop, SK_Local, SK_MultiClass, and SK_Record.
|
inline |
Definition at line 139 of file TGParser.h.
Definition at line 125 of file TGParser.h.
References Name.