Lines Matching defs:ExtName

195 findDefaultVersion(StringRef ExtName) {
200 auto I = llvm::lower_bound(ExtInfo, ExtName, LessExtName());
202 if (I == ExtInfo.end() || I->Name != ExtName)
290 for (const auto &[ExtName, _] : Exts) {
294 if (ExtName == "i")
296 if (IgnoreUnknown && !isSupportedExtension(ExtName))
299 if (isExperimentalExtension(ExtName)) {
300 Features.push_back((llvm::Twine("+experimental-") + ExtName).str());
302 Features.push_back((llvm::Twine("+") + ExtName).str());
325 static Error getErrorForInvalidExt(StringRef ExtName) {
326 if (ExtName.size() == 1) {
327 return getError("unsupported standard user-level extension '" + ExtName +
330 return getError("unsupported " + getExtensionTypeDesc(ExtName) + " '" +
331 ExtName + "'");
454 StringRef ExtName = Feature;
455 assert(ExtName.size() > 1 && (ExtName[0] == '+' || ExtName[0] == '-'));
456 bool Add = ExtName[0] == '+';
457 ExtName = ExtName.drop_front(1); // Drop '+' or '-'
458 bool Experimental = stripExperimentalPrefix(ExtName);
463 llvm::lower_bound(ExtensionInfos, ExtName, LessExtName());
468 ExtensionInfoIterator->Name != ExtName)
472 ISAInfo->Exts[ExtName.str()] = ExtensionInfoIterator->Version;
474 ISAInfo->Exts.erase(ExtName.str());
535 StringRef ExtName = Prefix.slice(0, VersionStart);
540 if ((ExtName[0] == 'z' || ExtName[0] == 's' || ExtName[0] == 'x') &&
541 (ExtName.size() == 1 || isDigit(ExtName[1])))
542 return getError("'" + Twine(ExtName[0]) +
547 ExtName.str(),
550 return getError("duplicate extension '" + ExtName + "'");
827 StringRef ExtName = WorkList.pop_back_val();
829 std::end(ImpliedExts), ExtName);
895 StringRef ExtName = Ext.first;
897 if (ExtName.consume_front("zve")) {
899 if (ExtName.consumeInteger(10, ZveELen))
902 if (ExtName == "f")
904 else if (ExtName == "d")
906 else if (ExtName != "x")
914 if (ExtName.consume_front("zvl")) {
916 if (ExtName.consumeInteger(10, ZvlLen))
919 if (ExtName != "b")
936 StringRef ExtName = Ext.first;
938 Arch << LS << ExtName;