LLVM 22.0.0git
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 ()
const InitgetVar (RecordKeeper &Records, MultiClass *ParsingMultiClass, const StringInit *Name, SMRange NameLoc, bool TrackReferenceLocs) const
bool varAlreadyDefined (StringRef Name) const
void addVar (StringRef Name, const Init *I)
bool isOutermost () const

Detailed Description

Definition at line 89 of file TGParser.h.

Member Enumeration Documentation

◆ ScopeKind

Enumerator
SK_Local 
SK_Record 
SK_ForeachLoop 
SK_MultiClass 

Definition at line 91 of file TGParser.h.

Constructor & Destructor Documentation

◆ TGVarScope() [1/4]

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

Definition at line 103 of file TGParser.h.

References llvm::move(), and SK_Local.

◆ TGVarScope() [2/4]

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

Definition at line 105 of file TGParser.h.

References llvm::move(), and SK_Record.

◆ TGVarScope() [3/4]

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

Definition at line 107 of file TGParser.h.

References llvm::move(), and SK_ForeachLoop.

◆ TGVarScope() [4/4]

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

Definition at line 109 of file TGParser.h.

References llvm::move(), and SK_MultiClass.

Member Function Documentation

◆ addVar()

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

Definition at line 131 of file TGParser.h.

References assert(), and I.

◆ extractParent()

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

Definition at line 113 of file TGParser.h.

◆ getVar()

◆ isOutermost()

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

Definition at line 137 of file TGParser.h.

◆ varAlreadyDefined()

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

Definition at line 123 of file TGParser.h.


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