LLVM 20.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 24 of file MCAsmParserExtension.h.
|
protecteddefault |
|
delete |
|
virtualdefault |
Definition at line 111 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::addErrorSuffix(), and getParser().
Definition at line 103 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::check(), getParser(), and P.
Definition at line 107 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::check(), getParser(), and P.
|
inline |
Definition at line 73 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::Error(), getParser(), and Range.
|
inline |
Definition at line 54 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::getContext(), and getParser().
Referenced by llvm::MCTargetAsmParser::copySTI(), and ParseDirectiveCGProfile().
|
inline |
Definition at line 56 of file MCAsmParserExtension.h.
References llvm::MCAsmParser::getLexer(), and getParser().
Referenced by getLexer(), and ParseDirectiveCGProfile().
|
inline |
Definition at line 57 of file MCAsmParserExtension.h.
References getLexer().
|
inline |
Definition at line 61 of file MCAsmParserExtension.h.
Referenced by addErrorSuffix(), check(), Error(), getContext(), getLexer(), getParser(), getSourceManager(), getStreamer(), getTok(), Lex(), Note(), llvm::MCTargetAsmParser::parseDirective(), ParseDirectiveCGProfile(), parseEOL(), parseMany(), parseOptionalToken(), llvm::MCTargetAsmParser::parsePrimaryExpr(), parseToken(), TokError(), and Warning().
|
inline |
Definition at line 62 of file MCAsmParserExtension.h.
References getParser().
|
inline |
Definition at line 66 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::getSourceManager().
|
inline |
Definition at line 67 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::getStreamer().
Referenced by ParseDirectiveCGProfile().
Definition at line 86 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::getTok().
Referenced by llvm::MCTargetAsmParser::parseDirective().
|
inlinestaticprotected |
Definition at line 32 of file MCAsmParserExtension.h.
|
inline |
Definition at line 115 of file MCAsmParserExtension.h.
References BracketExpressionsSupported.
|
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 85 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::Lex().
Referenced by ParseDirectiveCGProfile().
Definition at line 77 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::Note().
|
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::MCAsmLexer::getLoc(), llvm::MCContext::getOrCreateSymbol(), getParser(), getStreamer(), isNot(), Lex(), TokError(), and llvm::MCSymbolRefExpr::VK_None.
|
inline |
Definition at line 91 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::parseEOL().
|
inline |
Definition at line 93 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::parseMany().
|
inline |
Definition at line 97 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::parseOptionalToken().
|
inline |
Definition at line 87 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::parseToken().
Definition at line 81 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::TokError().
Referenced by ParseDirectiveCGProfile().
Definition at line 69 of file MCAsmParserExtension.h.
References getParser(), and llvm::MCAsmParser::Warning().
|
protected |
Definition at line 39 of file MCAsmParserExtension.h.
Referenced by HasBracketExpressions().