Home | History | Annotate | Download | only in MCParser

Lines Matching refs:Directive

135   /// \brief maps directive names to handler methods in parser
187 void addDirectiveHandler(StringRef Directive,
189 ExtensionDirectiveMap[Directive] = Handler;
192 void addAliasForDirective(StringRef Directive, StringRef Alias) override {
193 DirectiveKindMap[Directive] = DirectiveKindMap[Alias];
309 /// \brief Process the specified file for the .incbin directive.
342 // Generic (target and platform independent) directive parsing.
373 /// \brief Maps directive name --> DirectiveKind enum, for
420 bool parseDirectiveExitMacro(StringRef Directive);
421 bool parseDirectiveEndMacro(StringRef Directive);
423 bool parseDirectiveMacrosOnOff(StringRef Directive);
438 /// \brief Parse a directive like ".globl" which
470 bool parseDirectiveRept(SMLoc DirectiveLoc, StringRef Directive);
639 // section and generate a .file directive.
711 TokError("expected section directive before assembly directive");
883 return TokError("literal value out of range for directive");
1302 /// ::= Label* Directive ...Operands... EndOfStatement
1478 default: // Normal instruction or directive.
1488 // Otherwise, we have a normal instruction or directive.
1498 // 3. The generic directive parser implemented by this class. These are
1504 // isn't interested in this directive.
1508 // Next, check the extension directive map to see if any extension has
1509 // registered itself to parse this directive.
1515 // Finally, if no one else is interested in this directive, it must be
1705 return Error(IDLoc, "unknown directive");
1744 // directive for the instruction.
1813 // Consume the line since in cases it is not a well-formed line directive,
2448 return TokError("expected string in '" + Twine(IDVal) + "' directive");
2464 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
2510 return TokError("unexpected token in .reloc directive");
2535 return Error(ExprLoc, "literal value out of range for directive");
2545 return TokError("unexpected token in directive");
2580 return Error(ExprLoc, "literal value out of range for directive");
2595 return TokError("unexpected token in directive");
2623 return TokError("unexpected token in directive");
2653 return TokError("unexpected token in directive");
2679 return TokError("unexpected token in '.zero' directive");
2700 "'.fill' directive with negative repeat count has no effect");
2710 return TokError("unexpected token in '.fill' directive");
2719 return TokError("unexpected token in '.fill' directive");
2727 return TokError("unexpected token in '.fill' directive");
2734 Warning(SizeLoc, "'.fill' directive with negative size has no effect");
2738 Warning(SizeLoc, "'.fill' directive with size greater than 8 has been truncated to 8");
2743 Warning(ExprLoc, "'.fill' directive pattern has been truncated to 32-bits");
2771 return TokError("unexpected token in '.org' directive");
2778 return TokError("unexpected token in '.org' directive");
2802 return TokError("unexpected token in directive");
2816 return TokError("unexpected token in directive");
2824 return TokError("unexpected token in directive");
2855 Error(MaxBytesLoc, "alignment directive can never be satisfied in this "
2868 // directive.
2900 return TokError("unexpected token in '.file' directive");
2925 return TokError("unexpected token in '.file' directive");
2948 return TokError("unexpected token in '.line' directive");
2958 return TokError("unexpected token in '.line' directive");
2967 /// a .file directive, the second number is the line number and optionally the
2972 return TokError("unexpected token in '.loc' directive");
2975 return TokError("file number less than one in '.loc' directive");
2977 return TokError("unassigned file number in '.loc' directive");
2984 return TokError("line number less than zero in '.loc' directive");
2992 return TokError("column position less than zero in '.loc' directive");
3007 return TokError("unexpected token in '.loc' directive");
3050 return Error(Loc, "unknown sub-directive in '.loc' directive");
3067 return TokError("unsupported directive '.stabs'");
3107 return TokError("unexpected token in .cfi_startproc directive");
3143 return TokError("unexpected token in directive");
3173 return TokError("unexpected token in directive");
3223 return TokError("unexpected token in directive");
3242 return TokError("unexpected token in directive");
3290 return TokError("unexpected token in directive");
3295 return TokError("expected identifier in directive");
3392 bool AsmParser::parseDirectiveMacrosOnOff(StringRef Directive) {
3395 "unexpected token in '" + Directive + "' directive");
3397 setMacrosEnabled(Directive == ".macros_on");
3406 return TokError("expected identifier in '.macro' directive");
3421 return TokError("expected identifier in '.macro' directive");
3484 "' directive");
3617 bool AsmParser::parseDirectiveExitMacro(StringRef Directive) {
3619 return TokError("unexpected token in '" + Directive + "' directive");
3622 return TokError("unexpected '" + Directive + "' in file, "
3638 bool AsmParser::parseDirectiveEndMacro(StringRef Directive) {
3640 return TokError("unexpected token in '" + Directive + "' directive");
3651 return TokError("unexpected '" + Directive + "' in file, "
3660 return TokError("expected identifier in '.purgem' directive");
3663 return TokError("unexpected token in '.purgem' directive");
3685 " '.bundle_align_mode' directive");
3708 "invalid option for '.bundle_lock' directive";
3717 "unexpected token after '.bundle_lock' directive option");
3733 return TokError("unexpected token in '.bundle_unlock' directive");
3752 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
3759 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
3766 "' directive");
3793 return TokError("unexpected token in directive");
3809 return Error(Loc, "expected identifier in directive");
3815 return Error(Loc, "non-local symbol required in directive");
3824 return TokError("unexpected token in directive");
3841 return TokError("expected identifier in directive");
3847 return TokError("unexpected token in directive");
3877 return TokError("unexpected token in '.comm' or '.lcomm' directive");
3884 return Error(SizeLoc, "invalid '.comm' or '.lcomm' directive size, can't "
3887 // NOTE: The alignment in the directive is a power of 2 value, the assembler
3891 return Error(Pow2AlignmentLoc, "invalid '.comm' or '.lcomm' directive "
3910 // FIXME: Use loc from directive.
3915 return TokError("unexpected token in '.abort' directive");
3932 return TokError("expected string in '.include' directive");
3942 return TokError("unexpected token in '.include' directive");
3958 return TokError("expected string in '.incbin' directive");
3968 return TokError("unexpected token in '.incbin' directive");
3992 return TokError("unexpected token in '.if' directive");
3998 llvm_unreachable("unsupported directive");
4038 return TokError("unexpected token in '.ifb' directive");
4062 return TokError("unexpected token in '.ifc' directive");
4069 return TokError("unexpected token in '.ifc' directive");
4085 TokError("expected string parameter for '.ifeqs' directive");
4087 TokError("expected string parameter for '.ifnes' directive");
4097 TokError("expected comma after first string for '.ifeqs' directive");
4099 TokError("expected comma after first string for '.ifnes' directive");
4108 TokError("expected string parameter for '.ifeqs' directive");
4110 TokError("expected string parameter for '.ifnes' directive");
4174 return TokError("unexpected token in '.elseif' directive");
4188 return TokError("unexpected token in '.else' directive");
4212 return TokError("unexpected token in '.end' directive");
4236 StringRef Message = ".error directive invoked in source file";
4262 StringRef Message = ".warning directive invoked in source file";
4282 return TokError("unexpected token in '.endif' directive");
4438 TokError("unexpected token in '.endr' directive");
4489 return Error(CountLoc, "unexpected token in '" + Dir + "' directive");
4496 return TokError("unexpected token in '" + Dir + "' directive");
4526 return TokError("expected identifier in '.irp' directive");
4529 return TokError("expected comma in '.irp' directive");
4568 return TokError("expected identifier in '.irpc' directive");
4571 return TokError("expected comma in '.irpc' directive");
4580 return TokError("unexpected token in '.irpc' directive");
4613 return TokError("unmatched '.endr' directive");
4634 return Error(ExprLoc, "literal value out of range for directive");