13#ifndef LLVM_LIB_TABLEGEN_TGLEXER_H
14#define LLVM_LIB_TABLEGEN_TGLEXER_H
192 const char *CurPtr =
nullptr;
196 const char *TokStart =
nullptr;
198 std::string CurStrVal;
199 int64_t CurIntVal = 0;
203 unsigned CurBuffer = 0;
216 return CurCode = LexToken(CurPtr == CurBuf.
begin());
227 "This token doesn't have a string value");
236 "This token isn't a binary integer");
237 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2);
251 int peekNextChar(
int Index)
const;
252 void SkipBCPLComment();
293 struct PreprocessorControlDesc {
326 std::vector<std::unique_ptr<std::vector<PreprocessorControlDesc>>>
340 bool prepExitInclude(
bool IncludeStackMustBeEmpty);
389 bool ReturnNextLiveToken =
true);
403 bool prepSkipRegion(
bool MustNeverBeFalse);
430 StringRef prepLexMacroName();
450 bool prepSkipLineBegin();
468 bool prepSkipDirectiveEnd();
475 bool prepIsProcessingEnabled();
480 void prepReportPreprocessorStackError();
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringSet - A set-like wrapper for the StringMap.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Represents a location in source code.
Represents a range in source code.
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
StringRef - Represent a constant reference to a string, i.e.
StringSet - A wrapper for StringMap that provides set-like functionality.
TGLexer - TableGen Lexer class.
SMRange getLocRange() const
int64_t getCurIntVal() const
std::pair< int64_t, unsigned > getCurBinaryIntVal() const
const std::string & getCurStrVal() const
tgtok::TokKind getCode() const
std::set< std::string > DependenciesSetTy
const DependenciesSetTy & getDependencies() const
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
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.
This is an optimization pass for GlobalISel generic memory operations.
ArrayRef(const T &OneElt) -> ArrayRef< T >