14 #ifndef LLVM_LIB_TABLEGEN_TGLEXER_H
15 #define LLVM_LIB_TABLEGEN_TGLEXER_H
18 #include "llvm/Support/DataTypes.h"
46 Bit,
Bits,
Class,
Code,
Dag,
Def,
Foreach,
Defm,
Field,
In,
Int,
Let,
List,
50 XConcat,
XADD,
XAND,
XOR,
XSRA,
XSRL,
XSHL,
XListConcat,
XStrConcat,
XCast,
75 std::string CurStrVal;
92 return CurCode = LexToken();
104 "This token doesn't have a string value");
113 "This token isn't a binary integer");
114 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2);
126 int peekNextChar(
int Index);
127 void SkipBCPLComment();
TGLexer(SourceMgr &SrcMgr)
std::pair< int64_t, unsigned > getCurBinaryIntVal() const
tgtok::TokKind getCode() const
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
const DependenciesMapTy & getDependencies() const
int64_t getCurIntVal() const
const std::string & getCurStrVal() const
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling...
std::map< std::string, SMLoc > DependenciesMapTy
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
Represents a location in source code.
TGLexer - TableGen Lexer class.