| /freebsd/contrib/llvm-project/llvm/lib/TargetParser/ |
| H A D | TargetParser.cpp | 1 //===-- TargetParser - Parser for target features ---------------*- C++ -*-===// 9 // This file implements a target parser to recognise hardware features such as 37 // which might imply features not in FeatureTable to use this. in setImpliedBits() 54 // Set the features implied by this CPU feature if there is a match. in getCPUDefaultTargetFeatures() 74 unsigned Features; member 78 // Name Canonical Kind Features 109 // Don't bother listing the implicitly true features 112 // Name Canonical Kind Features 254 return Entry->Features; in getArchAttrAMDGCN() 260 return Entry->Features; in getArchAttrR600() [all …]
|
| H A D | Host.cpp | 466 // Look for the CPU features. in getHostCPUNameForS390x() 469 if (Lines[I].starts_with("features")) { in getHostCPUNameForS390x() 671 // Read control register 0 (XCR0). Used to detect features such as AVX. 705 #define testFeature(F) (Features[F / 32] & (1 << (F % 32))) != 0 709 const unsigned *Features, in getIntelProcessorTypeAndSubtype() argument 1110 const unsigned *Features, in getAMDProcessorTypeAndSubtype() argument 1284 unsigned *Features) { in getAvailableFeatures() argument 1288 Features[F / 32] |= 1U << (F % 32); in getAvailableFeatures() 1427 unsigned Features[(X86::CPU_FEATURE_MAX + 31) / 32] = {0}; in getHostCPUName() local 1429 getAvailableFeatures(ECX, EDX, MaxLeaf, Features); in getHostCPUName() [all …]
|
| H A D | CSKYTargetParser.cpp | 1 //===-- TargetParser - Parser for target features ---------------*- C++ -*-===// 10 // This file implements a target parser to recognise CSKY hardware features 22 std::vector<StringRef> &Features) { in getFPUFeatures() argument 29 Features.push_back("+fpuv2_sf"); in getFPUFeatures() 30 Features.push_back("+fpuv2_df"); in getFPUFeatures() 31 Features.push_back("+fdivdu"); in getFPUFeatures() 34 Features.push_back("+fpuv2_sf"); in getFPUFeatures() 35 Features.push_back("+fpuv2_df"); in getFPUFeatures() 38 Features.push_back("+fpuv2_sf"); in getFPUFeatures() 39 Features.push_back("+fpuv2_df"); in getFPUFeatures() [all …]
|
| H A D | LoongArchTargetParser.cpp | 1 //===-- LoongArchTargetParser - Parser for LoongArch features --*- C++ -*-====// 9 // This file implements a target parser to recognise LoongArch hardware features 26 #define LOONGARCH_ARCH(NAME, KIND, FEATURES) \ argument 27 {NAME, LoongArch::ArchKind::KIND, FEATURES}, 51 std::vector<StringRef> &Features) { in getArchFeatures() argument 55 if ((A.Features & F.Kind) == F.Kind) in getArchFeatures() 56 Features.push_back(F.Name); in getArchFeatures() 62 Features.push_back("+64bit"); in getArchFeatures() 63 Features.push_back("+d"); in getArchFeatures() 64 Features.push_back("+lsx"); in getArchFeatures() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | GCNProcessors.td | 24 FeatureISAVersion6_0_0.Features 28 FeatureISAVersion6_0_0.Features 32 FeatureISAVersion6_0_1.Features 36 FeatureISAVersion6_0_1.Features 40 FeatureISAVersion6_0_1.Features 44 FeatureISAVersion6_0_2.Features 48 FeatureISAVersion6_0_2.Features 52 FeatureISAVersion6_0_2.Features 60 FeatureISAVersion7_0_0.Features 64 FeatureISAVersion7_0_0.Features [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | BuiltinsX86.td | 52 let Features = "mmx"; 55 let Attributes = [NoThrow, Const, RequiredVectorWidth<64>], Features = "sse" in { 63 let Features = "sse" in { 67 let Features = "sse2" in { 75 let Features = "sse" in { 79 let Features = "sse2" in { 85 let Features = "sse" in { 90 let Features = "sse2" in { 95 let Features = "sse2" in { 110 let Features = "sse3" in { [all …]
|
| H A D | BuiltinsX86_64.td | 36 let Features = "cx16", Header = "intrin.h", Languages = "ALL_MS_LANGUAGES", Attributes = [NoThrow, … 45 let Features = "sse", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in { 50 let Features = "sse2", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in { 55 let Features = "sse2", Attributes = [NoThrow] in { 59 let Features = "sse4.1", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in { 63 let Features = "crc32", Attributes = [NoThrow, Const] in { 67 let Features = "avx", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in { 72 let Features = "fsgsbase", Attributes = [NoThrow] in { 83 let Features = "fxsr", Attributes = [NoThrow] in { 88 let Features = "xsave", Attributes = [NoThrow] in { [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/ |
| H A D | Sparc.cpp | 144 std::vector<StringRef> &Features) { in getSparcTargetFeatures() argument 147 Features.push_back("+soft-float"); in getSparcTargetFeatures() 151 Features.push_back("+fsmuld"); in getSparcTargetFeatures() 153 Features.push_back("-fsmuld"); in getSparcTargetFeatures() 158 Features.push_back("+popc"); in getSparcTargetFeatures() 160 Features.push_back("-popc"); in getSparcTargetFeatures() 174 Features.push_back("+vis"); in getSparcTargetFeatures() 176 Features.push_back("-vis"); in getSparcTargetFeatures() 178 Features.push_back("+vis"); in getSparcTargetFeatures() 183 Features.push_back("+vis2"); in getSparcTargetFeatures() [all …]
|
| H A D | AArch64.cpp | 72 // Decode AArch64 features from string like +[no]featureA+[no]featureB+... 139 llvm::AArch64::ExtensionSet &Extensions, std::vector<StringRef> &Features) { in getAArch64ArchFeaturesFromMcpu() argument 148 Features.push_back(Args.MakeArgString((Enabled ? "+" : "-") + Feature)); in getAArch64ArchFeaturesFromMcpu() 158 std::vector<StringRef> &Features) { in getAArch64MicroArchFeaturesFromMtune() argument 169 std::vector<StringRef> &Features) { in getAArch64MicroArchFeaturesFromMcpu() argument 170 return getAArch64MicroArchFeaturesFromMtune(D, Mcpu, Args, Features); in getAArch64MicroArchFeaturesFromMcpu() 176 std::vector<StringRef> &Features, in getAArch64TargetFeatures() argument 198 Features); in getAArch64TargetFeatures() 201 D, getAArch64TargetCPU(Args, Triple, A), Args, Extensions, Features); in getAArch64TargetFeatures() 208 getAArch64MicroArchFeaturesFromMtune(D, A->getValue(), Args, Features); in getAArch64TargetFeatures() [all …]
|
| H A D | LoongArch.cpp | 131 std::vector<StringRef> &Features) { in getLoongArchTargetFeatures() argument 135 Features.push_back("+lsx"); in getLoongArchTargetFeatures() 142 Features.push_back("+relax"); in getLoongArchTargetFeatures() 151 Features.push_back("-relax"); in getLoongArchTargetFeatures() 160 llvm::LoongArch::getArchFeatures(ArchName, Features); in getLoongArchTargetFeatures() 163 Features.push_back( in getLoongArchTargetFeatures() 166 // Select floating-point features determined by -mdouble-float, in getLoongArchTargetFeatures() 173 Features.push_back("+f"); in getLoongArchTargetFeatures() 174 Features.push_back("+d"); in getLoongArchTargetFeatures() 176 Features.push_back("+f"); in getLoongArchTargetFeatures() [all …]
|
| H A D | M68k.cpp | 65 std::vector<llvm::StringRef> &Features) { in addFloatABIFeatures() argument 70 Features.push_back("-isa-68881"); in addFloatABIFeatures() 71 Features.push_back("-isa-68882"); in addFloatABIFeatures() 80 Features.push_back("+isa-68881"); in addFloatABIFeatures() 86 Features.push_back("+isa-68882"); in addFloatABIFeatures() 91 std::vector<StringRef> &Features) { in getM68kTargetFeatures() argument 92 addFloatABIFeatures(Args, Features); in getM68kTargetFeatures() 96 Features.push_back("+reserve-a0"); in getM68kTargetFeatures() 98 Features.push_back("+reserve-a1"); in getM68kTargetFeatures() 100 Features.push_back("+reserve-a2"); in getM68kTargetFeatures() [all …]
|
| H A D | X86.cpp | 119 std::vector<StringRef> &Features) { in getX86TargetFeatures() argument 134 Features.push_back( in getX86TargetFeatures() 140 // x86_64h implies quite a few of the more modern subtarget features in getX86TargetFeatures() 142 Features.push_back("-rdrnd"); in getX86TargetFeatures() 143 Features.push_back("-aes"); in getX86TargetFeatures() 144 Features.push_back("-pclmul"); in getX86TargetFeatures() 145 Features.push_back("-rtm"); in getX86TargetFeatures() 146 Features.push_back("-fsgsbase"); in getX86TargetFeatures() 150 // Add features to be compatible with gcc for Android. in getX86TargetFeatures() 153 Features.push_back("+sse4.2"); in getX86TargetFeatures() [all …]
|
| H A D | ARM.cpp | 101 std::vector<StringRef> &Features) { in getARMHWDivFeatures() argument 103 if (!llvm::ARM::getHWDivFeatures(HWDivID, Features)) in getARMHWDivFeatures() 110 std::vector<StringRef> &Features) { in getARMFPUFeatures() argument 112 if (!llvm::ARM::getFPUFeatures(FPUKind, Features)) in getARMFPUFeatures() 117 // Decode ARM features from string like +[no]featureA+[no]featureB+... 120 std::vector<StringRef> &Features, in DecodeARMFeatures() argument 126 if (!appendArchExtFeatures(CPU, ArchKind, Feature, Features, ArgFPUKind)) in DecodeARMFeatures() 133 std::vector<StringRef> &Features) { in DecodeARMFeaturesFromCPU() argument 138 llvm::ARM::getExtensionFeatures(Extension, Features); in DecodeARMFeaturesFromCPU() 147 std::vector<StringRef> &Features, in checkARMArchName() argument [all …]
|
| H A D | Mips.cpp | 188 std::vector<StringRef> &Features) { in getMIPSTargetFeatures() argument 260 Features.push_back("+msa"); in getMIPSTargetFeatures() 264 Features.push_back("+noabicalls"); in getMIPSTargetFeatures() 266 Features.push_back("-noabicalls"); in getMIPSTargetFeatures() 271 Features.push_back("-long-calls"); in getMIPSTargetFeatures() 273 Features.push_back("+long-calls"); in getMIPSTargetFeatures() 280 Features.push_back("+xgot"); in getMIPSTargetFeatures() 282 Features.push_back("-xgot"); in getMIPSTargetFeatures() 290 Features.push_back("+soft-float"); in getMIPSTargetFeatures() 297 Features.push_back("+nan2008"); in getMIPSTargetFeatures() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/ |
| H A D | fuchsia.inc | 1 #include <zircon/features.h> 5 if (__atomic_load_n(&__aarch64_cpu_features.features, __ATOMIC_RELAXED)) 11 uint32_t features; 12 zx_status_t status = _zx_system_get_features(ZX_FEATURE_KIND_CPU, &features); 19 if (features & ZX_ARM64_FEATURE_ISA_FP) 21 if (features & ZX_ARM64_FEATURE_ISA_ASIMD) 23 if (features & ZX_ARM64_FEATURE_ISA_PMULL) 25 if (features & ZX_ARM64_FEATURE_ISA_SHA256) 27 if (features & ZX_ARM64_FEATURE_ISA_CRC32) 29 if (features & ZX_ARM64_FEATURE_ISA_RDM) [all …]
|
| H A D | apple.inc | 33 static uint64_t deriveImplicitFeatures(uint64_t features) { 35 features |= (1ULL << FEAT_FP); 37 features |= (1ULL << FEAT_INIT); 39 return features; 48 if (__atomic_load_n(&__aarch64_cpu_features.features, __ATOMIC_RELAXED)) 51 uint64_t features = 0; 64 features |= (1ULL << TO); \ 98 features = deriveImplicitFeatures(features); 100 __atomic_store(&__aarch64_cpu_features.features, &features, 141 features |= (1ULL << feature_checks[I].feature); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/ |
| H A D | blake3_dispatch.c | 119 enum cpu_feature features = ATOMIC_LOAD(g_cpu_features); in get_cpu_features() local 120 if (features != UNDEFINED) { in get_cpu_features() 121 return features; in get_cpu_features() 127 features = 0; in get_cpu_features() 132 features |= SSE2; in get_cpu_features() 135 features |= SSE2; in get_cpu_features() 138 features |= SSSE3; in get_cpu_features() 140 features |= SSE41; in get_cpu_features() 146 features |= AVX; in get_cpu_features() 150 features |= AVX2; in get_cpu_features() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRELFStreamer.cpp | 10 static unsigned getEFlagsForFeatureSet(const FeatureBitset &Features) { in getEFlagsForFeatureSet() argument 14 if (Features[AVR::ELFArchAVR1]) in getEFlagsForFeatureSet() 16 else if (Features[AVR::ELFArchAVR2]) in getEFlagsForFeatureSet() 18 else if (Features[AVR::ELFArchAVR25]) in getEFlagsForFeatureSet() 20 else if (Features[AVR::ELFArchAVR3]) in getEFlagsForFeatureSet() 22 else if (Features[AVR::ELFArchAVR31]) in getEFlagsForFeatureSet() 24 else if (Features[AVR::ELFArchAVR35]) in getEFlagsForFeatureSet() 26 else if (Features[AVR::ELFArchAVR4]) in getEFlagsForFeatureSet() 28 else if (Features[AVR::ELFArchAVR5]) in getEFlagsForFeatureSet() 30 else if (Features[AVR::ELFArchAVR51]) in getEFlagsForFeatureSet() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | WebAssembly.cpp | 126 void WebAssemblyTargetInfo::setSIMDLevel(llvm::StringMap<bool> &Features, in setSIMDLevel() argument 131 Features["relaxed-simd"] = true; in setSIMDLevel() 134 Features["simd128"] = true; in setSIMDLevel() 145 Features["simd128"] = false; in setSIMDLevel() 148 Features["relaxed-simd"] = false; in setSIMDLevel() 153 void WebAssemblyTargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features, in setFeatureEnabled() argument 157 setSIMDLevel(Features, SIMD128, Enabled); in setFeatureEnabled() 159 setSIMDLevel(Features, RelaxedSIMD, Enabled); in setFeatureEnabled() 161 Features[Name] = Enabled; in setFeatureEnabled() 165 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, in initFeatureMap() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ELFObjectFile.cpp | 101 SubtargetFeatures Features; in getMIPSFeatures() local 108 Features.AddFeature("mips2"); in getMIPSFeatures() 111 Features.AddFeature("mips3"); in getMIPSFeatures() 114 Features.AddFeature("mips4"); in getMIPSFeatures() 117 Features.AddFeature("mips5"); in getMIPSFeatures() 120 Features.AddFeature("mips32"); in getMIPSFeatures() 123 Features.AddFeature("mips64"); in getMIPSFeatures() 126 Features.AddFeature("mips32r2"); in getMIPSFeatures() 129 Features.AddFeature("mips64r2"); in getMIPSFeatures() 132 Features.AddFeature("mips32r6"); in getMIPSFeatures() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetID.cpp | 28 auto Features = T.isAMDGCN() ? llvm::AMDGPU::getArchAttrAMDGCN(ProcKind) in getAllPossibleAMDGPUTargetIDFeatures() local 30 if (Features & llvm::AMDGPU::FEATURE_SRAMECC) in getAllPossibleAMDGPUTargetIDFeatures() 32 if (Features & llvm::AMDGPU::FEATURE_XNACK) in getAllPossibleAMDGPUTargetIDFeatures() 61 // name or features are valid for the processor. 63 // A target ID is a processor name followed by a list of target features 79 auto Features = Split.second; in parseTargetIDWithFormatCheckingOnly() local 80 if (Features.empty()) in parseTargetIDWithFormatCheckingOnly() 87 while (!Features.empty()) { in parseTargetIDWithFormatCheckingOnly() 88 auto Splits = Features.split(':'); in parseTargetIDWithFormatCheckingOnly() 97 Features = Splits.second; in parseTargetIDWithFormatCheckingOnly() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMerge.cpp | 109 Files[CurrentFileIdx].Features = TmpFeatures; in Parse() 133 Res += sizeof(F) + F.Features.size() * sizeof(F.Features[0]); in ApproximateMemoryConsumption() 138 // Returns the number of new features added. 150 // What features are in the initial corpus? in Merge() 152 auto &Cur = Files[i].Features; in Merge() 155 // Remove all features that we already know from all other inputs. in Merge() 157 auto &Cur = Files[i].Features; in Merge() 166 // * files with more features. in Merge() 171 return a.Features.size() > b.Features.size(); in Merge() 174 // One greedy pass: add the file's features to AllFeatures. in Merge() [all …]
|
| /freebsd/usr.bin/elfctl/ |
| H A D | elfctl.c | 98 char *features; in main() 104 features = NULL; in main() 119 if (features != NULL) in main() 121 features = optarg; in main() 188 features, endian_swap)) { in main() 209 Set or display the control features for an ELF object.\n\n\ 211 -l List known control features.\n\ 212 -i Ignore unknown features.\n\ 213 -e [+-=]feature,list Edit features from a comma separated list.\n\ 300 uint32_t features, prev_feature in edit_file_features() 95 char *features; main() local 297 uint32_t features, prev_features; edit_file_features() local 340 uint32_t features; print_file_features() local 362 get_file_features(Elf * elf,int phcount,int fd,uint32_t * features,uint64_t * off,bool endian_swap) get_file_features() argument [all...] |
| /freebsd/sys/contrib/device-tree/Bindings/powerpc/ |
| H A D | ibm,powerpc-cpu-features.txt | 3 (skiboot/doc/device-tree/ibm,powerpc-cpu-features/binding.txt) 5 There is more complete overview and documentation of features in that 9 ibm,powerpc-cpu-features binding 12 This device tree binding describes CPU features available to software, with 16 found in design.txt, which also points to documentation of specific features. 19 /cpus/ibm,powerpc-cpu-features node binding 22 Node: ibm,powerpc-cpu-features 26 The node name must be "ibm,powerpc-cpu-features". 38 Definition: "ibm,powerpc-cpu-features" 66 /cpus/ibm,powerpc-cpu-features/example-feature node bindings [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_features_005_pos.ksh | 33 # Specifically disabling a feature, all other features should be enabled. 35 # 1. Loop through all existing features: 64 # Failure other features must be enabled or active. 71 # All features enabled or active except the expected one. 77 # Several representative features are tested to keep the test time short. 78 # The features 'extensible_dataset' and 'enabled_txg' are intentionally 79 # excluded because other features depend on them. 80 set -A features \ 87 while (( $i < ${#features[*]} )); do 88 log_assert "'zpool create' creates pools with ${features[i]} disabled" [all …]
|