LLVM: llvm::AsmToken Class Reference (original) (raw)
Target independent representation for an assembler token. More...
#include "[llvm/MC/MCAsmMacro.h](MCAsmMacro%5F8h%5Fsource.html)"
| Public Types |
|
| enum |
TokenKind { Eof, Error, Identifier, String, Integer, BigNum, Real, Comment, HashDirective, EndOfStatement, Colon, Space, Plus, Minus, Tilde, Slash, BackSlash, LParen, RParen, LBrac, RBrac, LCurly, RCurly, Question, Star, Dot, Comma, Dollar, Equal, EqualEqual, Pipe, PipePipe, Caret, Amp, AmpAmp, Exclaim, ExclaimEqual, Percent, Hash, Less, LessEqual, LessLess, LessGreater, Greater, GreaterEqual, GreaterGreater, At, MinusGreater } |
Target independent representation for an assembler token.
Definition at line 22 of file MCAsmMacro.h.
◆ TokenKind
| Enumerator |
| Eof |
| Error |
| Identifier |
| String |
| Integer |
| BigNum |
| Real |
| Comment |
| HashDirective |
| EndOfStatement |
| Colon |
| Space |
| Plus |
| Minus |
| Tilde |
| Slash |
| BackSlash |
| LParen |
| RParen |
| LBrac |
| RBrac |
| LCurly |
| RCurly |
| Question |
| Star |
| Dot |
| Comma |
| Dollar |
| Equal |
| EqualEqual |
| Pipe |
| PipePipe |
| Caret |
| Amp |
| AmpAmp |
| Exclaim |
| ExclaimEqual |
| Percent |
| Hash |
| Less |
| LessEqual |
| LessLess |
| LessGreater |
| Greater |
| GreaterEqual |
| GreaterGreater |
| At |
| MinusGreater |
Definition at line 24 of file MCAsmMacro.h.
◆ AsmToken() [1/3]
| llvm::AsmToken::AsmToken ( ) |
default |
◆ AsmToken() [2/3]
◆ AsmToken() [3/3]
◆ dump()
Definition at line 39 of file AsmLexer.cpp.
References Amp, AmpAmp, At, BackSlash, BigNum, Caret, Colon, Comma, Comment, Dollar, Dot, EndOfStatement, Eof, Equal, EqualEqual, Error, Exclaim, ExclaimEqual, getString(), Greater, GreaterEqual, GreaterGreater, Hash, HashDirective, Identifier, Integer, LBrac, LCurly, Less, LessEqual, LessGreater, LessLess, LParen, Minus, MinusGreater, Percent, Pipe, PipePipe, Plus, Question, RBrac, RCurly, Real, RParen, Slash, Space, Star, String, Tilde, and llvm::raw_ostream::write_escaped().
◆ getAPIntVal()
| APInt llvm::AsmToken::getAPIntVal ( ) const |
inline |
◆ getEndLoc()
| SMLoc AsmToken::getEndLoc |
( |
) |
const |
◆ getIdentifier()
| StringRef llvm::AsmToken::getIdentifier ( ) const |
inline |
◆ getIntVal()
| int64_t llvm::AsmToken::getIntVal ( ) const |
inline |
◆ getKind()
| TokenKind llvm::AsmToken::getKind ( ) const |
inline |
◆ getLoc()
| SMLoc AsmToken::getLoc |
( |
) |
const |
◆ getLocRange()
| SMRange AsmToken::getLocRange |
( |
) |
const |
◆ getString()
| StringRef llvm::AsmToken::getString ( ) const |
inline |
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().
Definition at line 103 of file MCAsmMacro.h.
Referenced by dump(), and getIdentifier().
◆ getStringContents()
| StringRef llvm::AsmToken::getStringContents ( ) const |
inline |
◆ is()
◆ isNot()
The documentation for this class was generated from the following files: