Home
last modified time | relevance | path

Searched refs:Feature (Results 1 – 25 of 162) sorted by relevance

1234567

/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DX86.cpp176 for (const auto &Feature : FeaturesVec) { in initFeatureMap() local
178 if (Feature == "+general-regs-only") { in initFeatureMap()
185 if (Feature.substr(1, 6) == "avx10.") { in initFeatureMap()
186 if (Feature[0] == '+') { in initFeatureMap()
188 if (StringRef(Feature).ends_with("512")) in initFeatureMap()
190 LastAVX10 = Feature; in initFeatureMap()
191 } else if (HasAVX10 && Feature == "-avx10.1-256") { in initFeatureMap()
194 } else if (HasAVX10_512 && Feature == "-avx10.1-512") { in initFeatureMap()
198 UpdatedAVX10FeaturesVec.push_back(Feature); in initFeatureMap()
200 } else if (!HasAVX512F && StringRef(Feature).starts_with("+avx512")) { in initFeatureMap()
[all …]
H A DWebAssembly.cpp53 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
54 return llvm::StringSwitch<bool>(Feature) in hasFeature()
212 for (const auto &Feature : Features) { in handleTargetFeatures() local
213 if (Feature == "+atomics") { in handleTargetFeatures()
217 if (Feature == "-atomics") { in handleTargetFeatures()
221 if (Feature == "+bulk-memory") { in handleTargetFeatures()
225 if (Feature == "-bulk-memory") { in handleTargetFeatures()
229 if (Feature == "+bulk-memory-opt") { in handleTargetFeatures()
233 if (Feature == "-bulk-memory-opt") { in handleTargetFeatures()
237 if (Feature == "+call-indirect-overlong") { in handleTargetFeatures()
[all …]
H A DAArch64.cpp804 for (auto &Feature : Features) in validateCpuSupports() local
805 if (!llvm::AArch64::parseFMVExtension(Feature.trim()).has_value()) in validateCpuSupports()
810 bool AArch64TargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
811 return llvm::StringSwitch<bool>(Feature) in hasFeature()
908 for (const auto &Feature : Features) { in handleTargetFeatures() local
909 if (Feature == "-fp-armv8") in handleTargetFeatures()
911 if (Feature == "-neon") in handleTargetFeatures()
913 if (Feature == "-sve") in handleTargetFeatures()
916 if (Feature == "+neon" || Feature == "+fp-armv8") in handleTargetFeatures()
918 if (Feature == "+jscvt") { in handleTargetFeatures()
[all …]
H A DMips.h203 bool hasFeature(StringRef Feature) const override;
330 for (const auto &Feature : Features) { in handleTargetFeatures() local
331 if (Feature == "+single-float") in handleTargetFeatures()
333 else if (Feature == "+soft-float") in handleTargetFeatures()
335 else if (Feature == "+mips16") in handleTargetFeatures()
337 else if (Feature == "+micromips") in handleTargetFeatures()
339 else if (Feature == "+mips32r6" || Feature == "+mips64r6") in handleTargetFeatures()
343 else if (Feature == "+strict-align") in handleTargetFeatures()
345 else if (Feature == "+dsp") in handleTargetFeatures()
347 else if (Feature == "+dspr2") in handleTargetFeatures()
[all …]
H A DCSKY.cpp99 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 == "+vdspv2") in handleTargetFeatures()
[all …]
H A DLoongArch.cpp350 bool LoongArchTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
353 return llvm::StringSwitch<bool>(Feature) in hasFeature()
374 for (const auto &Feature : Features) { in handleTargetFeatures() local
375 if (Feature == "+d" || Feature == "+f") { in handleTargetFeatures()
378 if (Feature == "+d") { in handleTargetFeatures()
381 } else if (Feature == "+lsx") in handleTargetFeatures()
383 else if (Feature == "+lasx") in handleTargetFeatures()
385 else if (Feature == "-ual") in handleTargetFeatures()
387 else if (Feature == "+frecipe") in handleTargetFeatures()
389 else if (Feature == "+lam-bh") in handleTargetFeatures()
[all …]
H A DARM.cpp472 for (auto Feature : TargetFeatures) in initFeatureMap() local
473 if (Feature[0] == '+') in initFeatureMap()
474 Features[Feature.drop_front(1)] = true; in initFeatureMap()
486 for (const auto &Feature : FeaturesVec) { in initFeatureMap() local
489 if (Feature == "+soft-float-abi") in initFeatureMap()
493 if (Feature == "+arm") in initFeatureMap()
495 else if (Feature == "+thumb") in initFeatureMap()
498 FixedFeature = Feature; in initFeatureMap()
531 for (const auto &Feature : Features) { in handleTargetFeatures() local
532 if (Feature == "+soft-float") { in handleTargetFeatures()
[all …]
H A DPPC.cpp45 for (const auto &Feature : Features) { in handleTargetFeatures() local
46 if (Feature == "+altivec") { in handleTargetFeatures()
48 } else if (Feature == "+vsx") { in handleTargetFeatures()
50 } else if (Feature == "+power8-vector") { in handleTargetFeatures()
52 } else if (Feature == "+crypto") { in handleTargetFeatures()
54 } else if (Feature == "+htm") { in handleTargetFeatures()
56 } else if (Feature == "+float128") { in handleTargetFeatures()
58 } else if (Feature == "+power9-vector") { in handleTargetFeatures()
60 } else if (Feature == "+power10-vector") { in handleTargetFeatures()
62 } else if (Feature == "+pcrelative-memops") { in handleTargetFeatures()
[all …]
H A DRISCV.cpp393 bool RISCVTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
395 auto Result = llvm::StringSwitch<std::optional<bool>>(Feature) in hasFeature()
406 return ISAInfo->hasExtension(Feature); in hasFeature()
523 for (auto &Feature : AttrFeatures) { in parseTargetAttr() local
524 Feature = Feature.trim(); in parseTargetAttr()
525 StringRef AttrString = Feature.split("=").second.trim(); in parseTargetAttr()
527 if (Feature.starts_with("arch=")) { in parseTargetAttr()
541 } else if (Feature.starts_with("cpu=")) { in parseTargetAttr()
555 } else if (Feature.starts_with("tune=")) { in parseTargetAttr()
560 } else if (Feature.starts_with("priority")) { in parseTargetAttr()
[all …]
H A DSystemZ.h219 for (const auto &Feature : Features) { in handleTargetFeatures() local
220 if (Feature == "+transactional-execution") in handleTargetFeatures()
222 else if (Feature == "+vector") in handleTargetFeatures()
224 else if (Feature == "+soft-float") in handleTargetFeatures()
226 else if (Feature == "+unaligned-symbols") in handleTargetFeatures()
242 bool hasFeature(StringRef Feature) const override;
H A DBPF.h50 bool hasFeature(StringRef Feature) const override { in hasFeature() argument
51 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris"; in hasFeature()
H A DNVPTX.cpp46 for (const StringRef Feature : Opts.FeaturesAsWritten) { in NVPTXTargetInfo() local
48 if (!Feature.starts_with("+ptx") || in NVPTXTargetInfo()
49 Feature.drop_front(4).getAsInteger(10, PTXV)) in NVPTXTargetInfo()
171 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
172 return llvm::StringSwitch<bool>(Feature) in hasFeature()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineModelFeatureMaps.h83 constexpr bool isHeuristicInlineCostFeature(InlineCostFeatureIndex Feature) { in isHeuristicInlineCostFeature() argument
84 return Feature != InlineCostFeatureIndex::sroa_savings && in isHeuristicInlineCostFeature()
85 Feature != InlineCostFeatureIndex::is_multiple_blocks && in isHeuristicInlineCostFeature()
86 Feature != InlineCostFeatureIndex::dead_blocks && in isHeuristicInlineCostFeature()
87 Feature != InlineCostFeatureIndex::simplified_instructions && in isHeuristicInlineCostFeature()
88 Feature != InlineCostFeatureIndex::constant_args && in isHeuristicInlineCostFeature()
89 Feature != InlineCostFeatureIndex::constant_offset_ptr_args && in isHeuristicInlineCostFeature()
90 Feature != InlineCostFeatureIndex::nested_inlines && in isHeuristicInlineCostFeature()
91 Feature != InlineCostFeatureIndex::nested_inline_cost_estimate && in isHeuristicInlineCostFeature()
92 Feature != InlineCostFeatureIndex::threshold; in isHeuristicInlineCostFeature()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp60 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument
62 assert(SubtargetFeatures::hasFlag(Feature) && in ApplyFeatureFlag()
67 Find(SubtargetFeatures::StripFlag(Feature), FeatureTable); in ApplyFeatureFlag()
71 if (SubtargetFeatures::isEnabled(Feature)) { in ApplyFeatureFlag()
83 errs() << "'" << Feature << "' is not a recognized feature for this target" in ApplyFeatureFlag()
132 for (auto &Feature : FeatTable) in Help() local
133 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc); in Help()
217 for (const std::string &Feature : Features.getFeatures()) { in getFeatures() local
219 if (Feature == "+help") in getFeatures()
221 else if (Feature == "+cpuhelp") in getFeatures()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DSubtargetFeature.h202 static bool hasFlag(StringRef Feature) { in hasFlag() argument
203 assert(!Feature.empty() && "Empty string"); in hasFlag()
205 char Ch = Feature[0]; in hasFlag()
211 static StringRef StripFlag(StringRef Feature) { in StripFlag() argument
212 return hasFlag(Feature) ? Feature.substr(1) : Feature; in StripFlag()
216 static inline bool isEnabled(StringRef Feature) { in isEnabled() argument
217 assert(!Feature.empty() && "Empty string"); in isEnabled()
219 char Ch = Feature[0]; in isEnabled()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURemoveIncompatibleFunctions.cpp88 StringRef getFeatureName(unsigned Feature) { in getFeatureName() argument
90 if (Feature == KV.Value) in getFeatureName()
133 void reportFunctionRemoved(Function &F, unsigned Feature) { in reportFunctionRemoved() argument
142 << getFeatureName(Feature) in reportFunctionRemoved()
189 for (unsigned Feature : FeaturesToCheck) { in checkFunction() local
190 if (ST->hasFeature(Feature) && !GPUFeatureBits.test(Feature)) { in checkFunction()
191 reportFunctionRemoved(F, Feature); in checkFunction()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/
H A DRISCVTargetDefEmitter.cpp103 for (const Record *Feature : Features) { in printMArch() local
104 StringRef FeatureName = getExtensionName(Feature); in printMArch()
105 if (Feature->isSubClassOf("RISCVExtension")) { in printMArch()
106 unsigned Major = Feature->getValueAsInt("MajorVersion"); in printMArch()
107 unsigned Minor = Feature->getValueAsInt("MinorVersion"); in printMArch()
178 bool FastScalarUnalignedAccess = any_of(Features, [&](auto &Feature) { in emitRISCVProcs() argument
179 return Feature->getValueAsString("Name") == "unaligned-scalar-mem"; in emitRISCVProcs()
182 bool FastVectorUnalignedAccess = any_of(Features, [&](auto &Feature) { in emitRISCVProcs() argument
183 return Feature->getValueAsString("Name") == "unaligned-vector-mem"; in emitRISCVProcs()
H A DTargetFeaturesEmitter.cpp71 for (const Record *Feature : FeatureList) { in printFeatureMask() local
72 unsigned Bit = FeatureMap.lookup(Feature); in printFeatureMask()
105 for (const Record *Feature : FeatureList) { in printFeatureKeyValues() local
106 StringRef Name = Feature->getName(); in printFeatureKeyValues()
107 StringRef ValueName = Feature->getValueAsString("Name"); in printFeatureKeyValues()
112 ConstRecVec ImpliesList = Feature->getValueAsListOfDefs("Implies"); in printFeatureKeyValues()
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DLoongArchTargetParser.cpp38 bool LoongArch::isValidFeatureName(StringRef Feature) { in isValidFeatureName() argument
39 if (Feature.starts_with("+") || Feature.starts_with("-")) in isValidFeatureName()
44 if (CanonicalName == Feature) in isValidFeatureName()
H A DCSKYTargetParser.cpp164 if (AE.Feature && ArchExt == AE.getName()) in getArchExtFeature()
165 return StringRef(Negated ? AE.NegFeature : AE.Feature); in getArchExtFeature()
177 if ((Extensions & AE.ID) == AE.ID && AE.Feature) in getExtensionFeatures()
178 Features.push_back(AE.Feature); in getExtensionFeatures()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp62 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { in isPlatformEnvironment() argument
67 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment()
68 Env == Feature) in isPlatformEnvironment()
88 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment()
90 return PlatformEnv == Feature; in isPlatformEnvironment()
95 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
97 bool HasFeature = llvm::StringSwitch<bool>(Feature) in hasFeature()
119 .Default(Target.hasFeature(Feature) || in hasFeature()
120 isPlatformEnvironment(Target, Feature)); in hasFeature()
122 HasFeature = llvm::is_contained(LangOpts.ModuleFeatures, Feature); in hasFeature()
[all …]
H A DTargetInfo.cpp586 for (auto &Feature : AttrFeatures) { in parseTargetAttr() local
589 Feature = Feature.trim(); in parseTargetAttr()
594 if (Feature.starts_with("fpmath=")) in parseTargetAttr()
597 if (Feature.starts_with("branch-protection=")) { in parseTargetAttr()
598 Ret.BranchProtection = Feature.split('=').second.trim(); in parseTargetAttr()
603 if (Feature.starts_with("arch=")) { in parseTargetAttr()
607 Ret.CPU = Feature.split("=").second.trim(); in parseTargetAttr()
608 } else if (Feature.starts_with("tune=")) { in parseTargetAttr()
612 Ret.Tune = Feature.split("=").second.trim(); in parseTargetAttr()
613 } else if (Feature.starts_with("no-")) in parseTargetAttr()
[all …]
H A DCuda.cpp149 bool CudaFeatureEnabled(llvm::VersionTuple Version, CudaFeature Feature) { in CudaFeatureEnabled() argument
150 return CudaFeatureEnabled(ToCudaVersion(Version), Feature); in CudaFeatureEnabled()
153 bool CudaFeatureEnabled(CudaVersion Version, CudaFeature Feature) { in CudaFeatureEnabled() argument
154 switch (Feature) { in CudaFeatureEnabled()
/freebsd/contrib/ldns/m4/
H A Dax_config_feature.m4114 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/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMacroFusion.cpp251 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()

1234567