Lines Matching defs:AsmParser
1 //===- AsmParser.cpp - Parser for Assembly Files --------------------------===//
118 class AsmParser : public MCAsmParser {
205 AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
207 AsmParser(const AsmParser &) = delete;
208 AsmParser &operator=(const AsmParser &) = delete;
209 ~AsmParser() override;
726 class HLASMAsmParser final : public AsmParser {
743 : AsmParser(SM, Ctx, Out, MAI, CB), Lexer(getLexer()), Out(Out) {
773 AsmParser::AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
824 AsmParser::~AsmParser() {
835 void AsmParser::printMacroInstantiations() {
842 void AsmParser::Note(SMLoc L, const Twine &Msg, SMRange Range) {
848 bool AsmParser::Warning(SMLoc L, const Twine &Msg, SMRange Range) {
858 bool AsmParser::printError(SMLoc L, const Twine &Msg, SMRange Range) {
865 bool AsmParser::enterIncludeFile(const std::string &Filename) {
880 bool AsmParser::processIncbinFile(const std::string &Filename, int64_t Skip,
903 void AsmParser::jumpToLoc(SMLoc Loc, unsigned InBuffer) {
909 const AsmToken &AsmParser::Lex() {
943 bool AsmParser::enabledGenDwarfForAssembly() {
966 bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) {
1086 bool AsmParser::checkForValidSection() {
1096 void AsmParser::eatToEndOfStatement() {
1105 StringRef AsmParser::parseStringToEndOfStatement() {
1115 StringRef AsmParser::parseStringToComma() {
1131 bool AsmParser::parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1143 bool AsmParser::parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1158 bool AsmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
1394 bool AsmParser::parseExpression(const MCExpr *&Res) {
1400 AsmParser::applyModifierToExpr(const MCExpr *E,
1502 bool AsmParser::parseExpression(const MCExpr *&Res, SMLoc &EndLoc) {
1540 bool AsmParser::parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) {
1545 bool AsmParser::parseParenExprOfDepth(unsigned ParenDepth, const MCExpr *&Res,
1565 bool AsmParser::parseAbsoluteExpression(int64_t &Res) {
1737 unsigned AsmParser::getBinOpPrecedence(AsmToken::TokenKind K,
1746 bool AsmParser::parseBinOpRHS(unsigned Precedence, const MCExpr *&Res,
1781 bool AsmParser::parseStatement(ParseStatementInfo &Info,
2318 bool AsmParser::parseAndMatchAndEmitTargetInstruction(ParseStatementInfo &Info,
2392 AsmParser::parseCurlyBlockScope(SmallVectorImpl<AsmRewrite> &AsmStrRewrites) {
2410 bool AsmParser::parseCppHashLineFilenameComment(SMLoc L, bool SaveLocInfo) {
2442 void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
2443 auto *Parser = static_cast<AsmParser *>(Context);
2502 bool AsmParser::expandMacro(raw_svector_ostream &OS, MCAsmMacro &Macro,
2681 bool AsmParser::parseMacroArgument(MCAsmMacroArgument &MA, bool Vararg) {
2750 bool AsmParser::parseMacroArguments(const MCAsmMacro *M,
2867 bool AsmParser::handleMacroEntry(MCAsmMacro *M, SMLoc NameLoc) {
2917 void AsmParser::handleMacroExit() {
2931 bool AsmParser::parseAssignment(StringRef Name, AssignmentKind Kind) {
2975 bool AsmParser::parseIdentifier(StringRef &Res) {
3020 bool AsmParser::parseDirectiveSet(StringRef IDVal, AssignmentKind Kind) {
3028 bool AsmParser::parseEscapedString(std::string &Data) {
3109 bool AsmParser::parseAngleBracketString(std::string &Data) {
3127 bool AsmParser::parseDirectiveAscii(StringRef IDVal, bool ZeroTerminated) {
3149 bool AsmParser::parseDirectiveReloc(SMLoc DirectiveLoc) {
3190 bool AsmParser::parseDirectiveValue(StringRef IDVal, unsigned Size) {
3211 static bool parseHexOcta(AsmParser &Asm, uint64_t &hi, uint64_t &lo) {
3233 bool AsmParser::parseDirectiveOctaValue(StringRef IDVal) {
3253 bool AsmParser::parseRealValue(const fltSemantics &Semantics, APInt &Res) {
3297 bool AsmParser::parseDirectiveRealValue(StringRef IDVal,
3313 bool AsmParser::parseDirectiveZero() {
3335 bool AsmParser::parseDirectiveFill() {
3378 bool AsmParser::parseDirectiveOrg() {
3398 bool AsmParser::parseDirectiveAlign(bool IsPow2, unsigned ValueSize) {
3513 bool AsmParser::parseDirectiveFile(SMLoc DirectiveLoc) {
3630 bool AsmParser::parseDirectiveLine() {
3648 bool AsmParser::parseDirectiveLoc() {
3742 bool AsmParser::parseDirectiveStabs() {
3748 bool AsmParser::parseDirectiveCVFile() {
3785 bool AsmParser::parseCVFunctionId(int64_t &FunctionId,
3795 bool AsmParser::parseCVFileId(int64_t &FileNumber, StringRef DirectiveName) {
3810 bool AsmParser::parseDirectiveCVFuncId() {
3831 bool AsmParser::parseDirectiveCVInlineSiteId() {
3890 bool AsmParser::parseDirectiveCVLoc() {
3952 bool AsmParser::parseDirectiveCVLinetable() {
3974 bool AsmParser::parseDirectiveCVInlineLinetable() {
4008 void AsmParser::initializeCVDefRangeTypeMap() {
4017 bool AsmParser::parseDirectiveCVDefRange() {
4126 bool AsmParser::parseDirectiveCVString() {
4140 bool AsmParser::parseDirectiveCVStringTable() {
4147 bool AsmParser::parseDirectiveCVFileChecksums() {
4154 bool AsmParser::parseDirectiveCVFileChecksumOffset() {
4166 bool AsmParser::parseDirectiveCVFPOData() {
4180 bool AsmParser::parseDirectiveCFISections() {
4205 bool AsmParser::parseDirectiveCFIStartProc() {
4227 bool AsmParser::parseDirectiveCFIEndProc() {
4238 bool AsmParser::parseRegisterOrRegisterNumber(int64_t &Register,
4254 bool AsmParser::parseDirectiveCFIDefCfa(SMLoc DirectiveLoc) {
4266 bool AsmParser::parseDirectiveCFIDefCfaOffset(SMLoc DirectiveLoc) {
4277 bool AsmParser::parseDirectiveCFIRegister(SMLoc DirectiveLoc) {
4289 bool AsmParser::parseDirectiveCFIWindowSave(SMLoc DirectiveLoc) {
4298 bool AsmParser::parseDirectiveCFIAdjustCfaOffset(SMLoc DirectiveLoc) {
4309 bool AsmParser::parseDirectiveCFIDefCfaRegister(SMLoc DirectiveLoc) {
4320 bool AsmParser::parseDirectiveCFILLVMDefAspaceCfa(SMLoc DirectiveLoc) {
4334 bool AsmParser::parseDirectiveCFIOffset(SMLoc DirectiveLoc) {
4348 bool AsmParser::parseDirectiveCFIRelOffset(SMLoc DirectiveLoc) {
4385 bool AsmParser::parseDirectiveCFIPersonalityOrLsda(bool IsPersonality) {
4410 bool AsmParser::parseDirectiveCFIRememberState(SMLoc DirectiveLoc) {
4419 bool AsmParser::parseDirectiveCFIRestoreState(SMLoc DirectiveLoc) {
4428 bool AsmParser::parseDirectiveCFISameValue(SMLoc DirectiveLoc) {
4440 bool AsmParser::parseDirectiveCFIRestore(SMLoc DirectiveLoc) {
4451 bool AsmParser::parseDirectiveCFIEscape(SMLoc DirectiveLoc) {
4474 bool AsmParser::parseDirectiveCFIReturnColumn(SMLoc DirectiveLoc) {
4484 bool AsmParser::parseDirectiveCFISignalFrame(SMLoc DirectiveLoc) {
4494 bool AsmParser::parseDirectiveCFIUndefined(SMLoc DirectiveLoc) {
4506 bool AsmParser::parseDirectiveCFILabel(SMLoc Loc) {
4520 bool AsmParser::parseDirectiveAltmacro(StringRef Directive) {
4530 bool AsmParser::parseDirectiveMacrosOnOff(StringRef Directive) {
4539 bool AsmParser::parseDirectiveMacro(SMLoc DirectiveLoc) {
4680 void AsmParser::checkForBadMacro(SMLoc DirectiveLoc, StringRef Name,
4770 bool AsmParser::parseDirectiveExitMacro(StringRef Directive) {
4791 bool AsmParser::parseDirectiveEndMacro(StringRef Directive) {
4810 bool AsmParser::parseDirectivePurgeMacro(SMLoc DirectiveLoc) {
4830 bool AsmParser::parseDirectiveBundleAlignMode() {
4847 bool AsmParser::parseDirectiveBundleLock() {
4870 bool AsmParser::parseDirectiveBundleUnlock() {
4880 bool AsmParser::parseDirectiveSpace(StringRef IDVal) {
4901 bool AsmParser::parseDirectiveDCB(StringRef IDVal, unsigned Size) {
4938 bool AsmParser::parseDirectiveRealDCB(StringRef IDVal, const fltSemantics &Semantics) {
4965 bool AsmParser::parseDirectiveDS(StringRef IDVal, unsigned Size) {
4985 bool AsmParser::parseDirectiveLEB128(bool Signed) {
5005 bool AsmParser::parseDirectiveSymbolAttribute(MCSymbolAttr Attr) {
5032 bool AsmParser::parseDirectiveComm(bool IsLocal) {
5098 bool AsmParser::parseDirectiveAbort(SMLoc DirectiveLoc) {
5113 bool AsmParser::parseDirectiveInclude() {
5134 bool AsmParser::parseDirectiveIncbin() {
5174 bool AsmParser::parseDirectiveIf(SMLoc DirectiveLoc, DirectiveKind DirKind) {
5216 bool AsmParser::parseDirectiveIfb(SMLoc DirectiveLoc, bool ExpectBlank) {
5238 bool AsmParser::parseDirectiveIfc(SMLoc DirectiveLoc, bool ExpectEqual) {
5264 bool AsmParser::parseDirectiveIfeqs(SMLoc DirectiveLoc, bool ExpectEqual) {
5302 bool AsmParser::parseDirectiveIfdef(SMLoc DirectiveLoc, bool expect_defined) {
5328 bool AsmParser::parseDirectiveElseIf(SMLoc DirectiveLoc) {
5358 bool AsmParser::parseDirectiveElse(SMLoc DirectiveLoc) {
5380 bool AsmParser::parseDirectiveEnd(SMLoc DirectiveLoc) {
5393 bool AsmParser::parseDirectiveError(SMLoc L, bool WithMessage) {
5418 bool AsmParser::parseDirectiveWarning(SMLoc L) {
5443 bool AsmParser::parseDirectiveEndIf(SMLoc DirectiveLoc) {
5458 void AsmParser::initializeDirectiveKindMap() {
5633 MCAsmMacro *AsmParser::parseMacroLikeBody(SMLoc DirectiveLoc) {
5675 void AsmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc,
5696 bool AsmParser::parseDirectiveRept(SMLoc DirectiveLoc, StringRef Dir) {
5731 bool AsmParser::parseDirectiveIrp(SMLoc DirectiveLoc) {
5763 bool AsmParser::parseDirectiveIrpc(SMLoc DirectiveLoc) {
5803 bool AsmParser::parseDirectiveEndr(SMLoc DirectiveLoc) {
5815 bool AsmParser::parseDirectiveMSEmit(SMLoc IDLoc, ParseStatementInfo &Info,
5832 bool AsmParser::parseDirectiveMSAlign(SMLoc IDLoc, ParseStatementInfo &Info) {
5848 bool AsmParser::parseDirectivePrint(SMLoc DirectiveLoc) {
5859 bool AsmParser::parseDirectiveAddrsig() {
5866 bool AsmParser::parseDirectiveAddrsigSym() {
5875 bool AsmParser::parseDirectivePseudoProbe() {
5948 bool AsmParser::parseDirectiveLTODiscard() {
5985 bool AsmParser::parseMSInlineAsm(
6469 return new AsmParser(SM, C, Out, MAI, CB);