Home | History | Annotate | Download | only in Basic

Lines Matching refs:Feature

1 //===--- Targets.cpp - Implement target feature support -------------------===//
979 bool hasFeature(StringRef Feature) const override;
1130 for (const auto &Feature : Features) {
1131 if (Feature == "+vsx") {
1133 } else if (Feature == "+bpermd") {
1135 } else if (Feature == "+extdiv") {
1137 } else if (Feature == "+power8-vector") {
1139 } else if (Feature == "+crypto") {
1141 } else if (Feature == "+direct-move") {
1143 } else if (Feature == "+qpx") {
1145 } else if (Feature == "+htm") {
1147 } else if (Feature == "+float128") {
1439 bool PPCTargetInfo::hasFeature(StringRef Feature) const {
1440 return llvm::StringSwitch<bool>(Feature)
1817 bool hasFeature(StringRef Feature) const override {
1818 return Feature == "ptx" || Feature == "nvptx";
2136 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \
2137 { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE },
2254 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \
2255 { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE },
2684 bool hasFeature(StringRef Feature) const override;
3193 // This is a bit of a hack to deal with the sse4 target feature when used
3271 for (const auto &Feature : Features) {
3272 if (Feature[0] != '+')
3275 if (Feature == "+aes") {
3277 } else if (Feature == "+pclmul") {
3279 } else if (Feature == "+lzcnt") {
3281 } else if (Feature == "+rdrnd") {
3283 } else if (Feature == "+fsgsbase") {
3285 } else if (Feature == "+bmi") {
3287 } else if (Feature == "+bmi2") {
3289 } else if (Feature == "+popcnt") {
3291 } else if (Feature == "+rtm") {
3293 } else if (Feature == "+prfchw") {
3295 } else if (Feature == "+rdseed") {
3297 } else if (Feature == "+adx") {
3299 } else if (Feature == "+tbm") {
3301 } else if (Feature == "+fma") {
3303 } else if (Feature == "+f16c") {
3305 } else if (Feature == "+avx512cd") {
3307 } else if (Feature == "+avx512er") {
3309 } else if (Feature == "+avx512pf") {
3311 } else if (Feature == "+avx512dq") {
3313 } else if (Feature == "+avx512bw") {
3315 } else if (Feature == "+avx512vl") {
3317 } else if (Feature == "+avx512vbmi") {
3319 } else if (Feature == "+avx512ifma") {
3321 } else if (Feature == "+sha") {
3323 } else if (Feature == "+mpx") {
3325 } else if (Feature == "+movbe") {
3327 } else if (Feature == "+sgx") {
3329 } else if (Feature == "+cx16") {
3331 } else if (Feature == "+fxsr") {
3333 } else if (Feature == "+xsave") {
3335 } else if (Feature == "+xsaveopt") {
3337 } else if (Feature == "+xsavec") {
3339 } else if (Feature == "+xsaves") {
3341 } else if (Feature == "+mwaitx") {
3343 } else if (Feature == "+pku") {
3345 } else if (Feature == "+clflushopt") {
3347 } else if (Feature == "+pcommit") {
3349 } else if (Feature == "+clwb") {
3351 } else if (Feature == "+umip") {
3353 } else if (Feature == "+prefetchwt1") {
3357 X86SSEEnum Level = llvm::StringSwitch<X86SSEEnum>(Feature)
3371 llvm::StringSwitch<MMX3DNowEnum>(Feature)
3378 XOPEnum XLevel = llvm::StringSwitch<XOPEnum>(Feature)
3737 bool X86TargetInfo::hasFeature(StringRef Feature) const {
3738 return llvm::StringSwitch<bool>(Feature)
4952 for (const char *Feature : TargetFeatures)
4953 if (Feature[0] == '+')
4954 Features[Feature+1] = true;
4972 for (const auto &Feature : Features) {
4973 if (Feature == "+soft-float") {
4975 } else if (Feature == "+soft-float-abi") {
4977 } else if (Feature == "+vfp2") {
4980 } else if (Feature == "+vfp3") {
4983 } else if (Feature == "+vfp4") {
4986 } else if (Feature == "+fp-armv8") {
4989 } else if (Feature == "+neon") {
4992 } else if (Feature == "+hwdiv") {
4994 } else if (Feature == "+hwdiv-arm") {
4996 } else if (Feature == "+crc") {
4998 } else if (Feature == "+crypto") {
5000 } else if (Feature == "+dsp") {
5002 } else if (Feature == "+fp-only-sp") {
5004 } else if (Feature == "+strict-align") {
5006 } else if (Feature == "+fp16") {
5042 auto Feature =
5044 if (Feature != Features.end())
5045 Features.erase(Feature);
5050 Feature) const override {
5051 return llvm::StringSwitch<bool>(Feature)
5804 bool hasFeature(StringRef Feature) const override {
5805 return Feature == "aarch64" ||
5806 Feature == "arm64" ||
5807 Feature == "arm" ||
5808 (Feature == "neon" && FPU == NeonMode);
5819 for (const auto &Feature : Features) {
5820 if (Feature == "+neon")
5822 if (Feature == "+crc")
5824 if (Feature == "+crypto")
5826 if (Feature == "+strict-align")
5828 if (Feature == "+v8.1a")
6124 bool hasFeature(StringRef Feature) const override {
6125 return llvm::StringSwitch<bool>(Feature)
6326 bool hasFeature(StringRef Feature) const override {
6327 return llvm::StringSwitch<bool>(Feature).Case("lanai", true).Default(false);
6389 auto Feature = std::find(Features.begin(), Features.end(), "+soft-float");
6390 if (Feature != Features.end()) {
6404 bool hasFeature(StringRef Feature) const override {
6405 return llvm::StringSwitch<bool>(Feature)
6804 for (const auto &Feature : Features) {
6805 if (Feature == "+transactional-execution")
6807 else if (Feature == "+vector")
6819 bool hasFeature(StringRef Feature) const override {
6820 return llvm::StringSwitch<bool>(Feature)
6851 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \
6852 { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE },
6929 bool hasFeature(StringRef Feature) const override {
6930 return Feature == "msp430";
7023 bool hasFeature(StringRef Feature) const override { return Feature == "tce"; }
7067 bool hasFeature(StringRef Feature) const override {
7068 return Feature == "bpf";
7392 bool hasFeature(StringRef Feature) const override {
7393 return llvm::StringSwitch<bool>(Feature)
7514 for (const auto &Feature : Features) {
7515 if (Feature == "+single-float")
7517 else if (Feature == "+soft-float")
7519 else if (Feature == "+mips16")
7521 else if (Feature == "+micromips")
7523 else if (Feature == "+dsp")
7525 else if (Feature == "+dspr2")
7527 else if (Feature == "+msa")
7529 else if (Feature == "+fp64")
7531 else if (Feature == "-fp64")
7533 else if (Feature == "+nan2008")
7535 else if (Feature == "-nan2008")
7662 bool hasFeature(StringRef Feature) const override {
7663 return Feature == "pnacl";
7780 bool hasFeature(StringRef Feature) const final {
7781 return llvm::StringSwitch<bool>(Feature)
7787 for (const auto &Feature : Features) {
7788 if (Feature == "+simd128") {
7792 if (Feature == "-simd128") {
7797 Diags.Report(diag::err_opt_not_valid_with_opt) << Feature
7798 << "-target-feature";
7926 bool hasFeature(StringRef Feature) const override {
7927 return Feature == "spir";