Lines Matching refs:Name
328 StringRef Name = F; in initFeatureMap() local
330 bool Enabled = Name[0] == '+'; in initFeatureMap()
331 setFeatureEnabled(Features, Name.substr(1), Enabled); in initFeatureMap()
339 static StringRef removeGCCRegisterPrefix(StringRef Name) { in removeGCCRegisterPrefix() argument
340 if (Name[0] == '%' || Name[0] == '#') in removeGCCRegisterPrefix()
341 Name = Name.substr(1); in removeGCCRegisterPrefix()
343 return Name; in removeGCCRegisterPrefix()
349 bool TargetInfo::isValidClobber(StringRef Name) const { in isValidClobber()
350 return (isValidGCCRegisterName(Name) || in isValidClobber()
351 Name == "memory" || Name == "cc"); in isValidClobber()
357 bool TargetInfo::isValidGCCRegisterName(StringRef Name) const { in isValidGCCRegisterName()
358 if (Name.empty()) in isValidGCCRegisterName()
362 Name = removeGCCRegisterPrefix(Name); in isValidGCCRegisterName()
363 if (Name.empty()) in isValidGCCRegisterName()
369 if (isDigit(Name[0])) { in isValidGCCRegisterName()
371 if (!Name.getAsInteger(0, n)) in isValidGCCRegisterName()
376 if (std::find(Names.begin(), Names.end(), Name) != Names.end()) in isValidGCCRegisterName()
386 if (AN == Name && ARN.RegNum < Names.size()) in isValidGCCRegisterName()
395 if (A == Name) in isValidGCCRegisterName()
403 TargetInfo::getNormalizedGCCRegisterName(StringRef Name) const { in getNormalizedGCCRegisterName()
404 assert(isValidGCCRegisterName(Name) && "Invalid register passed in"); in getNormalizedGCCRegisterName()
407 Name = removeGCCRegisterPrefix(Name); in getNormalizedGCCRegisterName()
412 if (isDigit(Name[0])) { in getNormalizedGCCRegisterName()
414 if (!Name.getAsInteger(0, n)) { in getNormalizedGCCRegisterName()
427 if (AN == Name && ARN.RegNum < Names.size()) in getNormalizedGCCRegisterName()
428 return Name; in getNormalizedGCCRegisterName()
436 if (A == Name) in getNormalizedGCCRegisterName()
440 return Name; in getNormalizedGCCRegisterName()
444 const char *Name = Info.getConstraintStr().c_str(); in validateOutputConstraint() local
446 if (*Name != '=' && *Name != '+') in validateOutputConstraint()
449 if (*Name == '+') in validateOutputConstraint()
452 Name++; in validateOutputConstraint()
453 while (*Name) { in validateOutputConstraint()
454 switch (*Name) { in validateOutputConstraint()
456 if (!validateAsmConstraint(Name, Info)) { in validateOutputConstraint()
486 if (Name[1] == '=' || Name[1] == '+') in validateOutputConstraint()
487 Name++; in validateOutputConstraint()
490 while (Name[1] && Name[1] != ',') in validateOutputConstraint()
491 Name++; in validateOutputConstraint()
499 Name++; in validateOutputConstraint()
512 bool TargetInfo::resolveSymbolicName(const char *&Name, in resolveSymbolicName() argument
515 assert(*Name == '[' && "Symbolic name did not start with '['"); in resolveSymbolicName()
516 Name++; in resolveSymbolicName()
517 const char *Start = Name; in resolveSymbolicName()
518 while (*Name && *Name != ']') in resolveSymbolicName()
519 Name++; in resolveSymbolicName()
521 if (!*Name) { in resolveSymbolicName()
526 std::string SymbolicName(Start, Name - Start); in resolveSymbolicName()
538 const char *Name = Info.ConstraintStr.c_str(); in validateInputConstraint() local
540 if (!*Name) in validateInputConstraint()
543 while (*Name) { in validateInputConstraint()
544 switch (*Name) { in validateInputConstraint()
547 if (*Name >= '0' && *Name <= '9') { in validateInputConstraint()
548 const char *DigitStart = Name; in validateInputConstraint()
549 while (Name[1] >= '0' && Name[1] <= '9') in validateInputConstraint()
550 Name++; in validateInputConstraint()
551 const char *DigitEnd = Name; in validateInputConstraint()
572 } else if (!validateAsmConstraint(Name, Info)) { in validateInputConstraint()
581 if (!resolveSymbolicName(Name, OutputConstraints, Index)) in validateInputConstraint()
610 if (!validateAsmConstraint(Name, Info)) in validateInputConstraint()
635 while (Name[1] && Name[1] != ',') in validateInputConstraint()
636 Name++; in validateInputConstraint()
644 Name++; in validateInputConstraint()