/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | WebAssembly.cpp | 46 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 D | RISCV.cpp | 141 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 D | Mips.h | 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") 333 else if (Feature [all...] |
H A D | X86.cpp | 173 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 D | AArch64.cpp | 386 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 D | PPC.cpp | 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 == "+qpx") { 51 } else if (Feature [all...] |
H A D | ARM.cpp | 387 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 D | Lanai.cpp | 53 bool LanaiTargetInfo::hasFeature(StringRef Feature) const { 54 return llvm::StringSwitch<bool>(Feature).Case("lanai", true).Default(false);
|
H A D | BPF.h | 50 bool hasFeature(StringRef Feature) const override { 51 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris";
|
H A D | SystemZ.h | 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;
|
H A D | MSP430.h | 60 bool hasFeature(StringRef Feature) const override { 61 return Feature == "msp430";
|
H A D | PNaCl.h | 51 bool hasFeature(StringRef Feature) const override { 52 return Feature == "pnacl";
|
H A D | TCE.h | 85 bool hasFeature(StringRef Feature) const override { return Feature == "tce"; }
|
H A D | SPIR.h | 62 bool hasFeature(StringRef Feature) const override { 63 return Feature == "spir";
|
H A D | NVPTX.cpp | 44 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 D | Hexagon.cpp | 165 bool HexagonTargetInfo::hasFeature(StringRef Feature) const { 167 if (Feature == VS) 170 return llvm::StringSwitch<bool>(Feature)
|
H A D | Sparc.h | 42 auto Feature = llvm::find(Features, "+soft-float"); variable 43 if (Feature != Features.end()) { 51 bool hasFeature(StringRef Feature) const override;
|
H A D | SystemZ.cpp | 114 bool SystemZTargetInfo::hasFeature(StringRef Feature) const { 115 return llvm::StringSwitch<bool>(Feature)
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSubtargetInfo.cpp | 58 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 D | SubtargetFeature.h | 208 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 D | PPCMacroFusion.cpp | 161 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 D | SystemZTargetMachine.cpp | 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")
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | JITTargetMachineBuilder.cpp | 34 for (auto &Feature : FeatureMap) 35 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | Module.cpp | 68 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 D | Cuda.cpp | 202 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) {
|