Lines Matching refs:Feature
1 //===--- ARM.cpp - Implement ARM target feature support -------------------===//
373 // Map the base architecture to an appropriate target feature, so we don't
391 for (auto Feature : TargetFeatures)
392 if (Feature[0] == '+')
393 Features[Feature.drop_front(1)] = true;
405 for (const auto &Feature : FeaturesVec) {
408 if (Feature == "+soft-float-abi")
412 if (Feature == "+arm")
414 else if (Feature == "+thumb")
417 FixedFeature = Feature;
446 for (const auto &Feature : Features) {
447 if (Feature == "+soft-float") {
449 } else if (Feature == "+vfp2sp" || Feature == "+vfp2") {
452 if (Feature == "+vfp2")
454 } else if (Feature == "+vfp3sp" || Feature == "+vfp3d16sp" ||
455 Feature == "+vfp3" || Feature == "+vfp3d16") {
458 if (Feature == "+vfp3" || Feature == "+vfp3d16")
460 } else if (Feature == "+vfp4sp" || Feature == "+vfp4d16sp" ||
461 Feature == "+vfp4" || Feature == "+vfp4d16") {
464 if (Feature == "+vfp4" || Feature == "+vfp4d16")
466 } else if (Feature == "+fp-armv8sp" || Feature == "+fp-armv8d16sp" ||
467 Feature == "+fp-armv8" || Feature == "+fp-armv8d16") {
470 if (Feature == "+fp-armv8" || Feature == "+fp-armv8d16")
472 } else if (Feature == "+neon") {
475 } else if (Feature == "+hwdiv") {
477 } else if (Feature == "+hwdiv-arm") {
479 } else if (Feature == "+crc") {
481 } else if (Feature == "+crypto") {
483 } else if (Feature == "+sha2") {
485 } else if (Feature == "+aes") {
487 } else if (Feature == "+dsp") {
489 } else if (Feature == "+fp64") {
491 } else if (Feature == "+8msecext") {
496 } else if (Feature == "+strict-align") {
498 } else if (Feature == "+fp16") {
500 } else if (Feature == "+fullfp16") {
502 } else if (Feature == "+dotprod") {
504 } else if (Feature == "+mve") {
506 } else if (Feature == "+mve.fp") {
511 } else if (Feature == "+i8mm") {
513 } else if (Feature.size() == strlen("+cdecp0") && Feature >= "+cdecp0" &&
514 Feature <= "+cdecp7") {
515 unsigned Coproc = Feature.back() - '0';
517 } else if (Feature == "+bf16") {
554 bool ARMTargetInfo::hasFeature(StringRef Feature) const {
555 return llvm::StringSwitch<bool>(Feature)
651 // feature macros for AES and SHA2
898 #define TARGET_HEADER_BUILTIN(ID, TYPE, ATTRS, HEADER, LANGS, FEATURE) \
899 {#ID, TYPE, ATTRS, HEADER, LANGS, FEATURE},