Lines Matching refs:Name
536 StringRef Name = F; in initFeatureMap() local
537 if (Name.empty()) in initFeatureMap()
540 if (Name[0] != '+' && Name[0] != '-') in initFeatureMap()
541 Diags.Report(diag::warn_fe_backend_invalid_feature_flag) << Name; in initFeatureMap()
543 setFeatureEnabled(Features, Name.substr(1), Name[0] == '+'); in initFeatureMap()
621 static StringRef removeGCCRegisterPrefix(StringRef Name) { in removeGCCRegisterPrefix() argument
622 if (Name[0] == '%' || Name[0] == '#') in removeGCCRegisterPrefix()
623 Name = Name.substr(1); in removeGCCRegisterPrefix()
625 return Name; in removeGCCRegisterPrefix()
631 bool TargetInfo::isValidClobber(StringRef Name) const { in isValidClobber()
632 return (isValidGCCRegisterName(Name) || Name == "memory" || Name == "cc" || in isValidClobber()
633 Name == "unwind"); in isValidClobber()
639 bool TargetInfo::isValidGCCRegisterName(StringRef Name) const { in isValidGCCRegisterName()
640 if (Name.empty()) in isValidGCCRegisterName()
644 Name = removeGCCRegisterPrefix(Name); in isValidGCCRegisterName()
645 if (Name.empty()) in isValidGCCRegisterName()
651 if (isDigit(Name[0])) { in isValidGCCRegisterName()
653 if (!Name.getAsInteger(0, n)) in isValidGCCRegisterName()
658 if (llvm::is_contained(Names, Name)) in isValidGCCRegisterName()
668 if (AN == Name && ARN.RegNum < Names.size()) in isValidGCCRegisterName()
677 if (A == Name) in isValidGCCRegisterName()
684 StringRef TargetInfo::getNormalizedGCCRegisterName(StringRef Name, in getNormalizedGCCRegisterName() argument
686 assert(isValidGCCRegisterName(Name) && "Invalid register passed in"); in getNormalizedGCCRegisterName()
689 Name = removeGCCRegisterPrefix(Name); in getNormalizedGCCRegisterName()
694 if (isDigit(Name[0])) { in getNormalizedGCCRegisterName()
696 if (!Name.getAsInteger(0, n)) { in getNormalizedGCCRegisterName()
709 if (AN == Name && ARN.RegNum < Names.size()) in getNormalizedGCCRegisterName()
710 return ReturnCanonical ? Names[ARN.RegNum] : Name; in getNormalizedGCCRegisterName()
718 if (A == Name) in getNormalizedGCCRegisterName()
722 return Name; in getNormalizedGCCRegisterName()
726 const char *Name = Info.getConstraintStr().c_str(); in validateOutputConstraint() local
728 if (*Name != '=' && *Name != '+') in validateOutputConstraint()
731 if (*Name == '+') in validateOutputConstraint()
734 Name++; in validateOutputConstraint()
735 while (*Name) { in validateOutputConstraint()
736 switch (*Name) { in validateOutputConstraint()
738 if (!validateAsmConstraint(Name, Info)) { in validateOutputConstraint()
768 if (Name[1] == '=' || Name[1] == '+') in validateOutputConstraint()
769 Name++; in validateOutputConstraint()
772 while (Name[1] && Name[1] != ',') in validateOutputConstraint()
773 Name++; in validateOutputConstraint()
786 Name++; in validateOutputConstraint()
799 bool TargetInfo::resolveSymbolicName(const char *&Name, in resolveSymbolicName() argument
802 assert(*Name == '[' && "Symbolic name did not start with '['"); in resolveSymbolicName()
803 Name++; in resolveSymbolicName()
804 const char *Start = Name; in resolveSymbolicName()
805 while (*Name && *Name != ']') in resolveSymbolicName()
806 Name++; in resolveSymbolicName()
808 if (!*Name) { in resolveSymbolicName()
813 std::string SymbolicName(Start, Name - Start); in resolveSymbolicName()
825 const char *Name = Info.ConstraintStr.c_str(); in validateInputConstraint() local
827 if (!*Name) in validateInputConstraint()
830 while (*Name) { in validateInputConstraint()
831 switch (*Name) { in validateInputConstraint()
834 if (*Name >= '0' && *Name <= '9') { in validateInputConstraint()
835 const char *DigitStart = Name; in validateInputConstraint()
836 while (Name[1] >= '0' && Name[1] <= '9') in validateInputConstraint()
837 Name++; in validateInputConstraint()
838 const char *DigitEnd = Name; in validateInputConstraint()
859 } else if (!validateAsmConstraint(Name, Info)) { in validateInputConstraint()
868 if (!resolveSymbolicName(Name, OutputConstraints, Index)) in validateInputConstraint()
899 if (!validateAsmConstraint(Name, Info)) in validateInputConstraint()
924 while (Name[1] && Name[1] != ',') in validateInputConstraint()
925 Name++; in validateInputConstraint()
933 Name++; in validateInputConstraint()