class AsmLexer

Declaration

class AsmLexer : public MCAsmLexer { /* full declaration omitted */ };

Description

AsmLexer - Lexer class for assembly files.

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:25

Inherits from: MCAsmLexer

Member Variables

private const llvm::MCAsmInfo& MAI
private const char* CurPtr = nullptr
private llvm::StringRef CurBuf
private bool IsAtStartOfLine = true
private bool IsAtStartOfStatement = true
private bool IsPeeking = false
private bool EndStatementAtEOF = true

Inherited from MCAsmLexer:

protected TokStart = nullptr
protected SkipSpace = true
protected AllowAtInIdentifier
protected AllowHashInIdentifier = false
protected IsAtStartOfStatement = true
protected LexMasmHexFloats = false
protected LexMasmIntegers = false
protected LexMasmStrings = false
protected LexMotorolaIntegers = false
protected UseMasmDefaultRadix = false
protected DefaultRadix = 10
protected LexHLASMIntegers = false
protected LexHLASMStrings = false
protected CommentConsumer = nullptr

Method Overview

Inherited from MCAsmLexer:

Methods

AsmLexer(const llvm::MCAsmInfo& MAI)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:40

Parameters

const llvm::MCAsmInfo& MAI

AsmLexer(const llvm::AsmLexer&)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:41

Parameters

const llvm::AsmLexer&

llvm::AsmToken LexDigit()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:65

llvm::AsmToken LexFloatLiteral()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:68

llvm::AsmToken LexHexFloatLiteral(
    bool NoIntDigits)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:69

Parameters

bool NoIntDigits

llvm::AsmToken LexIdentifier()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:62

llvm::AsmToken LexLineComment()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:64

llvm::AsmToken LexQuote()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:67

llvm::AsmToken LexSingleQuote()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:66

llvm::AsmToken LexSlash()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:63

llvm::AsmToken LexToken()

Description

LexToken - Read the next token and return its code.

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:37

llvm::StringRef LexUntilEndOfLine()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:71

llvm::StringRef LexUntilEndOfStatement()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:48

llvm::AsmToken ReturnError(const char* Loc,
                           const std::string& Msg)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:60

Parameters

const char* Loc
const std::string& Msg

const llvm::MCAsmInfo& getMAI() const

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:53

int getNextChar()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:58

bool isAtStartOfComment(const char* Ptr)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:56

Parameters

const char* Ptr

bool isAtStatementSeparator(const char* Ptr)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:57

Parameters

const char* Ptr

int peekNextChar()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:59

size_t peekTokens(
    MutableArrayRef<llvm::AsmToken> Buf,
    bool ShouldSkipSpace = true)

Description

Look ahead an arbitrary number of tokens.

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:50

Parameters

MutableArrayRef<llvm::AsmToken> Buf
bool ShouldSkipSpace = true

void setBuffer(llvm::StringRef Buf,
               const char* ptr = nullptr,
               bool EndStatementAtEOF = true)

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:45

Parameters

llvm::StringRef Buf
const char* ptr = nullptr
bool EndStatementAtEOF = true

~AsmLexer()

Declared at: llvm/include/llvm/MC/MCParser/AsmLexer.h:43