LLVM 20.0.0git
Enumerations | Functions
llvm::tgtok Namespace Reference

Enumerations

enum  TokKind {
  Eof , Error , minus , plus ,
  l_square , r_square , l_brace , r_brace ,
  l_paren , r_paren , less , greater ,
  colon , semi , comma , dot ,
  equal , question , paste , dotdotdot ,
  TrueVal , FalseVal , IntVal , BinaryIntVal ,
  Ifdef , Ifndef , Else , Endif ,
  Define , Bit , Bits , Code ,
  Dag , ElseKW , FalseKW , Field ,
  In , Include , Int , List ,
  String , Then , TrueKW , OBJECT_START_FIRST ,
  Assert = OBJECT_START_FIRST , Class , Def , Defm ,
  Defset , Deftype , Defvar , Dump ,
  Foreach , If , Let , MultiClass ,
  OBJECT_START_LAST = MultiClass , BANG_OPERATOR_FIRST , XConcat = BANG_OPERATOR_FIRST , XADD ,
  XSUB , XMUL , XDIV , XNOT ,
  XLOG2 , XAND , XOR , XXOR ,
  XSRA , XSRL , XSHL , XListConcat ,
  XListSplat , XStrConcat , XInterleave , XSubstr ,
  XFind , XCast , XSubst , XForEach ,
  XFilter , XFoldl , XHead , XTail ,
  XSize , XEmpty , XIf , XCond ,
  XEq , XIsA , XDag , XNe ,
  XLe , XLt , XGe , XGt ,
  XSetDagOp , XGetDagOp , XExists , XListRemove ,
  XToLower , XToUpper , XRange , XGetDagArg ,
  XGetDagName , XSetDagArg , XSetDagName , XRepr ,
  BANG_OPERATOR_LAST = XRepr , STRING_VALUE_FIRST , Id = STRING_VALUE_FIRST , StrVal ,
  VarName , CodeFragment , STRING_VALUE_LAST = CodeFragment
}
 

Functions

static bool isBangOperator (tgtok::TokKind Kind)
 isBangOperator - Return true if this is a bang operator.
 
static bool isObjectStart (tgtok::TokKind Kind)
 isObjectStart - Return true if this is a valid first token for a statement.
 
static bool isStringValue (tgtok::TokKind Kind)
 isStringValue - Return true if this is a string value.
 

Enumeration Type Documentation

◆ TokKind

Enumerator
Eof 
Error 
minus 
plus 
l_square 
r_square 
l_brace 
r_brace 
l_paren 
r_paren 
less 
greater 
colon 
semi 
comma 
dot 
equal 
question 
paste 
dotdotdot 
TrueVal 
FalseVal 
IntVal 
BinaryIntVal 
Ifdef 
Ifndef 
Else 
Endif 
Define 
Bit 
Bits 
Code 
Dag 
ElseKW 
FalseKW 
Field 
In 
Include 
Int 
List 
String 
Then 
TrueKW 
OBJECT_START_FIRST 
Assert 
Class 
Def 
Defm 
Defset 
Deftype 
Defvar 
Dump 
Foreach 
If 
Let 
MultiClass 
OBJECT_START_LAST 
BANG_OPERATOR_FIRST 
XConcat 
XADD 
XSUB 
XMUL 
XDIV 
XNOT 
XLOG2 
XAND 
XOR 
XXOR 
XSRA 
XSRL 
XSHL 
XListConcat 
XListSplat 
XStrConcat 
XInterleave 
XSubstr 
XFind 
XCast 
XSubst 
XForEach 
XFilter 
XFoldl 
XHead 
XTail 
XSize 
XEmpty 
XIf 
XCond 
XEq 
XIsA 
XDag 
XNe 
XLe 
XLt 
XGe 
XGt 
XSetDagOp 
XGetDagOp 
XExists 
XListRemove 
XToLower 
XToUpper 
XRange 
XGetDagArg 
XGetDagName 
XSetDagArg 
XSetDagName 
XRepr 
BANG_OPERATOR_LAST 
STRING_VALUE_FIRST 
Id 
StrVal 
VarName 
CodeFragment 
STRING_VALUE_LAST 

Definition at line 32 of file TGLexer.h.

Function Documentation

◆ isBangOperator()

static bool llvm::tgtok::isBangOperator ( tgtok::TokKind  Kind)
inlinestatic

isBangOperator - Return true if this is a bang operator.

Definition at line 173 of file TGLexer.h.

References BANG_OPERATOR_FIRST, and BANG_OPERATOR_LAST.

◆ isObjectStart()

static bool llvm::tgtok::isObjectStart ( tgtok::TokKind  Kind)
inlinestatic

isObjectStart - Return true if this is a valid first token for a statement.

Definition at line 178 of file TGLexer.h.

References OBJECT_START_FIRST, and OBJECT_START_LAST.

◆ isStringValue()

static bool llvm::tgtok::isStringValue ( tgtok::TokKind  Kind)
inlinestatic

isStringValue - Return true if this is a string value.

Definition at line 183 of file TGLexer.h.

References STRING_VALUE_FIRST, and STRING_VALUE_LAST.

Referenced by llvm::TGLexer::getCurStrVal().