Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:Name

196     StringRef Name = SRE->getSymbol().getName();
198 if (Name == "lt") return 0;
199 if (Name == "gt") return 1;
200 if (Name == "eq") return 2;
201 if (Name == "so") return 3;
202 if (Name == "un") return 3;
204 if (Name == "cr0") return 0;
205 if (Name == "cr1") return 1;
206 if (Name == "cr2") return 2;
207 if (Name == "cr3") return 3;
208 if (Name == "cr4") return 4;
209 if (Name == "cr5") return 5;
210 if (Name == "cr6") return 6;
211 if (Name == "cr7") return 7;
283 /// @name Auto-generated Match Functions
305 bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
1233 StringRef Name = Tok.getString();
1235 if (Name.equals_lower("lr")) {
1239 } else if (Name.equals_lower("ctr")) {
1243 } else if (Name.equals_lower("vrsave")) {
1247 } else if (Name.startswith_lower("r") &&
1248 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) {
1251 } else if (Name.startswith_lower("f") &&
1252 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) {
1255 } else if (Name.startswith_lower("vs") &&
1256 !Name.substr(2).getAsInteger(10, IntVal) && IntVal < 64) {
1259 } else if (Name.startswith_lower("v") &&
1260 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) {
1263 } else if (Name.startswith_lower("q") &&
1264 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) {
1267 } else if (Name.startswith_lower("cr") &&
1268 !Name.substr(2).getAsInteger(10, IntVal) && IntVal < 8) {
1291 return Error(StartLoc, "invalid register name");
1522 return Error(S, "invalid register name");
1525 // Note that non-register-name identifiers from the compiler will begin
1528 // a register name fails.
1538 // Fall-through to process non-register-name identifiers as expression.
1589 return Error(S, "invalid register name");
1629 bool PPCAsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
1631 // The first operand is the token for the instruction name.
1633 // instruction name, to match what TableGen is doing.
1637 NewOpcode = Name;
1639 Name = NewOpcode;
1643 NewOpcode = Name;
1645 Name = NewOpcode;
1649 size_t Dot = Name.find('.');
1650 StringRef Mnemonic = Name.slice(0, Dot);
1651 if (!NewOpcode.empty()) // Underlying memory for Name is volatile.
1658 StringRef DotStr = Name.slice(Dot, StringRef::npos);
1659 if (!NewOpcode.empty()) // Underlying memory for Name is volatile.
1694 (Name == "dcbt" || Name == "dcbtst")) {
1877 StringRef Name;
1878 if (getParser().parseIdentifier(Name)) {
1882 MCSymbolELF *Sym = cast<MCSymbolELF>(getContext().getOrCreateSymbol(Name));