/external/vixl/test/ |
D | test-api.cc | 195 CPUFeatures f1(CPUFeatures::kFP, CPUFeatures::kNEON); in TEST() 196 CPUFeatures f2(CPUFeatures::kFP, CPUFeatures::kNEON, CPUFeatures::kCRC32); in TEST() 197 CPUFeatures f3; in TEST() 199 typedef CPUFeatures::const_iterator It; in TEST() 202 It it1_neon(&f1, CPUFeatures::kNEON); in TEST() 203 It it2_neon(&f2, CPUFeatures::kNEON); in TEST() 204 It it2_crc32(&f2, CPUFeatures::kCRC32); in TEST() 240 VIXL_CHECK(*it0 == CPUFeatures::kNone); in TEST() 241 VIXL_CHECK(*it1_neon == CPUFeatures::kNEON); in TEST() 242 VIXL_CHECK(*it2_neon == CPUFeatures::kNEON); in TEST() [all …]
|
/external/vixl/src/ |
D | cpu-features.cc | 35 static uint64_t MakeFeatureMask(CPUFeatures::Feature feature) { in MakeFeatureMask() 36 if (feature == CPUFeatures::kNone) { in MakeFeatureMask() 40 VIXL_STATIC_ASSERT(CPUFeatures::kNumberOfFeatures <= in MakeFeatureMask() 42 VIXL_ASSERT(feature < CPUFeatures::kNumberOfFeatures); in MakeFeatureMask() 47 CPUFeatures::CPUFeatures(Feature feature0, in CPUFeatures() function in vixl::CPUFeatures 55 CPUFeatures CPUFeatures::All() { in All() 56 CPUFeatures all; in All() 58 VIXL_STATIC_ASSERT(CPUFeatures::kNumberOfFeatures < (sizeof(uint64_t) * 8)); in All() 63 CPUFeatures CPUFeatures::InferFromOS() { in InferFromOS() 65 return CPUFeatures(); in InferFromOS() [all …]
|
D | cpu-features.h | 160 class CPUFeatures { 179 CPUFeatures() : features_(0) {} in CPUFeatures() function 182 CPUFeatures(Feature feature0, 189 static CPUFeatures All(); 193 static CPUFeatures None() { return CPUFeatures(); } in None() 197 static CPUFeatures AArch64LegacyBaseline() { in AArch64LegacyBaseline() 198 return CPUFeatures(kFP, kNEON, kCRC32); in AArch64LegacyBaseline() 202 static CPUFeatures InferFromOS(); 206 void Combine(const CPUFeatures& other); 216 void Remove(const CPUFeatures& other); [all …]
|
/external/vixl/src/aarch64/ |
D | cpu-features-auditor-aarch64.cc | 44 auditor_->last_instruction_ = CPUFeatures::None(); in RecordInstructionFeaturesScope() 50 void Record(const CPUFeatures& features) { in Record() 54 void Record(CPUFeatures::Feature feature0, in Record() 55 CPUFeatures::Feature feature1 = CPUFeatures::kNone, in Record() 56 CPUFeatures::Feature feature2 = CPUFeatures::kNone, in Record() 57 CPUFeatures::Feature feature3 = CPUFeatures::kNone) { in Record() 64 void RecordOneOrBothOf(CPUFeatures::Feature a, CPUFeatures::Feature b) { in RecordOneOrBothOf() 87 scope.Record(CPUFeatures::kNEON); in LoadStoreHelper() 95 scope.RecordOneOrBothOf(CPUFeatures::kFP, CPUFeatures::kNEON); in LoadStoreHelper() 108 scope.Record(CPUFeatures::kNEON); in LoadStorePairHelper() [all …]
|
D | cpu-features-auditor-aarch64.h | 61 Decoder* decoder, const CPUFeatures& available = CPUFeatures::None()) 67 const CPUFeatures& available = CPUFeatures::None()) 75 seen_ = CPUFeatures::None(); in ResetSeenFeatures() 76 last_instruction_ = CPUFeatures::None(); in ResetSeenFeatures() 80 const CPUFeatures& GetAvailableFeatures() const { return available_; } in GetAvailableFeatures() 81 void SetAvailableFeatures(const CPUFeatures& available) { in SetAvailableFeatures() 86 const CPUFeatures& GetSeenFeatures() const { return seen_; } in GetSeenFeatures() 89 const CPUFeatures& GetInstructionFeatures() const { in GetInstructionFeatures() 98 CPUFeatures* GetCPUFeatures() { return &available_; } in GetCPUFeatures() 99 void SetCPUFeatures(const CPUFeatures& available) { in SetCPUFeatures() [all …]
|
D | assembler-aarch64.cc | 199 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in braaz() 205 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in brabz() 211 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blraaz() 217 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blrabz() 223 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in retaa() 228 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in retab() 234 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in braa() 240 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in brab() 246 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blraa() 252 VIXL_ASSERT(CPUHas(CPUFeatures::kPAuth)); in blrab() [all …]
|
D | macro-assembler-aarch64.h | 3457 void SetSimulatorCPUFeatures(const CPUFeatures& features); 3458 void EnableSimulatorCPUFeatures(const CPUFeatures& features); 3459 void DisableSimulatorCPUFeatures(const CPUFeatures& features); 3608 void ConfigureSimulatorCPUFeaturesHelper(const CPUFeatures& features, 3853 CPUFeatures::Feature feature0 = CPUFeatures::kNone, 3854 CPUFeatures::Feature feature1 = CPUFeatures::kNone, 3855 CPUFeatures::Feature feature2 = CPUFeatures::kNone, 3856 CPUFeatures::Feature feature3 = CPUFeatures::kNone) 3861 CPUFeatures(feature0, feature1, feature2, feature3)); in masm_() 3864 SimulationCPUFeaturesScope(MacroAssembler* masm, const CPUFeatures& other) in SimulationCPUFeaturesScope() [all …]
|
D | assembler-aarch64.h | 408 : pic_(pic), cpu_features_(CPUFeatures::AArch64LegacyBaseline()) {} in pic_() 414 cpu_features_(CPUFeatures::AArch64LegacyBaseline()) {} in AssemblerBase() 420 cpu_features_(CPUFeatures::AArch64LegacyBaseline()) {} in AssemblerBase() 4090 CPUFeatures* GetCPUFeatures() { return &cpu_features_; } in GetCPUFeatures() 4092 void SetCPUFeatures(const CPUFeatures& cpu_features) { in SetCPUFeatures() 4200 bool CPUHas(CPUFeatures::Feature feature0, 4201 CPUFeatures::Feature feature1 = CPUFeatures::kNone, 4202 CPUFeatures::Feature feature2 = CPUFeatures::kNone, 4203 CPUFeatures::Feature feature3 = CPUFeatures::kNone) const { 4391 CPUFeatures cpu_features_;
|
D | macro-assembler-aarch64.cc | 2756 void MacroAssembler::SetSimulatorCPUFeatures(const CPUFeatures& features) { in SetSimulatorCPUFeatures() 2761 void MacroAssembler::EnableSimulatorCPUFeatures(const CPUFeatures& features) { in EnableSimulatorCPUFeatures() 2766 void MacroAssembler::DisableSimulatorCPUFeatures(const CPUFeatures& features) { in DisableSimulatorCPUFeatures() 2772 const CPUFeatures& features, DebugHltOpcode action) { in ConfigureSimulatorCPUFeaturesHelper() 2777 VIXL_ASSERT(CPUFeatures::kNumberOfFeatures <= in ConfigureSimulatorCPUFeaturesHelper() 2797 for (CPUFeatures::const_iterator it = features.begin(); in ConfigureSimulatorCPUFeaturesHelper() 2802 dc(static_cast<ElementType>(CPUFeatures::kNone)); in ConfigureSimulatorCPUFeaturesHelper() 2808 dc(static_cast<ElementType>(CPUFeatures::kNone)); in ConfigureSimulatorCPUFeaturesHelper()
|
D | simulator-aarch64.h | 1628 CPUFeatures* GetCPUFeatures() { 1632 void SetCPUFeatures(const CPUFeatures& cpu_features) { 1637 const CPUFeatures& GetSeenFeatures() { 3242 std::vector<CPUFeatures> saved_cpu_features_;
|
D | simulator-aarch64.cc | 68 : cpu_features_auditor_(decoder, CPUFeatures::All()) { in Simulator() 6600 VIXL_ASSERT(CPUFeatures::kNumberOfFeatures < in DoConfigureCPUFeatures() 6609 CPUFeatures parameters; in DoConfigureCPUFeatures() 6613 if (feature == static_cast<ElementType>(CPUFeatures::kNone)) break; in DoConfigureCPUFeatures() 6614 parameters.Combine(static_cast<CPUFeatures::Feature>(feature)); in DoConfigureCPUFeatures()
|
D | disasm-aarch64.cc | 5788 CPUFeatures needs = cpu_features_auditor_->GetInstructionFeatures(); in ProcessOutput() 5790 if (needs != CPUFeatures::None()) { in ProcessOutput()
|
/external/vixl/test/aarch64/ |
D | test-assembler-aarch64.cc | 101 const CPUFeatures kInfrastructureCPUFeatures(CPUFeatures::kNEON); 113 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 114 simulator.SetCPUFeatures(CPUFeatures(__VA_ARGS__)) 122 masm.SetCPUFeatures(CPUFeatures::None()); \ 128 simulator.SetCPUFeatures(CPUFeatures::None()); \ 178 CPUFeatures const& expected = \ 179 simulator.GetCPUFeatures()->With(CPUFeatures::kNEON); \ 180 CPUFeatures const& seen = simulator.GetSeenFeatures(); \ 192 CPUFeatures missing = expected.Without(seen); \ 218 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)) [all …]
|
D | test-simulator-aarch64.cc | 61 #define SETUP() SETUP_WITH_FEATURES(CPUFeatures()) 67 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 111 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 131 const CPUFeatures& this_machine = CPUFeatures::AArch64LegacyBaseline(); \ 136 const CPUFeatures& requirements = auditor.GetSeenFeatures(); \ 254 SETUP_WITH_FEATURES(CPUFeatures::kFP, CPUFeatures::kFPHalf); in Test1Op_Helper() 394 SETUP_WITH_FEATURES(CPUFeatures::kFP, CPUFeatures::kFPHalf); in Test2Op_Helper() 552 SETUP_WITH_FEATURES(CPUFeatures::kFP, CPUFeatures::kFPHalf); in Test3Op_Helper() 710 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TestCmp_Helper() 852 SETUP_WITH_FEATURES(CPUFeatures::kFP); in TestCmpZero_Helper() [all …]
|
D | test-cpu-features-aarch64.cc | 46 CPUFeaturesTest(const CPUFeatures& features, const char* description) in CPUFeaturesTest() 57 RunWithFeatures(CPUFeatures::All()); in Run() 62 std::vector<CPUFeatures> errors; in Run() 63 for (CPUFeatures::const_iterator it = features_.begin(); in Run() 67 CPUFeatures reduced = features_.Without(*it); in Run() 78 for (std::vector<CPUFeatures>::iterator it = errors.begin(); in Run() 88 RunWithFeatures(CPUFeatures::None()); in Run() 101 CPUFeatures features_; 109 void RunWithFeatures(const CPUFeatures& features) { in RunWithFeatures() 127 CPUFeatures missing = in RunWithFeatures() [all …]
|
D | test-disasm-aarch64.cc | 41 masm.GetCPUFeatures()->Combine(CPUFeatures::All()); \
|
/external/llvm/lib/Support/ |
D | Host.cpp | 1106 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUName() local 1111 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' '); in getHostCPUName() 1120 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUName() 1121 if (CPUFeatures[I] == "vx") in getHostCPUName() 1272 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUFeatures() local 1277 Lines[I].split(CPUFeatures, ' '); in getHostCPUFeatures() 1287 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUFeatures() 1288 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures() 1307 if (CPUFeatures[I] == "aes") in getHostCPUFeatures() 1309 else if (CPUFeatures[I] == "pmull") in getHostCPUFeatures() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Host.cpp | 1148 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUName() local 1153 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' '); in getHostCPUName() 1162 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUName() 1163 if (CPUFeatures[I] == "vx") in getHostCPUName() 1386 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUFeatures() local 1391 Lines[I].split(CPUFeatures, ' '); in getHostCPUFeatures() 1401 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUFeatures() 1402 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures() 1421 if (CPUFeatures[I] == "aes") in getHostCPUFeatures() 1423 else if (CPUFeatures[I] == "pmull") in getHostCPUFeatures() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | Host.cpp | 260 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUNameForS390x() local 265 Lines[I].drop_front(Pos + 1).split(CPUFeatures, ' '); in getHostCPUNameForS390x() 274 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUNameForS390x() 275 if (CPUFeatures[I] == "vx") in getHostCPUNameForS390x() 1304 SmallVector<StringRef, 32> CPUFeatures; in getHostCPUFeatures() local 1309 Lines[I].split(CPUFeatures, ' '); in getHostCPUFeatures() 1319 for (unsigned I = 0, E = CPUFeatures.size(); I != E; ++I) { in getHostCPUFeatures() 1320 StringRef LLVMFeatureStr = StringSwitch<StringRef>(CPUFeatures[I]) in getHostCPUFeatures() 1339 if (CPUFeatures[I] == "aes") in getHostCPUFeatures() 1341 else if (CPUFeatures[I] == "pmull") in getHostCPUFeatures() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringARM32.h | 173 return CPUFeatures.hasFeature(I); in hasCPUFeature() 1228 TargetARM32Features CPUFeatures; variable 1428 TargetARM32Features CPUFeatures; variable
|
D | IceTargetLoweringARM32.cpp | 309 CPUFeatures(getFlags()) {} in TargetARM32() 7368 : TargetHeaderLowering(Ctx), CPUFeatures(getFlags()) {} in TargetHeaderARM32() 7386 if (CPUFeatures.hasFeature(TargetARM32Features::HWDivArm)) { in lower() 7408 if (CPUFeatures.hasFeature(TargetARM32Features::HWDivArm)) { in lower()
|