13 #ifndef LLVM_LIB_TABLEGEN_TGLEXER_H 14 #define LLVM_LIB_TABLEGEN_TGLEXER_H 49 Bit,
Bits,
Class,
Code,
Dag,
Def,
Foreach,
Defm,
Field,
In,
Int,
Let,
List,
53 XConcat,
XADD,
XMUL,
XAND,
XOR,
XSRA,
XSRL,
XSHL,
XListConcat,
XListSplat,
55 XIf,
XCond,
XEq,
XIsA,
XDag,
XNe,
XLe,
XLt,
XGe,
XGt,
XSetOp,
XGetOp,
77 const char *CurPtr =
nullptr;
81 const char *TokStart =
nullptr;
83 std::string CurStrVal;
84 int64_t CurIntVal = 0;
88 unsigned CurBuffer = 0;
95 DependenciesSetTy Dependencies;
101 return CurCode = LexToken(CurPtr == CurBuf.
begin());
113 "This token doesn't have a string value");
122 "This token isn't a binary integer");
123 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2);
126 SMLoc getLoc()
const;
136 int peekNextChar(
int Index)
const;
137 void SkipBCPLComment();
178 struct PreprocessorControlDesc {
211 std::vector<std::unique_ptr<std::vector<PreprocessorControlDesc>>>
225 bool prepExitInclude(
bool IncludeStackMustBeEmpty);
274 bool ReturnNextLiveToken =
true);
288 bool prepSkipRegion(
bool MustNeverBeFalse);
335 bool prepSkipLineBegin();
353 bool prepSkipDirectiveEnd();
358 void prepSkipToLineEnd();
365 bool prepIsProcessingEnabled();
370 void prepReportPreprocessorStackError();
This class represents lattice values for constants.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
const std::string & getCurStrVal() const
const DependenciesSetTy & getDependencies() const
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling...
std::set< std::string > DependenciesSetTy
std::pair< int64_t, unsigned > getCurBinaryIntVal() const
tgtok::TokKind getCode() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
int64_t getCurIntVal() const
StringSet - A wrapper for StringMap that provides set-like functionality.
StringRef - Represent a constant reference to a string, i.e.
Represents a location in source code.
TGLexer - TableGen Lexer class.