LLVM 22.0.0git
|
Generic interface for extending the MCAsmParser, which is implemented by target and object file assembly parser implementations. More...
#include "llvm/MC/MCParser/MCAsmParserExtension.h"
Protected Member Functions | |
MCAsmParserExtension () | |
Static Protected Member Functions | |
template<typename T , bool(T::*)(StringRef, SMLoc) Handler> | |
static bool | HandleDirective (MCAsmParserExtension *Target, StringRef Directive, SMLoc DirectiveLoc) |
Protected Attributes | |
bool | BracketExpressionsSupported = false |
Generic interface for extending the MCAsmParser, which is implemented by target and object file assembly parser implementations.
Definition at line 25 of file MCAsmParserExtension.h.
|
protecteddefault |
|
delete |
|
virtualdefault |
Definition at line 114 of file MCAsmParserExtension.h.
Definition at line 106 of file MCAsmParserExtension.h.
References P.
Definition at line 110 of file MCAsmParserExtension.h.
References P.
|
inline |
Definition at line 74 of file MCAsmParserExtension.h.
References Range.
|
inline |
Definition at line 55 of file MCAsmParserExtension.h.
Referenced by llvm::MCTargetAsmParser::copySTI(), and parseDirectiveCGProfile().
|
inline |
Definition at line 57 of file MCAsmParserExtension.h.
Referenced by maybeParseUniqueID(), and parseDirectiveCGProfile().
Definition at line 58 of file MCAsmParserExtension.h.
|
inline |
Definition at line 62 of file MCAsmParserExtension.h.
Referenced by maybeParseUniqueID(), llvm::MCTargetAsmParser::parseDirective(), and parseDirectiveCGProfile().
|
inline |
Definition at line 63 of file MCAsmParserExtension.h.
|
inline |
Definition at line 67 of file MCAsmParserExtension.h.
|
inline |
Definition at line 68 of file MCAsmParserExtension.h.
Referenced by llvm::MCTargetAsmParser::copySTI(), and parseDirectiveCGProfile().
Definition at line 87 of file MCAsmParserExtension.h.
Referenced by llvm::MCTargetAsmParser::parseDirective().
|
inlinestaticprotected |
Definition at line 33 of file MCAsmParserExtension.h.
|
inline |
Definition at line 118 of file MCAsmParserExtension.h.
|
virtual |
Initialize the extension for parsing using the given Parser
.
The extension should use the AsmParser interfaces to register its parsing routines.
Definition at line 21 of file MCAsmParserExtension.cpp.
Referenced by llvm::MCAsmParser::setTargetParser().
Definition at line 86 of file MCAsmParserExtension.h.
Referenced by maybeParseUniqueID(), and parseDirectiveCGProfile().
bool MCAsmParserExtension::maybeParseUniqueID | ( | int64_t & | UniqueID | ) |
Definition at line 62 of file MCAsmParserExtension.cpp.
References llvm::AsmToken::Comma, getLexer(), getParser(), Lex(), and TokError().
Definition at line 78 of file MCAsmParserExtension.h.
|
delete |
parseDirectiveCGProfile ::= .cg_profile identifier, identifier, <number>
Definition at line 27 of file MCAsmParserExtension.cpp.
References llvm::AsmToken::Comma, llvm::MCSymbolRefExpr::create(), llvm::MCStreamer::emitCGProfileEntry(), llvm::AsmToken::EndOfStatement, From, getContext(), getLexer(), llvm::AsmLexer::getLoc(), llvm::MCContext::getOrCreateSymbol(), getParser(), getStreamer(), isNot(), Lex(), and TokError().
|
inline |
Definition at line 92 of file MCAsmParserExtension.h.
|
inline |
Definition at line 94 of file MCAsmParserExtension.h.
|
inline |
Definition at line 98 of file MCAsmParserExtension.h.
|
inline |
Definition at line 88 of file MCAsmParserExtension.h.
Definition at line 82 of file MCAsmParserExtension.h.
Referenced by maybeParseUniqueID(), and parseDirectiveCGProfile().
Definition at line 70 of file MCAsmParserExtension.h.
|
protected |
Definition at line 40 of file MCAsmParserExtension.h.