Lines Matching defs:Feature
314 bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
316 auto Result = llvm::StringSwitch<std::optional<bool>>(Feature)
327 return ISAInfo->hasExtension(Feature);
444 for (auto &Feature : AttrFeatures) {
445 Feature = Feature.trim();
446 StringRef AttrString = Feature.split("=").second.trim();
448 if (Feature.starts_with("arch=")) {
462 } else if (Feature.starts_with("cpu=")) {
476 } else if (Feature.starts_with("tune=")) {
481 } else if (Feature.starts_with("priority")) {
483 } else if (Feature.starts_with("+")) {
486 handleArchExtension(Feature, Ret.Features);
496 for (StringRef Feature : Features) {
497 auto [LHS, RHS] = Feature.rsplit(';');
499 Feature = LHS;
501 Feature = RHS;
505 if (!Feature.getAsInteger(0, Priority))
523 bool RISCVTargetInfo::validateCpuSupports(StringRef Feature) const {
526 return -1 != llvm::RISCVISAInfo::getRISCVFeaturesBitsInfo(Feature).second;