LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::TGVarScope Class Reference

#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< TGVarScopeextractParent ()
 
InitgetVar (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
 

Detailed Description

Definition at line 91 of file TGParser.h.

Member Enumeration Documentation

◆ ScopeKind

Enumerator
SK_Local 
SK_Record 
SK_ForeachLoop 
SK_MultiClass 

Definition at line 93 of file TGParser.h.

Constructor & Destructor Documentation

◆ TGVarScope() [1/4]

llvm::TGVarScope::TGVarScope ( std::unique_ptr< TGVarScope Parent)
inline

Definition at line 105 of file TGParser.h.

◆ TGVarScope() [2/4]

llvm::TGVarScope::TGVarScope ( std::unique_ptr< TGVarScope Parent,
Record Rec 
)
inline

Definition at line 107 of file TGParser.h.

◆ TGVarScope() [3/4]

llvm::TGVarScope::TGVarScope ( std::unique_ptr< TGVarScope Parent,
ForeachLoop Loop 
)
inline

Definition at line 109 of file TGParser.h.

◆ TGVarScope() [4/4]

llvm::TGVarScope::TGVarScope ( std::unique_ptr< TGVarScope Parent,
MultiClass Multiclass 
)
inline

Definition at line 111 of file TGParser.h.

Member Function Documentation

◆ addVar()

void llvm::TGVarScope::addVar ( StringRef  Name,
Init I 
)
inline

Definition at line 133 of file TGParser.h.

References assert(), I, and Name.

◆ extractParent()

std::unique_ptr< TGVarScope > llvm::TGVarScope::extractParent ( )
inline

Definition at line 115 of file TGParser.h.

◆ getVar()

Init * TGVarScope::getVar ( RecordKeeper Records,
MultiClass ParsingMultiClass,
StringInit Name,
SMRange  NameLoc,
bool  TrackReferenceLocs 
) const

◆ isOutermost()

bool llvm::TGVarScope::isOutermost ( ) const
inline

Definition at line 139 of file TGParser.h.

◆ varAlreadyDefined()

bool llvm::TGVarScope::varAlreadyDefined ( StringRef  Name) const
inline

Definition at line 125 of file TGParser.h.

References Name.


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