Searched refs:Feature (Results 1 - 25 of 76) sorted by relevance

1234

/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/Targets/
H A DWebAssembly.cpp46 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const {
47 return llvm::StringSwitch<bool>(Feature)
154 for (const auto &Feature : Features) {
155 if (Feature == "+simd128") {
159 if (Feature == "-simd128") {
163 if (Feature == "+unimplemented-simd128") {
167 if (Feature == "-unimplemented-simd128") {
171 if (Feature == "+nontrapping-fptoint") {
175 if (Feature == "-nontrapping-fptoint") {
179 if (Feature
[all...]
H A DRISCV.cpp141 bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
143 return llvm::StringSwitch<bool>(Feature)
159 for (const auto &Feature : Features) {
160 if (Feature == "+m")
162 else if (Feature == "+a")
164 else if (Feature == "+f")
166 else if (Feature == "+d")
168 else if (Feature == "+c")
170 else if (Feature == "+experimental-b")
H A DMips.h197 bool hasFeature(StringRef Feature) const override;
318 for (const auto &Feature : Features) {
319 if (Feature == "+single-float")
321 else if (Feature == "+soft-float")
323 else if (Feature == "+mips16")
325 else if (Feature == "+micromips")
327 else if (Feature == "+dsp")
329 else if (Feature == "+dspr2")
331 else if (Feature == "+msa")
333 else if (Feature
[all...]
H A DX86.cpp173 for (const auto &Feature : Features) {
174 if (Feature[0] != '+')
177 if (Feature == "+aes") {
179 } else if (Feature == "+vaes") {
181 } else if (Feature == "+pclmul") {
183 } else if (Feature == "+vpclmulqdq") {
185 } else if (Feature == "+lzcnt") {
187 } else if (Feature == "+rdrnd") {
189 } else if (Feature == "+fsgsbase") {
191 } else if (Feature
[all...]
H A DAArch64.cpp386 bool AArch64TargetInfo::hasFeature(StringRef Feature) const {
387 return Feature == "aarch64" || Feature == "arm64" || Feature == "arm" ||
388 (Feature == "neon" && (FPU & NeonMode)) ||
389 ((Feature == "sve" || Feature == "sve2" || Feature == "sve2-bitperm" ||
390 Feature == "sve2-aes" || Feature
[all...]
H A DPPC.cpp34 for (const auto &Feature : Features) {
35 if (Feature == "+altivec") {
37 } else if (Feature == "+vsx") {
39 } else if (Feature == "+bpermd") {
41 } else if (Feature == "+extdiv") {
43 } else if (Feature == "+power8-vector") {
45 } else if (Feature == "+crypto") {
47 } else if (Feature == "+direct-move") {
49 } else if (Feature == "+qpx") {
51 } else if (Feature
[all...]
H A DARM.cpp387 for (auto Feature : TargetFeatures)
388 if (Feature[0] == '+')
389 Features[Feature.drop_front(1)] = true;
401 for (const auto &Feature : FeaturesVec) {
404 if (Feature == "+soft-float-abi")
408 if (Feature == "+arm")
410 else if (Feature == "+thumb")
413 FixedFeature = Feature;
440 for (const auto &Feature : Features) {
441 if (Feature
[all...]
H A DLanai.cpp53 bool LanaiTargetInfo::hasFeature(StringRef Feature) const {
54 return llvm::StringSwitch<bool>(Feature).Case("lanai", true).Default(false);
H A DBPF.h50 bool hasFeature(StringRef Feature) const override {
51 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris";
H A DSystemZ.h119 for (const auto &Feature : Features) {
120 if (Feature == "+transactional-execution")
122 else if (Feature == "+vector")
124 else if (Feature == "+soft-float")
138 bool hasFeature(StringRef Feature) const override;
H A DMSP430.h60 bool hasFeature(StringRef Feature) const override {
61 return Feature == "msp430";
H A DPNaCl.h51 bool hasFeature(StringRef Feature) const override {
52 return Feature == "pnacl";
H A DTCE.h85 bool hasFeature(StringRef Feature) const override { return Feature == "tce"; }
H A DSPIR.h62 bool hasFeature(StringRef Feature) const override {
63 return Feature == "spir";
H A DNVPTX.cpp44 for (const StringRef Feature : Opts.FeaturesAsWritten) {
45 if (!Feature.startswith("+ptx"))
47 PTXVersion = llvm::StringSwitch<unsigned>(Feature)
169 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const {
170 return llvm::StringSwitch<bool>(Feature)
H A DHexagon.cpp165 bool HexagonTargetInfo::hasFeature(StringRef Feature) const {
167 if (Feature == VS)
170 return llvm::StringSwitch<bool>(Feature)
H A DSparc.h42 auto Feature = llvm::find(Features, "+soft-float"); variable
43 if (Feature != Features.end()) {
51 bool hasFeature(StringRef Feature) const override;
H A DSystemZ.cpp114 bool SystemZTargetInfo::hasFeature(StringRef Feature) const {
115 return llvm::StringSwitch<bool>(Feature)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp58 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, argument
60 assert(SubtargetFeatures::hasFlag(Feature) &&
61 "Feature flags should start with '+' or '-'");
65 Find(SubtargetFeatures::StripFlag(Feature), FeatureTable);
69 if (SubtargetFeatures::isEnabled(Feature)) {
81 errs() << "'" << Feature << "' is not a recognized feature for this target"
105 // Determine the length of the longest CPU and Feature entries.
116 // Print the Feature table.
118 for (auto &Feature : FeatTable)
119 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature
248 ToggleFeature(StringRef Feature) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/MC/
H A DSubtargetFeature.h208 static bool hasFlag(StringRef Feature) { argument
209 assert(!Feature.empty() && "Empty string");
211 char Ch = Feature[0];
217 static StringRef StripFlag(StringRef Feature) { argument
218 return hasFlag(Feature) ? Feature.substr(1) : Feature;
222 static inline bool isEnabled(StringRef Feature) { argument
223 assert(!Feature.empty() && "Empty string");
225 char Ch = Feature[
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMacroFusion.cpp161 for (auto &Feature : FusionFeatures) {
163 if (!Feature.isSupported())
168 if (Feature.hasOp2(SecondMI.getOpcode())) {
175 if (!Feature.hasOp1(FirstMI->getOpcode()))
178 auto DepOpIdx = Feature.depOpIdx();
187 if (checkOpConstraints(Feature.getKind(), *FirstMI, SecondMI))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetMachine.cpp51 for (auto &Feature : Features) {
52 if (Feature == "vector" || Feature == "+vector")
54 if (Feature == "-vector")
56 if (Feature == "soft-float" || Feature == "+soft-float")
58 if (Feature == "-soft-float")
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp34 for (auto &Feature : FeatureMap)
35 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp68 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { argument
73 if (Platform == Feature || Target.getTriple().getOSName() == Feature ||
74 Env == Feature)
94 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature);
96 return PlatformEnv == Feature;
101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, argument
103 bool HasFeature = llvm::StringSwitch<bool>(Feature)
121 .Default(Target.hasFeature(Feature) ||
293 addRequirement(StringRef Feature, bool RequiredState, const LangOptions &LangOpts, const TargetInfo &Target) argument
[all...]
H A DCuda.cpp202 bool CudaFeatureEnabled(llvm::VersionTuple Version, CudaFeature Feature) { argument
203 return CudaFeatureEnabled(ToCudaVersion(Version), Feature);
206 bool CudaFeatureEnabled(CudaVersion Version, CudaFeature Feature) { argument
207 switch (Feature) {

Completed in 330 milliseconds

1234