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;
730 class HLASMAsmParser final : public AsmParser {
747 : AsmParser(SM, Ctx, Out, MAI, CB), Lexer(getLexer()), Out(Out) {
777 AsmParser::AsmParser(SourceMgr &SM, MCContext &Ctx, MCStreamer &Out,
828 AsmParser::~AsmParser() {
839 void AsmParser::printMacroInstantiations() {
846 void AsmParser::Note(SMLoc L, const Twine &Msg, SMRange Range) {
852 bool AsmParser::Warning(SMLoc L, const Twine &Msg, SMRange Range) {
862 bool AsmParser::printError(SMLoc L, const Twine &Msg, SMRange Range) {
869 bool AsmParser::enterIncludeFile(const std::string &Filename) {
884 bool AsmParser::processIncbinFile(const std::string &Filename, int64_t Skip,
907 void AsmParser::jumpToLoc(SMLoc Loc, unsigned InBuffer) {
913 const AsmToken &AsmParser::Lex() {
947 bool AsmParser::enabledGenDwarfForAssembly() {
964 bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) {
1084 bool AsmParser::checkForValidSection() {
1094 void AsmParser::eatToEndOfStatement() {
1103 StringRef AsmParser::parseStringToEndOfStatement() {
1113 StringRef AsmParser::parseStringToComma() {
1129 bool AsmParser::parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1141 bool AsmParser::parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc) {
1156 bool AsmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
1392 bool AsmParser::parseExpression(const MCExpr *&Res) {
1398 AsmParser::applyModifierToExpr(const MCExpr *E,
1500 bool AsmParser::parseExpression(const MCExpr *&Res, SMLoc &EndLoc) {
1538 bool AsmParser::parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) {
1543 bool AsmParser::parseParenExprOfDepth(unsigned ParenDepth, const MCExpr *&Res,
1563 bool AsmParser::parseAbsoluteExpression(int64_t &Res) {
1735 unsigned AsmParser::getBinOpPrecedence(AsmToken::TokenKind K,
1744 bool AsmParser::parseBinOpRHS(unsigned Precedence, const MCExpr *&Res,
1779 bool AsmParser::parseStatement(ParseStatementInfo &Info,
2320 bool AsmParser::parseAndMatchAndEmitTargetInstruction(ParseStatementInfo &Info,
2394 AsmParser::parseCurlyBlockScope(SmallVectorImpl<AsmRewrite> &AsmStrRewrites) {
2412 bool AsmParser::parseCppHashLineFilenameComment(SMLoc L, bool SaveLocInfo) {
2456 void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
2457 auto *Parser = static_cast<AsmParser *>(Context);
2516 bool AsmParser::expandMacro(raw_svector_ostream &OS, MCAsmMacro &Macro,
2695 bool AsmParser::parseMacroArgument(MCAsmMacroArgument &MA, bool Vararg) {
2764 bool AsmParser::parseMacroArguments(const MCAsmMacro *M,
2881 bool AsmParser::handleMacroEntry(MCAsmMacro *M, SMLoc NameLoc) {
2931 void AsmParser::handleMacroExit() {
2945 bool AsmParser::parseAssignment(StringRef Name, AssignmentKind Kind) {
2989 bool AsmParser::parseIdentifier(StringRef &Res) {
3034 bool AsmParser::parseDirectiveSet(StringRef IDVal, AssignmentKind Kind) {
3042 bool AsmParser::parseEscapedString(std::string &Data) {
3127 bool AsmParser::parseAngleBracketString(std::string &Data) {
3145 bool AsmParser::parseDirectiveAscii(StringRef IDVal, bool ZeroTerminated) {
3167 bool AsmParser::parseDirectiveReloc(SMLoc DirectiveLoc) {
3208 bool AsmParser::parseDirectiveValue(StringRef IDVal, unsigned Size) {
3229 static bool parseHexOcta(AsmParser &Asm, uint64_t &hi, uint64_t &lo) {
3251 bool AsmParser::parseDirectiveOctaValue(StringRef IDVal) {
3271 bool AsmParser::parseRealValue(const fltSemantics &Semantics, APInt &Res) {
3315 bool AsmParser::parseDirectiveRealValue(StringRef IDVal,
3331 bool AsmParser::parseDirectiveZero() {
3353 bool AsmParser::parseDirectiveFill() {
3396 bool AsmParser::parseDirectiveOrg() {
3416 bool AsmParser::parseDirectiveAlign(bool IsPow2, unsigned ValueSize) {
3527 bool AsmParser::parseDirectiveFile(SMLoc DirectiveLoc) {
3644 bool AsmParser::parseDirectiveLine() {
3662 bool AsmParser::parseDirectiveLoc() {
3756 bool AsmParser::parseDirectiveLocLabel(SMLoc DirectiveLoc) {
3769 bool AsmParser::parseDirectiveStabs() {
3775 bool AsmParser::parseDirectiveCVFile() {
3812 bool AsmParser::parseCVFunctionId(int64_t &FunctionId,
3822 bool AsmParser::parseCVFileId(int64_t &FileNumber, StringRef DirectiveName) {
3837 bool AsmParser::parseDirectiveCVFuncId() {
3858 bool AsmParser::parseDirectiveCVInlineSiteId() {
3917 bool AsmParser::parseDirectiveCVLoc() {
3979 bool AsmParser::parseDirectiveCVLinetable() {
4001 bool AsmParser::parseDirectiveCVInlineLinetable() {
4035 void AsmParser::initializeCVDefRangeTypeMap() {
4044 bool AsmParser::parseDirectiveCVDefRange() {
4153 bool AsmParser::parseDirectiveCVString() {
4167 bool AsmParser::parseDirectiveCVStringTable() {
4174 bool AsmParser::parseDirectiveCVFileChecksums() {
4181 bool AsmParser::parseDirectiveCVFileChecksumOffset() {
4193 bool AsmParser::parseDirectiveCVFPOData() {
4207 bool AsmParser::parseDirectiveCFISections() {
4232 bool AsmParser::parseDirectiveCFIStartProc() {
4254 bool AsmParser::parseDirectiveCFIEndProc() {
4265 bool AsmParser::parseRegisterOrRegisterNumber(int64_t &Register,
4281 bool AsmParser::parseDirectiveCFIDefCfa(SMLoc DirectiveLoc) {
4293 bool AsmParser::parseDirectiveCFIDefCfaOffset(SMLoc DirectiveLoc) {
4304 bool AsmParser::parseDirectiveCFIRegister(SMLoc DirectiveLoc) {
4316 bool AsmParser::parseDirectiveCFIWindowSave(SMLoc DirectiveLoc) {
4325 bool AsmParser::parseDirectiveCFIAdjustCfaOffset(SMLoc DirectiveLoc) {
4336 bool AsmParser::parseDirectiveCFIDefCfaRegister(SMLoc DirectiveLoc) {
4347 bool AsmParser::parseDirectiveCFILLVMDefAspaceCfa(SMLoc DirectiveLoc) {
4361 bool AsmParser::parseDirectiveCFIOffset(SMLoc DirectiveLoc) {
4375 bool AsmParser::parseDirectiveCFIRelOffset(SMLoc DirectiveLoc) {
4412 bool AsmParser::parseDirectiveCFIPersonalityOrLsda(bool IsPersonality) {
4437 bool AsmParser::parseDirectiveCFIRememberState(SMLoc DirectiveLoc) {
4446 bool AsmParser::parseDirectiveCFIRestoreState(SMLoc DirectiveLoc) {
4455 bool AsmParser::parseDirectiveCFISameValue(SMLoc DirectiveLoc) {
4467 bool AsmParser::parseDirectiveCFIRestore(SMLoc DirectiveLoc) {
4478 bool AsmParser::parseDirectiveCFIEscape(SMLoc DirectiveLoc) {
4501 bool AsmParser::parseDirectiveCFIReturnColumn(SMLoc DirectiveLoc) {
4511 bool AsmParser::parseDirectiveCFISignalFrame(SMLoc DirectiveLoc) {
4521 bool AsmParser::parseDirectiveCFIUndefined(SMLoc DirectiveLoc) {
4533 bool AsmParser::parseDirectiveCFILabel(SMLoc Loc) {
4546 bool AsmParser::parseDirectiveCFIValOffset(SMLoc DirectiveLoc) {
4561 bool AsmParser::parseDirectiveAltmacro(StringRef Directive) {
4571 bool AsmParser::parseDirectiveMacrosOnOff(StringRef Directive) {
4580 bool AsmParser::parseDirectiveMacro(SMLoc DirectiveLoc) {
4721 void AsmParser::checkForBadMacro(SMLoc DirectiveLoc, StringRef Name,
4811 bool AsmParser::parseDirectiveExitMacro(StringRef Directive) {
4832 bool AsmParser::parseDirectiveEndMacro(StringRef Directive) {
4851 bool AsmParser::parseDirectivePurgeMacro(SMLoc DirectiveLoc) {
4871 bool AsmParser::parseDirectiveBundleAlignMode() {
4888 bool AsmParser::parseDirectiveBundleLock() {
4911 bool AsmParser::parseDirectiveBundleUnlock() {
4921 bool AsmParser::parseDirectiveSpace(StringRef IDVal) {
4942 bool AsmParser::parseDirectiveDCB(StringRef IDVal, unsigned Size) {
4979 bool AsmParser::parseDirectiveRealDCB(StringRef IDVal, const fltSemantics &Semantics) {
5006 bool AsmParser::parseDirectiveDS(StringRef IDVal, unsigned Size) {
5026 bool AsmParser::parseDirectiveLEB128(bool Signed) {
5046 bool AsmParser::parseDirectiveSymbolAttribute(MCSymbolAttr Attr) {
5073 bool AsmParser::parseDirectiveComm(bool IsLocal) {
5139 bool AsmParser::parseDirectiveAbort(SMLoc DirectiveLoc) {
5154 bool AsmParser::parseDirectiveInclude() {
5175 bool AsmParser::parseDirectiveIncbin() {
5215 bool AsmParser::parseDirectiveIf(SMLoc DirectiveLoc, DirectiveKind DirKind) {
5257 bool AsmParser::parseDirectiveIfb(SMLoc DirectiveLoc, bool ExpectBlank) {
5279 bool AsmParser::parseDirectiveIfc(SMLoc DirectiveLoc, bool ExpectEqual) {
5305 bool AsmParser::parseDirectiveIfeqs(SMLoc DirectiveLoc, bool ExpectEqual) {
5343 bool AsmParser::parseDirectiveIfdef(SMLoc DirectiveLoc, bool expect_defined) {
5369 bool AsmParser::parseDirectiveElseIf(SMLoc DirectiveLoc) {
5399 bool AsmParser::parseDirectiveElse(SMLoc DirectiveLoc) {
5421 bool AsmParser::parseDirectiveEnd(SMLoc DirectiveLoc) {
5434 bool AsmParser::parseDirectiveError(SMLoc L, bool WithMessage) {
5459 bool AsmParser::parseDirectiveWarning(SMLoc L) {
5484 bool AsmParser::parseDirectiveEndIf(SMLoc DirectiveLoc) {
5499 void AsmParser::initializeDirectiveKindMap() {
5676 MCAsmMacro *AsmParser::parseMacroLikeBody(SMLoc DirectiveLoc) {
5718 void AsmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc,
5739 bool AsmParser::parseDirectiveRept(SMLoc DirectiveLoc, StringRef Dir) {
5774 bool AsmParser::parseDirectiveIrp(SMLoc DirectiveLoc) {
5806 bool AsmParser::parseDirectiveIrpc(SMLoc DirectiveLoc) {
5847 bool AsmParser::parseDirectiveEndr(SMLoc DirectiveLoc) {
5859 bool AsmParser::parseDirectiveMSEmit(SMLoc IDLoc, ParseStatementInfo &Info,
5876 bool AsmParser::parseDirectiveMSAlign(SMLoc IDLoc, ParseStatementInfo &Info) {
5892 bool AsmParser::parseDirectivePrint(SMLoc DirectiveLoc) {
5903 bool AsmParser::parseDirectiveAddrsig() {
5910 bool AsmParser::parseDirectiveAddrsigSym() {
5919 bool AsmParser::parseDirectivePseudoProbe() {
5992 bool AsmParser::parseDirectiveLTODiscard() {
6029 bool AsmParser::parseMSInlineAsm(
6484 return new AsmParser(SM, C, Out, MAI, CB);