Lines Matching defs:AsmParser
1 //===- AsmParser.cpp - Parser for Assembly Files --------------------------===//
119 class AsmParser : public MCAsmParser {
186 AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
188 AsmParser(const AsmParser &) = delete;
189 AsmParser &operator=(const AsmParser &) = delete;
190 ~AsmParser() override;
700 AsmParser::AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
740 AsmParser::~AsmParser() {
749 void AsmParser::printMacroInstantiations() {
759 void AsmParser::Note(SMLoc L, const Twine &Msg, SMRange Range) {
765 bool AsmParser::Warning(SMLoc L, const Twine &Msg, SMRange Range) {
775 bool AsmParser::printError(SMLoc L, const Twine &Msg, SMRange Range) {
782 bool AsmParser::enterIncludeFile(const std::string &Filename) {
797 bool AsmParser::processIncbinFile(const std::string &Filename, int64_t Skip,
820 void AsmParser::jumpToLoc(SMLoc Loc, unsigned InBuffer) {
826 const AsmToken &AsmParser::Lex() {
860 bool AsmParser::enabledGenDwarfForAssembly() {
884 bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) {
996 bool AsmParser::checkForValidSection() {
1006 void AsmParser::eatToEndOfStatement() {
1015 StringRef AsmParser::parseStringToEndOfStatement() {
1025 StringRef AsmParser::parseStringToComma() {
1041 bool AsmParser::parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1056 bool AsmParser::parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1071 bool AsmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1297 bool AsmParser::parseExpression(const MCExpr *&Res) {
1303 AsmParser::applyModifierToExpr(const MCExpr *E,
1405 bool AsmParser::parseExpression(const MCExpr *&Res, SMLoc &EndLoc) {
1445 bool AsmParser::parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) {
1450 bool AsmParser::parseParenExprOfDepth(unsigned ParenDepth, const MCExpr *&Res,
1471 bool AsmParser::parseAbsoluteExpression(int64_t &Res) {
1638 unsigned AsmParser::getBinOpPrecedence(AsmToken::TokenKind K,
1647 bool AsmParser::parseBinOpRHS(unsigned Precedence, const MCExpr *&Res,
1682 bool AsmParser::parseStatement(ParseStatementInfo &Info,
2281 AsmParser::parseCurlyBlockScope(SmallVectorImpl<AsmRewrite> &AsmStrRewrites) {
2299 bool AsmParser::parseCppHashLineFilenameComment(SMLoc L, bool SaveLocInfo) {
2331 void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
2332 const AsmParser *Parser = static_cast<const AsmParser *>(Context);
2392 bool AsmParser::expandMacro(raw_svector_ostream &OS, StringRef Body,
2572 bool AsmParser::parseMacroArgument(MCAsmMacroArgument &MA, bool Vararg) {
2645 bool AsmParser::parseMacroArguments(const MCAsmMacro *M,
2763 bool AsmParser::handleMacroEntry(const MCAsmMacro *M, SMLoc NameLoc) {
2812 void AsmParser::handleMacroExit() {
2822 bool AsmParser::parseAssignment(StringRef Name, bool allow_redef,
2848 bool AsmParser::parseIdentifier(StringRef &Res) {
2892 bool AsmParser::parseDirectiveSet(StringRef IDVal, bool allow_redef) {
2900 bool AsmParser::parseEscapedString(std::string &Data) {
2976 bool AsmParser::parseAngleBracketString(std::string &Data) {
2993 bool AsmParser::parseDirectiveAscii(StringRef IDVal, bool ZeroTerminated) {
3011 bool AsmParser::parseDirectiveReloc(SMLoc DirectiveLoc) {
3053 bool AsmParser::parseDirectiveValue(StringRef IDVal, unsigned Size) {
3076 static bool parseHexOcta(AsmParser &Asm, uint64_t &hi, uint64_t &lo) {
3098 bool AsmParser::parseDirectiveOctaValue(StringRef IDVal) {
3120 bool AsmParser::parseRealValue(const fltSemantics &Semantics, APInt &Res) {
3163 bool AsmParser::parseDirectiveRealValue(StringRef IDVal,
3181 bool AsmParser::parseDirectiveZero() {
3204 bool AsmParser::parseDirectiveFill() {
3248 bool AsmParser::parseDirectiveOrg() {
3268 bool AsmParser::parseDirectiveAlign(bool IsPow2, unsigned ValueSize) {
3364 bool AsmParser::parseDirectiveFile(SMLoc DirectiveLoc) {
3482 bool AsmParser::parseDirectiveLine() {
3504 bool AsmParser::parseDirectiveLoc() {
3598 bool AsmParser::parseDirectiveStabs() {
3604 bool AsmParser::parseDirectiveCVFile() {
3642 bool AsmParser::parseCVFunctionId(int64_t &FunctionId,
3652 bool AsmParser::parseCVFileId(int64_t &FileNumber, StringRef DirectiveName) {
3667 bool AsmParser::parseDirectiveCVFuncId() {
3690 bool AsmParser::parseDirectiveCVInlineSiteId() {
3750 bool AsmParser::parseDirectiveCVLoc() {
3812 bool AsmParser::parseDirectiveCVLinetable() {
3836 bool AsmParser::parseDirectiveCVInlineLinetable() {
3870 void AsmParser::initializeCVDefRangeTypeMap() {
3879 bool AsmParser::parseDirectiveCVDefRange() {
3988 bool AsmParser::parseDirectiveCVString() {
4002 bool AsmParser::parseDirectiveCVStringTable() {
4009 bool AsmParser::parseDirectiveCVFileChecksums() {
4016 bool AsmParser::parseDirectiveCVFileChecksumOffset() {
4028 bool AsmParser::parseDirectiveCVFPOData() {
4042 bool AsmParser::parseDirectiveCFISections() {
4073 bool AsmParser::parseDirectiveCFIStartProc() {
4093 bool AsmParser::parseDirectiveCFIEndProc() {
4099 bool AsmParser::parseRegisterOrRegisterNumber(int64_t &Register,
4115 bool AsmParser::parseDirectiveCFIDefCfa(SMLoc DirectiveLoc) {
4128 bool AsmParser::parseDirectiveCFIDefCfaOffset() {
4139 bool AsmParser::parseDirectiveCFIRegister(SMLoc DirectiveLoc) {
4152 bool AsmParser::parseDirectiveCFIWindowSave() {
4159 bool AsmParser::parseDirectiveCFIAdjustCfaOffset() {
4170 bool AsmParser::parseDirectiveCFIDefCfaRegister(SMLoc DirectiveLoc) {
4181 bool AsmParser::parseDirectiveCFIOffset(SMLoc DirectiveLoc) {
4196 bool AsmParser::parseDirectiveCFIRelOffset(SMLoc DirectiveLoc) {
4234 bool AsmParser::parseDirectiveCFIPersonalityOrLsda(bool IsPersonality) {
4258 bool AsmParser::parseDirectiveCFIRememberState() {
4265 bool AsmParser::parseDirectiveCFIRestoreState() {
4272 bool AsmParser::parseDirectiveCFISameValue(SMLoc DirectiveLoc) {
4284 bool AsmParser::parseDirectiveCFIRestore(SMLoc DirectiveLoc) {
4295 bool AsmParser::parseDirectiveCFIEscape() {
4318 bool AsmParser::parseDirectiveCFIReturnColumn(SMLoc DirectiveLoc) {
4328 bool AsmParser::parseDirectiveCFISignalFrame() {
4339 bool AsmParser::parseDirectiveCFIUndefined(SMLoc DirectiveLoc) {
4352 bool AsmParser::parseDirectiveAltmacro(StringRef Directive) {
4362 bool AsmParser::parseDirectiveMacrosOnOff(StringRef Directive) {
4373 bool AsmParser::parseDirectiveMacro(SMLoc DirectiveLoc) {
4514 void AsmParser::checkForBadMacro(SMLoc DirectiveLoc, StringRef Name,
4604 bool AsmParser::parseDirectiveExitMacro(StringRef Directive) {
4626 bool AsmParser::parseDirectiveEndMacro(StringRef Directive) {
4645 bool AsmParser::parseDirectivePurgeMacro(SMLoc DirectiveLoc) {
4666 bool AsmParser::parseDirectiveBundleAlignMode() {
4687 bool AsmParser::parseDirectiveBundleLock() {
4712 bool AsmParser::parseDirectiveBundleUnlock() {
4724 bool AsmParser::parseDirectiveSpace(StringRef IDVal) {
4745 bool AsmParser::parseDirectiveDCB(StringRef IDVal, unsigned Size) {
4787 bool AsmParser::parseDirectiveRealDCB(StringRef IDVal, const fltSemantics &Semantics) {
4819 bool AsmParser::parseDirectiveDS(StringRef IDVal, unsigned Size) {
4842 bool AsmParser::parseDirectiveLEB128(bool Signed) {
4865 bool AsmParser::parseDirectiveSymbolAttribute(MCSymbolAttr Attr) {
4889 bool AsmParser::parseDirectiveComm(bool IsLocal) {
4964 bool AsmParser::parseDirectiveAbort() {
4984 bool AsmParser::parseDirectiveInclude() {
5005 bool AsmParser::parseDirectiveIncbin() {
5046 bool AsmParser::parseDirectiveIf(SMLoc DirectiveLoc, DirectiveKind DirKind) {
5090 bool AsmParser::parseDirectiveIfb(SMLoc DirectiveLoc, bool ExpectBlank) {
5113 bool AsmParser::parseDirectiveIfc(SMLoc DirectiveLoc, bool ExpectEqual) {
5140 bool AsmParser::parseDirectiveIfeqs(SMLoc DirectiveLoc, bool ExpectEqual) {
5178 bool AsmParser::parseDirectiveIfdef(SMLoc DirectiveLoc, bool expect_defined) {
5204 bool AsmParser::parseDirectiveElseIf(SMLoc DirectiveLoc) {
5235 bool AsmParser::parseDirectiveElse(SMLoc DirectiveLoc) {
5258 bool AsmParser::parseDirectiveEnd(SMLoc DirectiveLoc) {
5272 bool AsmParser::parseDirectiveError(SMLoc L, bool WithMessage) {
5297 bool AsmParser::parseDirectiveWarning(SMLoc L) {
5323 bool AsmParser::parseDirectiveEndIf(SMLoc DirectiveLoc) {
5339 void AsmParser::initializeDirectiveKindMap() {
5507 MCAsmMacro *AsmParser::parseMacroLikeBody(SMLoc DirectiveLoc) {
5554 void AsmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc,
5575 bool AsmParser::parseDirectiveRept(SMLoc DirectiveLoc, StringRef Dir) {
5612 bool AsmParser::parseDirectiveIrp(SMLoc DirectiveLoc) {
5646 bool AsmParser::parseDirectiveIrpc(SMLoc DirectiveLoc) {
5689 bool AsmParser::parseDirectiveEndr(SMLoc DirectiveLoc) {
5701 bool AsmParser::parseDirectiveMSEmit(SMLoc IDLoc, ParseStatementInfo &Info,
5718 bool AsmParser::parseDirectiveMSAlign(SMLoc IDLoc, ParseStatementInfo &Info) {
5734 bool AsmParser::parseDirectivePrint(SMLoc DirectiveLoc) {
5745 bool AsmParser::parseDirectiveAddrsig() {
5750 bool AsmParser::parseDirectiveAddrsigSym() {
5783 bool AsmParser::parseMSInlineAsm(
6134 return new AsmParser(SM, C, Out, MAI, CB);