| /freebsd-src/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | X86.cpp | 147 for (const auto &Feature : FeaturesVec) { in initFeatureMap() 149 if (Feature == "+general-regs-only") { in initFeatureMap() 156 if (Feature.substr(1, 6) == "avx10.") { in initFeatureMap() 157 if (Feature[0] == '+') { in initFeatureMap() 159 if (StringRef(Feature).ends_with("512")) in initFeatureMap() 161 LastAVX10 = Feature; in initFeatureMap() 162 } else if (HasAVX10 && Feature == "-avx10.1-256") { in initFeatureMap() 165 } else if (HasAVX10_512 && Feature == "-avx10.1-512") { in initFeatureMap() 169 UpdatedAVX10FeaturesVec.push_back(Feature); in initFeatureMap() 171 } else if (!HasAVX512F && StringRef(Feature) in initFeatureMap() 130 for (const auto &Feature : FeaturesVec) { initFeatureMap() local 240 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | WebAssembly.cpp | 46 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 47 return llvm::StringSwitch<bool>(Feature) in hasFeature() 182 for (const auto &Feature : Features) { in handleTargetFeatures() 183 if (Feature == "+atomics") { in handleTargetFeatures() 187 if (Feature == "-atomics") { in handleTargetFeatures() 191 if (Feature == "+bulk-memory") { in handleTargetFeatures() 195 if (Feature == "-bulk-memory") { in handleTargetFeatures() 199 if (Feature == "+exception-handling") { in handleTargetFeatures() 203 if (Feature == "-exception-handling") { in handleTargetFeatures() 207 if (Feature in handleTargetFeatures() 170 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | AArch64.cpp | 717 for (auto &Feature : Features) in hasFeature() 718 if (!llvm::AArch64::parseFMVExtension(Feature.trim()).has_value()) 723 bool AArch64TargetInfo::hasFeature(StringRef Feature) const { in setFeatureEnabled() 724 return llvm::StringSwitch<bool>(Feature) in setFeatureEnabled() 813 for (const auto &Feature : Features) { in handleTargetFeatures() 814 if (Feature == "-fp-armv8") in handleTargetFeatures() 816 if (Feature == "-neon") in handleTargetFeatures() 818 if (Feature == "-sve") in handleTargetFeatures() 821 if (Feature == "+neon" || Feature in handleTargetFeatures() 750 for (const auto &Feature : Features) { handleTargetFeatures() local 996 for (const auto &Feature : Features) { handleTargetFeatures() local 1039 for (const auto &Feature : FeaturesVec) initFeatureMap() local 1049 for (const auto &Feature : FeaturesVec) initFeatureMap() local 1082 for (StringRef Feature : SplitFeatures) { parseTargetAttr() local 1096 for (auto &Feature : AttrFeatures) { parseTargetAttr() local [all...] |
| H A D | Mips.h | 202 bool hasFeature(StringRef Feature) const override; 329 for (const auto &Feature : Features) { in handleTargetFeatures() 330 if (Feature == "+single-float") in handleTargetFeatures() 332 else if (Feature == "+soft-float") in handleTargetFeatures() 334 else if (Feature == "+mips16") in handleTargetFeatures() 336 else if (Feature == "+micromips") in handleTargetFeatures() 338 else if (Feature == "+mips32r6" || Feature == "+mips64r6") in handleTargetFeatures() 342 else if (Feature == "+strict-align") in handleTargetFeatures() 344 else if (Feature in handleTargetFeatures() 322 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | CSKY.cpp | 99 bool CSKYTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 100 return llvm::StringSwitch<bool>(Feature) in hasFeature() 116 for (const auto &Feature : Features) { in handleTargetFeatures() local 117 if (Feature == "+hard-float") in handleTargetFeatures() 119 if (Feature == "+hard-float-abi") in handleTargetFeatures() 121 if (Feature == "+fpuv2_sf") in handleTargetFeatures() 123 if (Feature == "+fpuv2_df") in handleTargetFeatures() 125 if (Feature == "+fpuv3_sf") in handleTargetFeatures() 127 if (Feature == "+fpuv3_df") in handleTargetFeatures() 129 if (Feature in handleTargetFeatures() [all...] |
| H A D | ARM.cpp | 470 for (auto Feature : TargetFeatures) in initFeatureMap() 471 if (Feature[0] == '+') in initFeatureMap() 472 Features[Feature.drop_front(1)] = true; in initFeatureMap() 484 for (const auto &Feature : FeaturesVec) { in initFeatureMap() 487 if (Feature == "+soft-float-abi") in initFeatureMap() 491 if (Feature == "+arm") in initFeatureMap() 493 else if (Feature == "+thumb") in initFeatureMap() 496 FixedFeature = Feature; in initFeatureMap() 529 for (const auto &Feature : Features) { in handleTargetFeatures() 530 if (Feature in handleTargetFeatures() 469 for (auto Feature : TargetFeatures) initFeatureMap() local 483 for (const auto &Feature : FeaturesVec) { initFeatureMap() local 528 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | PPC.cpp | 36 for (const auto &Feature : Features) { in handleTargetFeatures() local 37 if (Feature == "+altivec") { in handleTargetFeatures() 39 } else if (Feature == "+vsx") { in handleTargetFeatures() 41 } else if (Feature == "+crbits") { in handleTargetFeatures() 43 } else if (Feature == "+bpermd") { in handleTargetFeatures() 45 } else if (Feature == "+extdiv") { in handleTargetFeatures() 47 } else if (Feature == "+power8-vector") { in handleTargetFeatures() 49 } else if (Feature == "+crypto") { in handleTargetFeatures() 51 } else if (Feature == "+direct-move") { in handleTargetFeatures() 53 } else if (Feature in handleTargetFeatures() 463 __anond76297890102(StringRef Feature, StringRef Option) ppcUserFeaturesCheck() argument [all...] |
| H A D | RISCV.cpp | 265 auto IsNonISAExtFeature = [](StringRef Feature) { in initFeatureMap() 266 assert(Feature.size() > 1 && (Feature[0] == '+' || Feature[0] == '-')); in initFeatureMap() 267 StringRef Ext = Feature.substr(1); // drop the +/- in initFeatureMap() 317 bool RISCVTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 319 auto Result = llvm::StringSwitch<std::optional<bool>>(Feature) in hasFeature() 330 return ISAInfo->hasExtension(Feature); in hasFeature() 417 for (auto &Feature : AttrFeatures) { in parseTargetAttr() 418 Feature in parseTargetAttr() 264 __anonad2336ed0102(StringRef Feature) initFeatureMap() argument 415 for (auto &Feature : AttrFeatures) { parseTargetAttr() local [all...] |
| H A D | LoongArch.cpp | 280 bool LoongArchTargetInfo::hasFeature(StringRef Feature) const { in handleTargetFeatures() 283 return llvm::StringSwitch<bool>(Feature) in handleTargetFeatures() 300 for (const auto &Feature : Features) { 301 if (Feature == "+d" || Feature == "+f") { 304 if (Feature == "+d") { 307 } else if (Feature == "+lsx") 309 else if (Feature == "+lasx") 311 else if (Feature == "-ual") 313 else if (Feature 277 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | SystemZ.h | 172 for (const auto &Feature : Features) { in handleTargetFeatures() 173 if (Feature == "+transactional-execution") in handleTargetFeatures() 175 else if (Feature == "+vector") in handleTargetFeatures() 177 else if (Feature == "+soft-float") in handleTargetFeatures() 179 else if (Feature == "+unaligned-symbols") in handleTargetFeatures() 195 bool hasFeature(StringRef Feature) const override; in checkCallingConvention() 166 for (const auto &Feature : Features) { handleTargetFeatures() local
|
| H A D | BPF.h | 50 bool hasFeature(StringRef Feature) const override { in hasFeature() argument 51 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris"; in hasFeature()
|
| H A D | NVPTX.cpp | 43 for (const StringRef Feature : Opts.FeaturesAsWritten) { in NVPTXTargetInfo() local 45 if (!Feature.starts_with("+ptx") || in NVPTXTargetInfo() 46 Feature.drop_front(4).getAsInteger(10, PTXV)) in NVPTXTargetInfo() 166 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const { 167 return llvm::StringSwitch<bool>(Feature) in getTargetDefines()
|
| H A D | Lanai.cpp | 53 bool LanaiTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 54 return llvm::StringSwitch<bool>(Feature).Case("lanai", true).Default(false); in hasFeature()
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InlineModelFeatureMaps.h | 82 constexpr bool isHeuristicInlineCostFeature(InlineCostFeatureIndex Feature) { in isHeuristicInlineCostFeature() 83 return Feature != InlineCostFeatureIndex::sroa_savings && in isHeuristicInlineCostFeature() 84 Feature != InlineCostFeatureIndex::is_multiple_blocks && in isHeuristicInlineCostFeature() 85 Feature != InlineCostFeatureIndex::dead_blocks && in isHeuristicInlineCostFeature() 86 Feature != InlineCostFeatureIndex::simplified_instructions && in isHeuristicInlineCostFeature() 87 Feature != InlineCostFeatureIndex::constant_args && in isHeuristicInlineCostFeature() 88 Feature != InlineCostFeatureIndex::constant_offset_ptr_args && in isHeuristicInlineCostFeature() 89 Feature != InlineCostFeatureIndex::nested_inlines && in isHeuristicInlineCostFeature() 90 Feature != InlineCostFeatureIndex::nested_inline_cost_estimate && in isHeuristicInlineCostFeature() 91 Feature ! in isHeuristicInlineCostFeature() 80 isHeuristicInlineCostFeature(InlineCostFeatureIndex Feature) isHeuristicInlineCostFeature() argument 139 inlineCostFeatureToMlFeature(InlineCostFeatureIndex Feature) inlineCostFeatureToMlFeature() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 59 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument 61 assert(SubtargetFeatures::hasFlag(Feature) && in ApplyFeatureFlag() 62 "Feature flags should start with '+' or '-'"); in ApplyFeatureFlag() 66 Find(SubtargetFeatures::StripFlag(Feature), FeatureTable); in ApplyFeatureFlag() 70 if (SubtargetFeatures::isEnabled(Feature)) { in ApplyFeatureFlag() 82 errs() << "'" << Feature << "' is not a recognized feature for this target" in ApplyFeatureFlag() 106 // Determine the length of the longest CPU and Feature entries. in Help() 117 // Print the Feature table. in Help() 119 for (auto &Feature : FeatTable) in Help() local 120 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature in Help() 196 for (const std::string &Feature : Features.getFeatures()) { getFeatures() local 268 ToggleFeature(StringRef Feature) ToggleFeature() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/TargetParser/ |
| H A D | SubtargetFeature.h | 201 static bool hasFlag(StringRef Feature) { in hasFlag() argument 202 assert(!Feature.empty() && "Empty string"); in hasFlag() 204 char Ch = Feature[0]; in hasFlag() 210 static StringRef StripFlag(StringRef Feature) { in StripFlag() argument 211 return hasFlag(Feature) ? Feature.substr(1) : Feature; in StripFlag() 215 static inline bool isEnabled(StringRef Feature) { in isEnabled() argument 216 assert(!Feature.empty() && "Empty string"); in isEnabled() 218 char Ch = Feature[0]; in isEnabled()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURemoveIncompatibleFunctions.cpp | 75 StringRef getFeatureName(unsigned Feature) { in getFeatureName() argument 77 if (Feature == KV.Value) in getFeatureName() 120 void reportFunctionRemoved(Function &F, unsigned Feature) { in reportFunctionRemoved() argument 129 << getFeatureName(Feature) in reportFunctionRemoved() 167 for (unsigned Feature : FeaturesToCheck) { in checkFunction() local 168 if (ST->hasFeature(Feature) && !GPUFeatureBits.test(Feature)) { in checkFunction() 169 reportFunctionRemoved(F, Feature); in checkFunction()
|
| /freebsd-src/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | RISCVTargetDefEmitter.cpp | 102 for (auto *Feature : Features) { 103 StringRef FeatureName = getExtensionName(Feature); 104 if (Feature->isSubClassOf("RISCVExtension")) { 105 unsigned Major = Feature->getValueAsInt("MajorVersion"); 106 unsigned Minor = Feature->getValueAsInt("MinorVersion"); 177 bool FastScalarUnalignedAccess = any_of(Features, [&](auto &Feature) { 178 return Feature->getValueAsString("Name") == "unaligned-scalar-mem"; 181 bool FastVectorUnalignedAccess = any_of(Features, [&](auto &Feature) { 182 return Feature->getValueAsString("Name") == "unaligned-vector-mem"; 33 for (auto *Feature : Rec.getValueAsListOfDefs("Features")) { getMArch() local 64 __anond84be4e40102(auto &Feature) EmitRISCVTargetDef() argument
|
| /freebsd-src/contrib/ldns/m4/ |
| H A D | ax_config_feature.m4 | 114 AC_MSG_NOTICE([Feature $1 is enabled]) 119 AC_MSG_NOTICE([Feature $1 is disabled]) 128 dnl Feature global 133 dnl Feature global 138 dnl Feature specific 143 dnl Feature specific 148 dnl Feature specific 153 dnl Feature specific
|
| /freebsd-src/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 557 for (auto &Feature : AttrFeatures) { in parseTargetAttr() 560 Feature = Feature.trim(); in parseTargetAttr() 565 if (Feature.starts_with("fpmath=")) in parseTargetAttr() 568 if (Feature.starts_with("branch-protection=")) { in parseTargetAttr() 569 Ret.BranchProtection = Feature.split('=').second.trim(); in parseTargetAttr() 574 if (Feature.starts_with("arch=")) { in parseTargetAttr() 578 Ret.CPU = Feature.split("=").second.trim(); in parseTargetAttr() 579 } else if (Feature.starts_with("tune=")) { in parseTargetAttr() 583 Ret.Tune = Feature in getCallingConvKind() 546 for (auto &Feature : AttrFeatures) { parseTargetAttr() local [all...] |
| H A D | Module.cpp | 67 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { in isPlatformEnvironment() argument 72 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment() 73 Env == Feature) in isPlatformEnvironment() 93 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment() 95 return PlatformEnv == Feature; in isPlatformEnvironment() 100 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument 102 bool HasFeature = llvm::StringSwitch<bool>(Feature) in hasFeature() 124 .Default(Target.hasFeature(Feature) || in hasFeature() 315 addRequirement(StringRef Feature,bool RequiredState,const LangOptions & LangOpts,const TargetInfo & Target) addRequirement() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/TargetParser/ |
| H A D | AArch64TargetParser.cpp | 167 << left_justify("Architecture Feature(s)", 55) in enable() 184 << " " << left_justify("Architecture Feature(s)", 55) in enable()
|
| H A D | CSKYTargetParser.cpp | 163 if (AE.Feature && ArchExt == AE.getName()) in getArchExtFeature() 164 return StringRef(Negated ? AE.NegFeature : AE.Feature); in getArchExtFeature() 176 if ((Extensions & AE.ID) == AE.ID && AE.Feature) in getExtensionFeatures() 177 Features.push_back(AE.Feature); in getExtensionFeatures()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCMacroFusion.cpp | 251 for (auto &Feature : FusionFeatures) { in shouldScheduleAdjacent() local 253 if (!Feature.isSupported()) in shouldScheduleAdjacent() 258 if (Feature.hasOp2(SecondMI.getOpcode())) { in shouldScheduleAdjacent() 265 if (!Feature.hasOp1(FirstMI->getOpcode())) in shouldScheduleAdjacent() 268 auto DepOpIdx = Feature.depOpIdx(); in shouldScheduleAdjacent() 277 if (checkOpConstraints(Feature.getKind(), *FirstMI, SecondMI)) in shouldScheduleAdjacent()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | JITTargetMachineBuilder.cpp | 31 for (const auto &Feature : llvm::sys::getHostCPUFeatures()) in detectHost() 32 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second); in detectHost() local
|