Home | History | Annotate | Download | only in MCParser

Lines Matching refs:IDVal

211   bool ParseDirectiveAscii(StringRef IDVal, bool ZeroTerminated);
217 bool ParseDirectiveSet(StringRef IDVal, bool allow_redef); // ".set", ".equ", ".equiv"
645 StringRef IDVal = getTok().getString();
646 if (IDVal == "f" || IDVal == "b"){
648 IDVal == "f" ? 1 : 0);
651 if(IDVal == "b" && Sym->isUndefined())
955 StringRef IDVal;
967 IDVal = "";
970 IDVal = getTok().getString();
981 IDVal = ".";
983 } else if (ParseIdentifier(IDVal)) {
986 IDVal = "";
993 if (IDVal == ".if")
995 if (IDVal == ".ifdef")
997 if (IDVal == ".ifndef" || IDVal == ".ifnotdef")
999 if (IDVal == ".elseif")
1001 if (IDVal == ".else")
1003 if (IDVal == ".endif")
1023 if (IDVal == ".")
1033 Sym = getContext().GetOrCreateSymbol(IDVal);
1057 return ParseAssignment(IDVal, true);
1065 if (const Macro *M = MacroMap.lookup(IDVal))
1066 return HandleMacroEntry(IDVal, IDLoc, M);
1069 if (IDVal[0] == '.' && IDVal != ".") {
1071 if (IDVal == ".set" || IDVal == ".equ")
1072 return ParseDirectiveSet(IDVal, true);
1073 if (IDVal == ".equiv")
1074 return ParseDirectiveSet(IDVal, false);
1078 if (IDVal == ".ascii")
1079 return ParseDirectiveAscii(IDVal, false);
1080 if (IDVal == ".asciz" || IDVal == ".string")
1081 return ParseDirectiveAscii(IDVal, true);
1083 if (IDVal == ".byte")
1085 if (IDVal == ".short")
1087 if (IDVal == ".value")
1089 if (IDVal == ".2byte")
1091 if (IDVal == ".long")
1093 if (IDVal == ".int")
1095 if (IDVal == ".4byte")
1097 if (IDVal == ".quad")
1099 if (IDVal == ".8byte")
1101 if (IDVal == ".single" || IDVal == ".float")
1103 if (IDVal == ".double")
1106 if (IDVal == ".align") {
1110 if (IDVal == ".align32") {
1114 if (IDVal == ".balign")
1116 if (IDVal == ".balignw")
1118 if (IDVal == ".balignl")
1120 if (IDVal == ".p2align")
1122 if (IDVal == ".p2alignw")
1124 if (IDVal == ".p2alignl")
1127 if (IDVal == ".org")
1130 if (IDVal == ".fill")
1132 if (IDVal == ".space" || IDVal == ".skip")
1134 if (IDVal == ".zero")
1139 if (IDVal == ".globl" || IDVal == ".global")
1141 if (IDVal == ".indirect_symbol")
1143 if (IDVal == ".lazy_reference")
1145 if (IDVal == ".no_dead_strip")
1147 if (IDVal == ".symbol_resolver")
1149 if (IDVal == ".private_extern")
1151 if (IDVal == ".reference")
1153 if (IDVal == ".weak_definition")
1155 if (IDVal == ".weak_reference")
1157 if (IDVal == ".weak_def_can_be_hidden")
1160 if (IDVal == ".comm" || IDVal == ".common")
1162 if (IDVal == ".lcomm")
1165 if (IDVal == ".abort")
1167 if (IDVal == ".include")
1170 if (IDVal == ".code16")
1171 return TokError(Twine(IDVal) + " not supported yet");
1175 DirectiveMap.lookup(IDVal);
1177 return (*Handler.second)(Handler.first, IDVal, IDLoc);
1192 for (unsigned i = 0, e = IDVal.size(); i != e; ++i)
1193 Opcode.push_back(tolower(IDVal[i]));
1611 bool AsmParser::ParseDirectiveSet(StringRef IDVal, bool allow_redef) {
1615 return TokError("expected identifier after '" + Twine(IDVal) + "'");
1618 return TokError("unexpected token in '" + Twine(IDVal) + "'");
1684 bool AsmParser::ParseDirectiveAscii(StringRef IDVal, bool ZeroTerminated) {
1690 return TokError("expected string in '" + Twine(IDVal) + "' directive");
1706 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
1774 StringRef IDVal = getTok().getString();
1776 if (!IDVal.compare_lower("infinity") || !IDVal.compare_lower("inf"))
1778 else if (!IDVal.compare_lower("nan"))
1782 } else if (Value.convertFromString(IDVal, APFloat::rmNearestTiesToEven) ==
2675 bool GenericAsmParser::ParseDirectiveCFIPersonalityOrLsda(StringRef IDVal,
2696 if (IDVal == ".cfi_personality")
2699 assert(IDVal == ".cfi_lsda");
2707 bool GenericAsmParser::ParseDirectiveCFIRememberState(StringRef IDVal,
2715 bool GenericAsmParser::ParseDirectiveCFIRestoreState(StringRef IDVal,
2723 bool GenericAsmParser::ParseDirectiveCFISameValue(StringRef IDVal,