class AsmToken
Declaration
class AsmToken { /* full declaration omitted */ };Description
Target independent representation for an assembler token.
Declared at: llvm/include/llvm/MC/MCAsmMacro.h:21
Member Variables
- private llvm::AsmToken::TokenKind Kind
- private llvm::StringRef Str
- A reference to the entire token contents; this is always a pointer into a memory buffer owned by the source manager.
- private llvm::APInt IntVal
Method Overview
- public AsmToken()
- public AsmToken(llvm::AsmToken::TokenKind Kind, llvm::StringRef Str, llvm::APInt IntVal)
- public AsmToken(llvm::AsmToken::TokenKind Kind, llvm::StringRef Str, int64_t IntVal = 0)
- public void dump(llvm::raw_ostream & OS) const
- public llvm::APInt getAPIntVal() const
- public llvm::SMLoc getEndLoc() const
- public llvm::StringRef getIdentifier() const
- public int64_t getIntVal() const
- public llvm::AsmToken::TokenKind getKind() const
- public llvm::SMLoc getLoc() const
- public llvm::SMRange getLocRange() const
- public llvm::StringRef getString() const
- public llvm::StringRef getStringContents() const
- public bool is(llvm::AsmToken::TokenKind K) const
- public bool isNot(llvm::AsmToken::TokenKind K) const
Methods
¶AsmToken()
AsmToken()Declared at: llvm/include/llvm/MC/MCAsmMacro.h:75
¶AsmToken(llvm::AsmToken::TokenKind Kind,
llvm::StringRef Str,
llvm::APInt IntVal)
AsmToken(llvm::AsmToken::TokenKind Kind,
llvm::StringRef Str,
llvm::APInt IntVal)Declared at: llvm/include/llvm/MC/MCAsmMacro.h:76
Parameters
- llvm::AsmToken::TokenKind Kind
- llvm::StringRef Str
- llvm::APInt IntVal
¶AsmToken(llvm::AsmToken::TokenKind Kind,
llvm::StringRef Str,
int64_t IntVal = 0)
AsmToken(llvm::AsmToken::TokenKind Kind,
llvm::StringRef Str,
int64_t IntVal = 0)Declared at: llvm/include/llvm/MC/MCAsmMacro.h:78
Parameters
- llvm::AsmToken::TokenKind Kind
- llvm::StringRef Str
- int64_t IntVal = 0
¶void dump(llvm::raw_ostream& OS) const
void dump(llvm::raw_ostream& OS) constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:126
Parameters
¶llvm::APInt getAPIntVal() const
llvm::APInt getAPIntVal() constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:120
¶llvm::SMLoc getEndLoc() const
llvm::SMLoc getEndLoc() constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:86
¶llvm::StringRef getIdentifier() const
llvm::StringRef getIdentifier() constDescription
Get the identifier string for the current token, which should be an identifier or a string. This gets the portion of the string which should be used as the identifier, e.g., it does not include the quotes on strings.
Declared at: llvm/include/llvm/MC/MCAsmMacro.h:99
¶int64_t getIntVal() const
int64_t getIntVal() constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:115
¶llvm::AsmToken::TokenKind getKind() const
llvm::AsmToken::TokenKind getKind() constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:81
¶llvm::SMLoc getLoc() const
llvm::SMLoc getLoc() constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:85
¶llvm::SMRange getLocRange() const
llvm::SMRange getLocRange() constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:87
¶llvm::StringRef getString() const
llvm::StringRef getString() constDescription
Get the string for the current token, this includes all characters (for example, the quotes on strings) in the token. The returned StringRef points into the source manager's memory buffer, and is safe to store across calls to Lex().
Declared at: llvm/include/llvm/MC/MCAsmMacro.h:110
¶llvm::StringRef getStringContents() const
llvm::StringRef getStringContents() constDescription
Get the contents of a string token (without quotes).
Declared at: llvm/include/llvm/MC/MCAsmMacro.h:90
¶bool is(llvm::AsmToken::TokenKind K) const
bool is(llvm::AsmToken::TokenKind K) constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:82
Parameters
- llvm::AsmToken::TokenKind K
¶bool isNot(llvm::AsmToken::TokenKind K) const
bool isNot(llvm::AsmToken::TokenKind K) constDeclared at: llvm/include/llvm/MC/MCAsmMacro.h:83
Parameters
- llvm::AsmToken::TokenKind K