| /llvm-project-15.0.7/libcxx/utils/libcxx/test/ |
| H A D | features.py | 29 Feature(name='fcoroutines-ts', 34 Feature(name='thread-safety', 38 Feature(name='diagnose-if-support', 52 Feature(name='non-lockfree-atomics', 61 Feature(name='is-lockfree-runtime-function', 77 Feature(name='cant-build-shared-library', 84 Feature(name='win32-broken-utf8-wchar-ctype', 119 Feature(name='has-unix-headers', 136 Feature(name='executor-has-no-bash', 138 Feature(name='has-clang-tidy', [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | WebAssembly.cpp | 158 if (Feature == "+simd128") { in handleTargetFeatures() 162 if (Feature == "-simd128") { in handleTargetFeatures() 182 if (Feature == "+sign-ext") { in handleTargetFeatures() 186 if (Feature == "-sign-ext") { in handleTargetFeatures() 198 if (Feature == "+bulk-memory") { in handleTargetFeatures() 206 if (Feature == "+atomics") { in handleTargetFeatures() 210 if (Feature == "-atomics") { in handleTargetFeatures() 222 if (Feature == "+multivalue") { in handleTargetFeatures() 226 if (Feature == "-multivalue") { in handleTargetFeatures() 230 if (Feature == "+tail-call") { in handleTargetFeatures() [all …]
|
| H A D | X86.cpp | 189 if (Feature[0] != '+') in handleTargetFeatures() 192 if (Feature == "+aes") { in handleTargetFeatures() 206 } else if (Feature == "+bmi") { in handleTargetFeatures() 212 } else if (Feature == "+rtm") { in handleTargetFeatures() 218 } else if (Feature == "+adx") { in handleTargetFeatures() 220 } else if (Feature == "+tbm") { in handleTargetFeatures() 222 } else if (Feature == "+lwp") { in handleTargetFeatures() 224 } else if (Feature == "+fma") { in handleTargetFeatures() 260 } else if (Feature == "+sha") { in handleTargetFeatures() 266 } else if (Feature == "+sgx") { in handleTargetFeatures() [all …]
|
| H A D | AArch64.cpp | 558 if (Feature == "+neon") in handleTargetFeatures() 601 if (Feature == "+crc") in handleTargetFeatures() 603 if (Feature == "+aes") in handleTargetFeatures() 605 if (Feature == "+sha2") in handleTargetFeatures() 611 if (Feature == "+sm4") in handleTargetFeatures() 615 if (Feature == "+v8a") in handleTargetFeatures() 633 if (Feature == "+v9a") in handleTargetFeatures() 641 if (Feature == "+v8r") in handleTargetFeatures() 649 if (Feature == "+mte") in handleTargetFeatures() 651 if (Feature == "+tme") in handleTargetFeatures() [all …]
|
| H A D | Mips.h | 319 if (Feature == "+single-float") in handleTargetFeatures() 323 else if (Feature == "+mips16") in handleTargetFeatures() 327 else if (Feature == "+dsp") in handleTargetFeatures() 329 else if (Feature == "+dspr2") in handleTargetFeatures() 331 else if (Feature == "+msa") in handleTargetFeatures() 333 else if (Feature == "+nomadd4") in handleTargetFeatures() 335 else if (Feature == "+fp64") in handleTargetFeatures() 337 else if (Feature == "-fp64") in handleTargetFeatures() 339 else if (Feature == "+fpxx") in handleTargetFeatures() 341 else if (Feature == "+nan2008") in handleTargetFeatures() [all …]
|
| H A D | ARM.cpp | 505 } else if (Feature == "+vfp2sp" || Feature == "+vfp2") { in handleTargetFeatures() 510 } else if (Feature == "+vfp3sp" || Feature == "+vfp3d16sp" || in handleTargetFeatures() 511 Feature == "+vfp3" || Feature == "+vfp3d16") { in handleTargetFeatures() 514 if (Feature == "+vfp3" || Feature == "+vfp3d16") in handleTargetFeatures() 516 } else if (Feature == "+vfp4sp" || Feature == "+vfp4d16sp" || in handleTargetFeatures() 517 Feature == "+vfp4" || Feature == "+vfp4d16") { in handleTargetFeatures() 520 if (Feature == "+vfp4" || Feature == "+vfp4d16") in handleTargetFeatures() 522 } else if (Feature == "+fp-armv8sp" || Feature == "+fp-armv8d16sp" || in handleTargetFeatures() 523 Feature == "+fp-armv8" || Feature == "+fp-armv8d16") { in handleTargetFeatures() 526 if (Feature == "+fp-armv8" || Feature == "+fp-armv8d16") in handleTargetFeatures() [all …]
|
| H A D | CSKY.cpp | 115 for (const auto &Feature : Features) { in handleTargetFeatures() local 116 if (Feature == "+hard-float") in handleTargetFeatures() 118 if (Feature == "+hard-float-abi") in handleTargetFeatures() 120 if (Feature == "+fpuv2_sf") in handleTargetFeatures() 122 if (Feature == "+fpuv2_df") in handleTargetFeatures() 124 if (Feature == "+fpuv3_sf") in handleTargetFeatures() 126 if (Feature == "+fpuv3_df") in handleTargetFeatures() 128 if (Feature == "+vdspv2") in handleTargetFeatures() 130 if (Feature == "+dspv2") in handleTargetFeatures() 132 if (Feature == "+vdspv1") in handleTargetFeatures() [all …]
|
| H A D | PPC.cpp | 34 for (const auto &Feature : Features) { in handleTargetFeatures() local 35 if (Feature == "+altivec") { in handleTargetFeatures() 37 } else if (Feature == "+vsx") { in handleTargetFeatures() 39 } else if (Feature == "+crbits") { in handleTargetFeatures() 41 } else if (Feature == "+bpermd") { in handleTargetFeatures() 43 } else if (Feature == "+extdiv") { in handleTargetFeatures() 47 } else if (Feature == "+crypto") { in handleTargetFeatures() 51 } else if (Feature == "+htm") { in handleTargetFeatures() 53 } else if (Feature == "+float128") { in handleTargetFeatures() 63 } else if (Feature == "+spe" || Feature == "+efpu2") { in handleTargetFeatures() [all …]
|
| H A D | BPF.h | 51 bool hasFeature(StringRef Feature) const override { in hasFeature() argument 52 return Feature == "bpf" || Feature == "alu32" || Feature == "dwarfris"; in hasFeature()
|
| H A D | SystemZ.h | 163 for (const auto &Feature : Features) { in handleTargetFeatures() local 164 if (Feature == "+transactional-execution") in handleTargetFeatures() 166 else if (Feature == "+vector") in handleTargetFeatures() 168 else if (Feature == "+soft-float") in handleTargetFeatures() 182 bool hasFeature(StringRef Feature) const override;
|
| H A D | RISCV.cpp | 240 for (const std::string &Feature : FeaturesVec) in initFeatureMap() local 241 if (!llvm::is_contained(ImpliedFeatures, Feature)) in initFeatureMap() 242 ImpliedFeatures.push_back(Feature); in initFeatureMap() 248 bool RISCVTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 250 auto Result = llvm::StringSwitch<Optional<bool>>(Feature) in hasFeature() 259 if (ISAInfo->isSupportedExtensionFeature(Feature)) in hasFeature() 260 return ISAInfo->hasExtension(Feature); in hasFeature()
|
| H A D | NVPTX.cpp | 43 for (const StringRef Feature : Opts.FeaturesAsWritten) { in NVPTXTargetInfo() local 44 if (!Feature.startswith("+ptx")) in NVPTXTargetInfo() 46 PTXVersion = llvm::StringSwitch<unsigned>(Feature) in NVPTXTargetInfo() 172 bool NVPTXTargetInfo::hasFeature(StringRef Feature) const { in hasFeature() 173 return llvm::StringSwitch<bool>(Feature) in hasFeature()
|
| H A D | SPIR.h | 184 bool hasFeature(StringRef Feature) const override { in hasFeature() argument 185 return Feature == "spir"; in hasFeature() 237 bool hasFeature(StringRef Feature) const override { in hasFeature() argument 238 return Feature == "spirv"; in hasFeature()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | InlineModelFeatureMaps.h | 65 return Feature != InlineCostFeatureIndex::SROASavings && in isHeuristicInlineCostFeature() 66 Feature != InlineCostFeatureIndex::IsMultipleBlocks && in isHeuristicInlineCostFeature() 67 Feature != InlineCostFeatureIndex::DeadBlocks && in isHeuristicInlineCostFeature() 68 Feature != InlineCostFeatureIndex::SimplifiedInstructions && in isHeuristicInlineCostFeature() 69 Feature != InlineCostFeatureIndex::ConstantArgs && in isHeuristicInlineCostFeature() 70 Feature != InlineCostFeatureIndex::ConstantOffsetPtrArgs && in isHeuristicInlineCostFeature() 71 Feature != InlineCostFeatureIndex::NestedInlines && in isHeuristicInlineCostFeature() 72 Feature != InlineCostFeatureIndex::NestedInlineCostEstimate && in isHeuristicInlineCostFeature() 73 Feature != InlineCostFeatureIndex::Threshold; in isHeuristicInlineCostFeature() 125 inlineCostFeatureToMlFeature(InlineCostFeatureIndex Feature) { in inlineCostFeatureToMlFeature() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 58 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument 60 assert(SubtargetFeatures::hasFlag(Feature) && in ApplyFeatureFlag() 65 Find(SubtargetFeatures::StripFlag(Feature), FeatureTable); in ApplyFeatureFlag() 69 if (SubtargetFeatures::isEnabled(Feature)) { in ApplyFeatureFlag() 118 for (auto &Feature : FeatTable) in Help() local 119 errs() << format(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc); in Help() 195 for (const std::string &Feature : Features.getFeatures()) { in getFeatures() local 197 if (Feature == "+help") in getFeatures() 199 else if (Feature == "+cpuhelp") in getFeatures() 202 ApplyFeatureFlag(Bits, Feature, ProcFeatures); in getFeatures() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/ |
| H A D | SubtargetFeature.h | 208 static bool hasFlag(StringRef Feature) { in hasFlag() argument 209 assert(!Feature.empty() && "Empty string"); in hasFlag() 211 char Ch = Feature[0]; in hasFlag() 217 static StringRef StripFlag(StringRef Feature) { in StripFlag() argument 218 return hasFlag(Feature) ? Feature.substr(1) : Feature; in StripFlag() 222 static inline bool isEnabled(StringRef Feature) { in isEnabled() argument 223 assert(!Feature.empty() && "Empty string"); in isEnabled() 225 char Ch = Feature[0]; in isEnabled()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetMachine.cpp | 59 for (auto &Feature : Features) { in UsesVectorABI() local 60 if (Feature == "vector" || Feature == "+vector") in UsesVectorABI() 62 if (Feature == "-vector") in UsesVectorABI() 64 if (Feature == "soft-float" || Feature == "+soft-float") in UsesVectorABI() 66 if (Feature == "-soft-float") in UsesVectorABI()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Module.cpp | 73 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment() 74 Env == Feature) in isPlatformEnvironment() 94 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment() 96 return PlatformEnv == Feature; in isPlatformEnvironment() 101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument 103 bool HasFeature = llvm::StringSwitch<bool>(Feature) in hasFeature() 121 .Default(Target.hasFeature(Feature) || in hasFeature() 122 isPlatformEnvironment(Target, Feature)); in hasFeature() 124 HasFeature = llvm::is_contained(LangOpts.ModuleFeatures, Feature); in hasFeature() 291 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement() argument [all …]
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/Arch/ |
| H A D | AArch64.cpp | 74 for (StringRef Feature : Split) { in DecodeAArch64Features() local 75 StringRef FeatureName = llvm::AArch64::getArchExtFeature(Feature); in DecodeAArch64Features() 78 else if (Feature == "neon" || Feature == "noneon") in DecodeAArch64Features() 83 if (Feature == "sve2") in DecodeAArch64Features() 85 else if (Feature == "sve2-bitperm" || Feature == "sve2-sha3" || in DecodeAArch64Features() 86 Feature == "sve2-aes" || Feature == "sve2-sm4") { in DecodeAArch64Features() 89 } else if (Feature == "nosve") { in DecodeAArch64Features() 95 } else if (Feature == "nosve2") { in DecodeAArch64Features() 110 Feature == "sve") in DecodeAArch64Features()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCMacroFusion.cpp | 252 for (auto &Feature : FusionFeatures) { in shouldScheduleAdjacent() local 254 if (!Feature.isSupported()) in shouldScheduleAdjacent() 259 if (Feature.hasOp2(SecondMI.getOpcode())) { in shouldScheduleAdjacent() 266 if (!Feature.hasOp1(FirstMI->getOpcode())) in shouldScheduleAdjacent() 269 auto DepOpIdx = Feature.depOpIdx(); in shouldScheduleAdjacent() 278 if (checkOpConstraints(Feature.getKind(), *FirstMI, SecondMI)) in shouldScheduleAdjacent()
|
| /llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/ |
| H A D | bb-addr-map.yaml | 19 # VALID-NEXT: Feature: 0xFF 31 # VALID-NEXT: Feature: 0xEE 49 Feature: 0xFF 62 Feature: 0xEE 109 ## Fields 'Address' and 'Feature' are omitted when they are zero. 131 ## Check that obj2yaml does not emit the 'Address' and 'Feature' fields when 134 Feature: 0x0
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| 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-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVBaseInfo.cpp | 111 for (auto Feature : RISCVFeatureKV) { in parseFeatureBits() local 112 if (FeatureBits[Feature.Value] && in parseFeatureBits() 113 llvm::RISCVISAInfo::isSupportedExtensionFeature(Feature.Key)) in parseFeatureBits() 114 FeatureVector.push_back(std::string("+") + Feature.Key); in parseFeatureBits()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.invoke/ |
| H A D | invoke_feature_test_macro.pass.cpp | 21 # error Feature test macro should be defined 25 # error Feature test macro not defined
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | JITTargetMachineBuilder.cpp | 35 for (auto &Feature : FeatureMap) in detectHost() local 36 TMBuilder.getFeatures().AddFeature(Feature.first(), Feature.second); in detectHost()
|