LLVM 22.0.0git
AsmLexer.cpp File Reference
#include "llvm/MC/MCParser/AsmLexer.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SaveAndRestore.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <string>

Go to the source code of this file.

Functions

static bool isIdentifierChar (char C, bool AllowAt, bool AllowHash)
 LexIdentifier: [a-zA-Z_$.?][a-zA-Z0-9_$.#?]*.
static void SkipIgnoredIntegerSuffix (const char *&CurPtr)
static unsigned doHexLookAhead (const char *&CurPtr, unsigned DefaultRadix, bool LexHex)
static const charfindLastDigit (const char *CurPtr, unsigned DefaultRadix)
static AsmToken intToken (StringRef Ref, APInt &Value)
static std::string radixName (unsigned Radix)

Function Documentation

◆ doHexLookAhead()

unsigned doHexLookAhead ( const char *& CurPtr,
unsigned DefaultRadix,
bool LexHex )
static

Definition at line 345 of file AsmLexer.cpp.

References llvm::isDigit(), and llvm::isHexDigit().

◆ findLastDigit()

const char * findLastDigit ( const char * CurPtr,
unsigned DefaultRadix )
static

Definition at line 370 of file AsmLexer.cpp.

References llvm::hexDigitValue().

◆ intToken()

AsmToken intToken ( StringRef Ref,
APInt & Value )
static

Definition at line 377 of file AsmLexer.cpp.

References llvm::AsmToken::BigNum, llvm::AsmToken::Integer, and llvm::Ref.

◆ isIdentifierChar()

bool isIdentifierChar ( char C,
bool AllowAt,
bool AllowHash )
static

LexIdentifier: [a-zA-Z_$.?][a-zA-Z0-9_$.#?]*.

Definition at line 228 of file AsmLexer.cpp.

References llvm::CallingConv::C, and llvm::isAlnum().

◆ radixName()

std::string radixName ( unsigned Radix)
static

Definition at line 383 of file AsmLexer.cpp.

◆ SkipIgnoredIntegerSuffix()

void SkipIgnoredIntegerSuffix ( const char *& CurPtr)
static

Definition at line 333 of file AsmLexer.cpp.