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

Inherited from MCAsmLexer:

protected TokStart = nullptr
protected SkipSpace = true
protected AllowAtInIdentifier
protected IsAtStartOfStatement = true
protected LexMasmIntegers = false
protected CommentConsumer = nullptr

Method Overview

Inherited from MCAsmLexer:

Methods

AsmLexer(const llvm::MCAsmInfo& MAI)

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

Parameters

const llvm::MCAsmInfo& MAI

AsmLexer(const llvm::AsmLexer&)

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

Parameters

const llvm::AsmLexer&

llvm::AsmToken LexToken()

Description

LexToken - Read the next token and return its code.

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

llvm::StringRef LexUntilEndOfStatement()

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

const llvm::MCAsmInfo& getMAI() const

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

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:48

Parameters

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

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

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

Parameters

llvm::StringRef Buf
const char* ptr = nullptr

~AsmLexer()

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