14 #ifndef LLVM_LIB_TABLEGEN_TGLEXER_H 15 #define LLVM_LIB_TABLEGEN_TGLEXER_H 49 Bit,
Bits,
Class,
Code,
Dag,
Def,
Foreach,
Defm,
Field,
In,
Int,
Let,
List,
53 XConcat,
XADD,
XAND,
XOR,
XSRA,
XSRL,
XSHL,
XListConcat,
XStrConcat,
XCast,
54 XSubst,
XForEach,
XFoldl,
XHead,
XTail,
XSize,
XEmpty,
XIf,
XEq,
XIsA,
XDag,
83 std::string CurStrVal;
94 DependenciesMapTy Dependencies;
100 return CurCode = LexToken(CurPtr == CurBuf.
begin());
112 "This token doesn't have a string value");
121 "This token isn't a binary integer");
122 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2);
125 SMLoc getLoc()
const;
135 int peekNextChar(
int Index)
const;
136 void SkipBCPLComment();
177 struct PreprocessorControlDesc {
210 std::vector<std::unique_ptr<std::vector<PreprocessorControlDesc>>>
224 bool prepExitInclude(
bool IncludeStackMustBeEmpty);
273 bool ReturnNextLiveToken =
true);
287 bool prepSkipRegion(
bool MustNeverBeFalse);
334 bool prepSkipLineBegin();
352 bool prepSkipDirectiveEnd();
357 void prepSkipToLineEnd();
364 bool prepIsProcessingEnabled();
369 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
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling...
std::map< std::string, SMLoc > DependenciesMapTy
std::pair< int64_t, unsigned > getCurBinaryIntVal() const
tgtok::TokKind getCode() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const DependenciesMapTy & getDependencies() const
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.