| /llvm-project/libcxx/utils/libcxx/test/ |
| H A D | features.py | 78 Feature(name="gcc-style-warnings", when=_isAnyClangOrGCC), 79 Feature(name="cl-style-warnings", when=_isClExe), 80 Feature(name="apple-clang", when=_isAppleClang), 81 Feature( 85 Feature( 89 Feature( 93 Feature(name="clang", when=_isClang), 94 Feature( 98 Feature( 102 Feature( [all...] |
| /llvm-project/clang/lib/Basic/Targets/ |
| H A D | X86.cpp | 147 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) in initFeatureMap() 257 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | WebAssembly.cpp | 46 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 47 return llvm::StringSwitch<bool>(Feature) in hasFeature() 205 for (const auto &Feature : Features) { in handleTargetFeatures() 206 if (Feature == "+atomics") { in handleTargetFeatures() 210 if (Feature == "-atomics") { in handleTargetFeatures() 214 if (Feature == "+bulk-memory") { in handleTargetFeatures() 218 if (Feature == "-bulk-memory") { in handleTargetFeatures() 222 if (Feature == "+bulk-memory-opt") { in handleTargetFeatures() 226 if (Feature == "-bulk-memory-opt") { in handleTargetFeatures() 230 if (Feature in handleTargetFeatures() 182 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | AArch64.cpp | 732 for (auto &Feature : Features) in hasFeature() 733 if (!llvm::AArch64::parseFMVExtension(Feature.trim()).has_value()) in hasFeature() 738 bool AArch64TargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 739 return llvm::StringSwitch<bool>(Feature) in hasFeature() 826 for (const auto &Feature : Features) { in handleTargetFeatures() 827 if (Feature == "-fp-armv8") in handleTargetFeatures() 829 if (Feature == "-neon") in handleTargetFeatures() 831 if (Feature == "-sve") in handleTargetFeatures() 834 if (Feature == "+neon" || Feature in handleTargetFeatures() 698 for (auto &Feature : Features) validateCpuSupports() local 789 for (const auto &Feature : Features) { handleTargetFeatures() local 1040 for (const auto &Feature : Features) { handleTargetFeatures() local 1087 for (StringRef Feature : SplitFeatures) { parseTargetAttr() local 1108 for (auto &Feature : AttrFeatures) { parseTargetAttr() local [all...] |
| H A D | Mips.h | 203 bool hasFeature(StringRef Feature) const override; 330 for (const auto &Feature : Features) { in handleTargetFeatures() 331 if (Feature == "+single-float") in handleTargetFeatures() 333 else if (Feature == "+soft-float") in handleTargetFeatures() 335 else if (Feature == "+mips16") in handleTargetFeatures() 337 else if (Feature == "+micromips") in handleTargetFeatures() 339 else if (Feature == "+mips32r6" || Feature == "+mips64r6") in handleTargetFeatures() 343 else if (Feature == "+strict-align") in handleTargetFeatures() 345 else if (Feature in handleTargetFeatures() 329 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | ARM.cpp | 472 for (auto Feature : TargetFeatures) in initFeatureMap() 473 if (Feature[0] == '+') in initFeatureMap() 474 Features[Feature.drop_front(1)] = true; in initFeatureMap() 486 for (const auto &Feature : FeaturesVec) { in initFeatureMap() 489 if (Feature == "+soft-float-abi") in initFeatureMap() 493 if (Feature == "+arm") in initFeatureMap() 495 else if (Feature == "+thumb") in initFeatureMap() 498 FixedFeature = Feature; in initFeatureMap() 531 for (const auto &Feature : Features) { in handleTargetFeatures() 532 if (Feature in handleTargetFeatures() 468 for (auto Feature : TargetFeatures) initFeatureMap() local 482 for (const auto &Feature : FeaturesVec) { initFeatureMap() local 527 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | CSKY.cpp | 99 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 D | PPC.cpp | 37 for (const auto &Feature : Features) { in handleTargetFeatures() 38 if (Feature == "+altivec") { in handleTargetFeatures() 40 } else if (Feature == "+vsx") { in handleTargetFeatures() 42 } else if (Feature == "+crbits") { in handleTargetFeatures() 44 } else if (Feature == "+bpermd") { in handleTargetFeatures() 46 } else if (Feature == "+extdiv") { in handleTargetFeatures() 48 } else if (Feature == "+power8-vector") { in handleTargetFeatures() 50 } else if (Feature == "+crypto") { in handleTargetFeatures() 52 } else if (Feature == "+direct-move") { in handleTargetFeatures() 54 } else if (Feature in handleTargetFeatures() 36 for (const auto &Feature : Features) { handleTargetFeatures() local 494 __anon41b6b02a0102(StringRef Feature, StringRef Option) ppcUserFeaturesCheck() argument [all...] |
| H A D | LoongArch.cpp | 296 bool LoongArchTargetInfo::hasFeature(StringRef Feature) const { in isValidCPUName() 299 return llvm::StringSwitch<bool>(Feature) in fillValidCPUList() 316 for (const auto &Feature : Features) { 317 if (Feature == "+d" || Feature == "+f") { 320 if (Feature == "+d") { 323 } else if (Feature == "+lsx") 325 else if (Feature == "+lasx") 327 else if (Feature == "-ual") 329 else if (Feature 277 for (const auto &Feature : Features) { handleTargetFeatures() local [all...] |
| H A D | RISCV.cpp | 314 bool RISCVTargetInfo::hasFeature(StringRef Feature) const { in getVScaleRange() 316 auto Result = llvm::StringSwitch<std::optional<bool>>(Feature) 327 return ISAInfo->hasExtension(Feature); in hasFeature() 444 for (auto &Feature : AttrFeatures) { in parseTargetAttr() 445 Feature = Feature.trim(); in parseTargetAttr() 446 StringRef AttrString = Feature.split("=").second.trim(); in parseTargetAttr() 448 if (Feature.starts_with("arch=")) { in parseTargetAttr() 462 } else if (Feature.starts_with("cpu=")) { in parseTargetAttr() 476 } else if (Feature in checkCallingConvention() 265 __anonfcdffbce0102(StringRef Feature) initFeatureMap() argument 417 for (auto &Feature : AttrFeatures) { parseTargetAttr() local [all...] |
| H A D | SystemZ.h | 203 for (const auto &Feature : Features) { in checkCallingConvention() 204 if (Feature == "+transactional-execution") in checkCallingConvention() 206 else if (Feature == "+vector") in checkCallingConvention() 208 else if (Feature == "+soft-float") in checkCallingConvention() 210 else if (Feature == "+unaligned-symbols") in getABI() 226 bool hasFeature(StringRef Feature) const override; in hardwareInterferenceSizes() 172 for (const auto &Feature : Features) { handleTargetFeatures() local
|
| H A D | BPF.h | 50 bool hasFeature(StringRef Feature) const override { in hasFeature() argument 51 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris"; in hasFeature()
|
| H A D | NVPTX.cpp | 39 for (const StringRef Feature : Opts.FeaturesAsWritten) { in NVPTXTargetInfo() 41 if (!Feature.starts_with("+ptx") || in NVPTXTargetInfo() 42 Feature.drop_front(4).getAsInteger(10, PTXV)) in NVPTXTargetInfo() 162 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const { in getGCCRegNames() 163 return llvm::StringSwitch<bool>(Feature) in getGCCRegNames() 43 for (const StringRef Feature : Opts.FeaturesAsWritten) { NVPTXTargetInfo() local
|
| /llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InlineModelFeatureMaps.h | 82 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 …]
|
| /llvm-project/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 59 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument 61 assert(SubtargetFeatures::hasFlag(Feature) && in ApplyFeatureFlag() 62 "Feature flags should start with '+' or '-'"); 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() 112 // Determine the length of the longest CPU and Feature entries. in Help() 129 // Print the Feature table. 131 for (auto &Feature : FeatTable) in cpuHelp() 132 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature in cpuHelp() 119 for (auto &Feature : FeatTable) Help() local 196 for (const std::string &Feature : Features.getFeatures()) { getFeatures() local 268 ToggleFeature(StringRef Feature) ToggleFeature() argument [all...] |
| /llvm-project/llvm/utils/TableGen/ |
| H A D | RISCVTargetDefEmitter.cpp | |
| /llvm-project/llvm/include/llvm/TargetParser/ |
| H A D | SubtargetFeature.h | 201 static bool hasFlag(StringRef Feature) { in hasFlag() argument 202 assert(!Feature.empty() && "Empty string"); in hasFlag() 204 char Ch = Feature[0]; in hasFlag() 210 static StringRef StripFlag(StringRef Feature) { in StripFlag() argument 211 return hasFlag(Feature) ? Feature.substr(1) : Feature; in StripFlag() 215 static inline bool isEnabled(StringRef Feature) { in isEnabled() argument 216 assert(!Feature.empty() && "Empty string"); in isEnabled() 218 char Ch = Feature[0]; in isEnabled()
|
| /llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURemoveIncompatibleFunctions.cpp | 88 StringRef getFeatureName(unsigned Feature) { in getGPUInfo() 90 if (Feature == KV.Value) in getGPUInfo() 133 void reportFunctionRemoved(Function &F, unsigned Feature) { 142 << getFeatureName(Feature) in checkFunction() 189 for (unsigned Feature : FeaturesToCheck) { 190 if (ST->hasFeature(Feature) && !GPUFeatureBits.test(Feature)) { 191 reportFunctionRemoved(F, Feature); 75 getFeatureName(unsigned Feature) getFeatureName() argument 120 reportFunctionRemoved(Function & F,unsigned Feature) reportFunctionRemoved() argument 167 for (unsigned Feature : FeaturesToCheck) { checkFunction() local
|
| /llvm-project/llvm/test/CodeGen/AArch64/Atomics/ |
| H A D | generate-tests.py | 108 class Feature(enum.Flag): class 120 if self == Feature.outline_atomics: 122 if self == Feature.v8_1a: 124 if self == Feature.rcpc3: 126 if self == Feature.lse2_lse128: 282 header(f, triple, Feature, filter_args) 285 for feat in Feature:
|
| /llvm-project/clang/lib/Basic/ |
| H A D | Module.cpp | 63 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { in ~Module() 68 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment() 69 Env == Feature) in isPlatformEnvironment() 89 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment() 91 return PlatformEnv == Feature; in isPlatformEnvironment() 96 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in isPlatformEnvironment() 98 bool HasFeature = llvm::StringSwitch<bool>(Feature) 120 .Default(Target.hasFeature(Feature) || in hasFeature() 67 isPlatformEnvironment(const TargetInfo & Target,StringRef Feature) isPlatformEnvironment() argument 100 hasFeature(StringRef Feature,const LangOptions & LangOpts,const TargetInfo & Target) hasFeature() argument 319 addRequirement(StringRef Feature,bool RequiredState,const LangOptions & LangOpts,const TargetInfo & Target) addRequirement() argument [all...] |
| H A D | TargetInfo.cpp | 575 for (auto &Feature : AttrFeatures) { in parseTargetAttr() 578 Feature = Feature.trim(); in parseTargetAttr() 583 if (Feature.starts_with("fpmath=")) in parseTargetAttr() 586 if (Feature.starts_with("branch-protection=")) { in parseTargetAttr() 587 Ret.BranchProtection = Feature.split('=').second.trim(); in parseTargetAttr() 592 if (Feature.starts_with("arch=")) { 596 Ret.CPU = Feature.split("=").second.trim(); in getCallingConvKind() 597 } else if (Feature.starts_with("tune=")) { in getCallingConvKind() 601 Ret.Tune = Feature in areDefaultedSMFStillPOD() 557 for (auto &Feature : AttrFeatures) { parseTargetAttr() local [all...] |
| /llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCMacroFusion.cpp | 251 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()
|
| /llvm-project/utils/bazel/llvm-project-overlay/clang-tools-extra/clangd/ |
| H A D | BUILD.bazel | 12 # TODO: this is a shim to provide Features.inc as needed by Feature.h. 18 "echo '// IWYU pragma: private, include \"Feature.h\"' >> $@", 34 "Feature.cpp", 49 "Feature.h",
|
| /llvm-project/llvm/lib/TargetParser/ |
| H A D | CSKYTargetParser.cpp | 163 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()
|
| /llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | JITTargetMachineBuilder.cpp | 30 for (const auto &Feature : llvm::sys::getHostCPUFeatures()) in detectHost() 31 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second); in detectHost() 33 for (auto &Feature : FeatureMap) detectHost() local
|