| /src/external/apache2/llvm/dist/libcxx/utils/libcxx/test/ |
| features.py | 21 Feature(name='fcoroutines-ts', 26 Feature(name='thread-safety', 30 Feature(name='diagnose-if-support', 34 Feature(name='has-fblocks', when=lambda cfg: hasCompileFlag(cfg, '-fblocks')), 35 Feature(name='-fsized-deallocation', when=lambda cfg: hasCompileFlag(cfg, '-fsized-deallocation')), 36 Feature(name='-faligned-allocation', when=lambda cfg: hasCompileFlag(cfg, '-faligned-allocation')), 37 Feature(name='fdelayed-template-parsing', when=lambda cfg: hasCompileFlag(cfg, '-fdelayed-template-parsing')), 38 Feature(name='libcpp-no-if-constexpr', when=lambda cfg: '__cpp_if_constexpr' not in featureTestMacros(cfg)), 39 Feature(name='libcpp-no-structured-bindings', when=lambda cfg: '__cpp_structured_bindings' not in featureTestMacros(cfg)), 40 Feature(name='libcpp-no-deduction-guides', when=lambda cfg: featureTestMacros(cfg).get('__cpp_deduction (…) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Basic/Targets/ |
| WebAssembly.cpp | 1 //===--- WebAssembly.cpp - Implement WebAssembly target feature support ---===// 26 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ 27 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE}, 46 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const { 47 return llvm::StringSwitch<bool>(Feature) 143 for (const auto &Feature : Features) { 144 if (Feature == "+simd128") { 148 if (Feature == "-simd128") { 152 if (Feature == "+nontrapping-fptoint") { 156 if (Feature == "-nontrapping-fptoint") [all...] |
| RISCV.cpp | 1 //===--- RISCV.cpp - Implement RISCV target feature support ---------------===// 232 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ 233 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE}, 252 /// Return true if has this feature, need to sync with handleTargetFeatures. 253 bool RISCVTargetInfo::hasFeature(StringRef Feature) const { 255 return llvm::StringSwitch<bool>(Feature) 287 for (const auto &Feature : Features) { 288 if (Feature == "+m") 290 else if (Feature == "+a") 292 else if (Feature == "+f" [all...] |
| AArch64.cpp | 1 //===--- AArch64.cpp - Implement AArch64 target feature support -----------===// 38 #define TARGET_HEADER_BUILTIN(ID, TYPE, ATTRS, HEADER, LANGS, FEATURE) \ 39 {#ID, TYPE, ATTRS, HEADER, LANGS, FEATURE}, 290 // The __ARM_FEATURE_CRYPTO is deprecated in favor of finer grained feature 427 bool AArch64TargetInfo::hasFeature(StringRef Feature) const { 428 return Feature == "aarch64" || Feature == "arm64" || Feature == "arm" || 429 (Feature == "neon" && (FPU & NeonMode)) || 430 ((Feature == "sve" || Feature == "sve2" || Feature == "sve2-bitperm" | [all...] |
| X86.cpp | 1 //===--- X86.cpp - Implement X86 target feature support -------------------===// 28 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ 29 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE}, 30 #define TARGET_HEADER_BUILTIN(ID, TYPE, ATTRS, HEADER, LANGS, FEATURE) \ 31 {#ID, TYPE, ATTRS, HEADER, LANGS, FEATURE}, 36 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ 37 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE}, 38 #define TARGET_HEADER_BUILTIN(ID, TYPE, ATTRS, HEADER, LANGS, FEATURE) \ 39 {#ID, TYPE, ATTRS, HEADER, LANGS, FEATURE}, 169 for (const auto &Feature : Features) [all...] |
| Mips.h | 1 //===--- Mips.h - Declare Mips target feature support -----------*- C++ -*-===// 197 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" [all...] |
| PPC.cpp | 1 //===--- PPC.cpp - Implement PPC target feature support -------------------===// 34 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 == "+htm") [all...] |
| ARM.cpp | 1 //===--- ARM.cpp - Implement ARM target feature support -------------------===// 373 // Map the base architecture to an appropriate target feature, so we don't 391 for (auto Feature : TargetFeatures) 392 if (Feature[0] == '+') 393 Features[Feature.drop_front(1)] = true; 405 for (const auto &Feature : FeaturesVec) { 408 if (Feature == "+soft-float-abi") 412 if (Feature == "+arm") 414 else if (Feature == "+thumb") 417 FixedFeature = Feature; [all...] |
| BPF.cpp | 1 //===--- BPF.cpp - Implement BPF target feature support -------------------===// 52 for (const auto &Feature : Features) { 53 if (Feature == "+alu32") {
|
| Lanai.cpp | 1 //===--- Lanai.cpp - Implement Lanai target feature support ---------------===// 53 bool LanaiTargetInfo::hasFeature(StringRef Feature) const { 54 return llvm::StringSwitch<bool>(Feature).Case("lanai", true).Default(false);
|
| BPF.h | 1 //===--- BPF.h - Declare BPF target feature support -------------*- C++ -*-===// 51 bool hasFeature(StringRef Feature) const override { 52 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris";
|
| SystemZ.h | 1 //===--- SystemZ.h - Declare SystemZ target feature support -----*- C++ -*-===// 119 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;
|
| MSP430.h | 1 //===--- MSP430.h - Declare MSP430 target feature support -------*- C++ -*-===// 60 bool hasFeature(StringRef Feature) const override { 61 return Feature == "msp430";
|
| PNaCl.h | 1 //===--- PNaCl.h - Declare PNaCl target feature support ---------*- C++ -*-===// 51 bool hasFeature(StringRef Feature) const override { 52 return Feature == "pnacl";
|
| TCE.h | 1 //===--- TCE.h - Declare TCE target feature support -------------*- C++ -*-===// 92 bool hasFeature(StringRef Feature) const override { return Feature == "tce"; }
|
| M68k.h | 1 //===--- M68k.h - Declare M68k target feature support -------*- C++ -*-===// 44 bool hasFeature(StringRef Feature) const override;
|
| NVPTX.cpp | 1 //===--- NVPTX.cpp - Implement NVPTX target feature support ---------------===// 29 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ 30 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE}, 44 for (const StringRef Feature : Opts.FeaturesAsWritten) { 45 if (!Feature.startswith("+ptx")) 47 PTXVersion = llvm::StringSwitch<unsigned>(Feature) 171 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const { 172 return llvm::StringSwitch<bool>(Feature)
|
| Hexagon.cpp | 1 //===--- Hexagon.cpp - Implement Hexagon target feature support -----------===// 164 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ 165 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE}, 169 bool HexagonTargetInfo::hasFeature(StringRef Feature) const { 171 if (Feature == VS) 174 return llvm::StringSwitch<bool>(Feature)
|
| Sparc.h | 1 //===--- Sparc.h - declare sparc target feature support ---------*- C++ -*-===// 42 auto Feature = llvm::find(Features, "+soft-float"); 43 if (Feature != Features.end()) { 51 bool hasFeature(StringRef Feature) const override;
|
| /src/external/apache2/llvm/dist/llvm/lib/MC/ |
| MCSubtargetInfo.cpp | 34 /// For each feature that is (transitively) implied by this feature, set it. 46 /// For each feature that (transitively) implies this feature, clear it. 58 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, 60 assert(SubtargetFeatures::hasFlag(Feature) && 61 "Feature flags should start with '+' or '-'"); 63 // Find feature in table. 65 Find(SubtargetFeatures::StripFlag(Feature), FeatureTable); 68 // Enable/disable feature in bit [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/MC/ |
| SubtargetFeature.h | 179 /// A comma separates each feature from the next (all lowercase.) 181 /// that feature should be enabled or disabled contrary to the cpu 198 /// Prints feature string. 201 // Dumps feature info. 207 /// Determine if a feature has a flag; '+' or '-' 208 static bool hasFlag(StringRef Feature) { 209 assert(!Feature.empty() && "Empty string"); 211 char Ch = Feature[0]; 217 static StringRef StripFlag(StringRef Feature) { 218 return hasFlag(Feature) ? Feature.substr(1) : Feature [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/ |
| PPCMacroFusion.cpp | 34 // Each fusion feature is assigned with one fusion kind. All the 37 // True if this feature is enabled. 161 for (auto &Feature : FusionFeatures) { 162 // Skip if the feature is not supported. 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))
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
| SystemZTargetMachine.cpp | 41 // overridden via "[+-]vector" feature string elements. 51 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") 181 // function, so we can enable it as a subtarget feature.
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/ |
| JITTargetMachineBuilder.cpp | 34 for (auto &Feature : FeatureMap) 35 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second);
|
| /src/external/apache2/llvm/dist/clang/lib/Basic/ |
| Module.cpp | 68 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { 73 if (Platform == Feature || Target.getTriple().getOSName() == Feature || 74 Env == Feature) 94 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); 96 return PlatformEnv == Feature; 100 /// language options has the given feature. 101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, 103 bool HasFeature = llvm::StringSwitch<bool>(Feature) [all...] |