Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DX86.cpp147 for (const auto &Feature : FeaturesVec) { in initFeatureMap() local
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).starts_with("+avx512")) { in initFeatureMap()
[all …]
H A DWebAssembly.cpp46 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
47 return llvm::StringSwitch<bool>(Feature) in hasFeature()
182 for (const auto &Feature : Features) { in handleTargetFeatures() local
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 == "+extended-const") { in handleTargetFeatures()
[all …]
H A DAArch64.cpp717 for (auto &Feature : Features) in validateCpuSupports() local
718 if (!llvm::AArch64::parseFMVExtension(Feature.trim()).has_value()) in validateCpuSupports()
723 bool AArch64TargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
724 return llvm::StringSwitch<bool>(Feature) in hasFeature()
813 for (const auto &Feature : Features) { in handleTargetFeatures() local
814 if (Feature == "-fp-armv8") in handleTargetFeatures()
816 if (Feature == "-neon") in handleTargetFeatures()
818 if (Feature == "-sve") in handleTargetFeatures()
821 if (Feature == "+neon" || Feature == "+fp-armv8") in handleTargetFeatures()
823 if (Feature == "+jscvt") { in handleTargetFeatures()
[all …]
H A DMips.h202 bool hasFeature(StringRef Feature) const override;
329 for (const auto &Feature : Features) { in handleTargetFeatures() local
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 == "+dsp") in handleTargetFeatures()
346 else if (Feature == "+dspr2") in handleTargetFeatures()
[all …]
H A DARM.cpp470 for (auto Feature : TargetFeatures) in initFeatureMap() local
471 if (Feature[0] == '+') in initFeatureMap()
472 Features[Feature.drop_front(1)] = true; in initFeatureMap()
484 for (const auto &Feature : FeaturesVec) { in initFeatureMap() local
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() local
530 if (Feature == "+soft-float") { 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 DPPC.cpp36 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 == "+htm") { in handleTargetFeatures()
[all …]
H A DLoongArch.cpp280 bool LoongArchTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
283 return llvm::StringSwitch<bool>(Feature) in hasFeature()
300 for (const auto &Feature : Features) { in handleTargetFeatures() local
301 if (Feature == "+d" || Feature == "+f") { in handleTargetFeatures()
304 if (Feature == "+d") { in handleTargetFeatures()
307 } else if (Feature == "+lsx") in handleTargetFeatures()
309 else if (Feature == "+lasx") in handleTargetFeatures()
311 else if (Feature == "-ual") in handleTargetFeatures()
313 else if (Feature == "+frecipe") in handleTargetFeatures()
H A DRISCV.cpp265 auto IsNonISAExtFeature = [](StringRef Feature) { in initFeatureMap() argument
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() local
418 Feature = Feature.trim(); in parseTargetAttr()
419 StringRef AttrString = Feature.split("=").second.trim(); in parseTargetAttr()
421 if (Feature.starts_with("arch=")) { in parseTargetAttr()
[all …]
H A DSystemZ.h172 for (const auto &Feature : Features) { in handleTargetFeatures() local
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;
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.cpp43 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 { in hasFeature()
167 return llvm::StringSwitch<bool>(Feature) in hasFeature()
H A DLanai.cpp53 bool LanaiTargetInfo::hasFeature(StringRef Feature) const { in hasFeature()
54 return llvm::StringSwitch<bool>(Feature).Case("lanai", true).Default(false); in hasFeature()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInlineModelFeatureMaps.h82 constexpr bool isHeuristicInlineCostFeature(InlineCostFeatureIndex Feature) { in isHeuristicInlineCostFeature() argument
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 != InlineCostFeatureIndex::threshold; in isHeuristicInlineCostFeature()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp59 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument
61 assert(SubtargetFeatures::hasFlag(Feature) && 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()
119 for (auto &Feature : FeatTable) in Help() local
120 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc); in Help()
196 for (const std::string &Feature : Features.getFeatures()) { in getFeatures() local
198 if (Feature == "+help") in getFeatures()
200 else if (Feature == "+cpuhelp") in getFeatures()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DSubtargetFeature.h201 static bool hasFlag(StringRef Feature) {
202 assert(!Feature.empty() && "Empty string");
204 char Ch = Feature[0];
210 static StringRef StripFlag(StringRef Feature) { in hasFlag()
211 return hasFlag(Feature) ? Feature.substr(1) : Feature; in hasFlag()
215 static inline bool isEnabled(StringRef Feature) {
216 assert(!Feature.empty() && "Empty string");
218 char Ch = Feature[ in StripFlag()
208 hasFlag(StringRef Feature) hasFlag() argument
217 StripFlag(StringRef Feature) StripFlag() argument
222 isEnabled(StringRef Feature) isEnabled() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURemoveIncompatibleFunctions.cpp75 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/contrib/llvm-project/llvm/utils/TableGen/
H A DRISCVTargetDefEmitter.cpp102 for (auto *Feature : Features) { in printMArch() local
103 StringRef FeatureName = getExtensionName(Feature); in printMArch()
104 if (Feature->isSubClassOf("RISCVExtension")) { in printMArch()
105 unsigned Major = Feature->getValueAsInt("MajorVersion"); in printMArch()
106 unsigned Minor = Feature->getValueAsInt("MinorVersion"); in printMArch()
177 bool FastScalarUnalignedAccess = any_of(Features, [&](auto &Feature) { in emitRISCVProcs() argument
178 return Feature->getValueAsString("Name") == "unaligned-scalar-mem"; in emitRISCVProcs()
181 bool FastVectorUnalignedAccess = any_of(Features, [&](auto &Feature) { in emitRISCVProcs() argument
182 return Feature->getValueAsString("Name") == "unaligned-vector-mem"; in emitRISCVProcs()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp67 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()
125 isPlatformEnvironment(Target, Feature)); in hasFeature()
127 HasFeature = llvm::is_contained(LangOpts.ModuleFeatures, Feature); in hasFeature()
[all …]
H A DTargetInfo.cpp557 for (auto &Feature : AttrFeatures) { in parseTargetAttr() local
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.split("=").second.trim(); in parseTargetAttr()
584 } else if (Feature.starts_with("no-")) in parseTargetAttr()
[all …]
/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()
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DCSKYTargetParser.cpp163 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/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp31 for (const auto &Feature : llvm::sys::getHostCPUFeatures()) in detectHost() local
32 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second); in detectHost()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.cpp126 for (auto Feature : RISCVFeatureKV) { in parseFeatureBits() local
127 if (FeatureBits[Feature.Value] && in parseFeatureBits()
128 llvm::RISCVISAInfo::isSupportedExtensionFeature(Feature.Key)) in parseFeatureBits()
129 FeatureVector.push_back(std::string("+") + Feature.Key); in parseFeatureBits()

123456