Lines Matching refs:CPU

58 //  Implementations of the CPU detection routines
164 // Read 32 lines from /proc/cpuinfo, which should contain the CPU part line
169 // Look for the CPU implementer line.
174 if (Lines[I].starts_with("CPU implementer"))
178 if (Lines[I].starts_with("CPU part"))
189 // The CPU part is a 3 digit hexadecimal number with a 0x prefix. The
285 // The CPU part is a 3 digit hexadecimal number with a 0x prefix. The
293 // The CPU part is a 3 digit hexadecimal number with a 0x prefix. The
316 // Look for the CPU variant line, whose value is a 1 digit hexadecimal
319 if (I.consume_front("CPU variant"))
322 // Look for the CPU part line, whose value is a 3 digit hexadecimal
325 if (I.consume_front("CPU part"))
341 // The Microsoft Azure Cobalt 100 CPU is handled as a Neoverse N2.
402 // Look for the CPU features.
714 StringRef CPU;
718 CPU = "i386";
721 CPU = "i486";
725 CPU = "pentium-mmx";
728 CPU = "pentium";
739 CPU = "core2";
748 CPU = "penryn";
753 case 0x1e: // Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz.
757 CPU = "nehalem";
765 CPU = "westmere";
772 CPU = "sandybridge";
778 CPU = "ivybridge";
788 CPU = "haswell";
798 CPU = "broadwell";
810 CPU = "skylake";
817 CPU = "rocketlake";
826 CPU = "cooperlake";
829 CPU = "cascadelake";
832 CPU = "skylake-avx512";
839 CPU = "cannonlake";
847 CPU = "icelake-client";
855 CPU = "tigerlake";
872 CPU = "alderlake";
879 CPU = "arrowlake";
888 CPU = "arrowlake-s";
895 CPU = "pantherlake";
902 CPU = "graniterapids";
909 CPU = "graniterapids-d";
917 CPU = "icelake-server";
926 CPU = "sapphirerapids";
936 CPU = "bonnell";
947 CPU = "silvermont";
953 CPU = "goldmont";
957 CPU = "goldmont-plus";
964 CPU = "tremont";
970 CPU = "sierraforest";
976 CPU = "grandridge";
982 CPU = "clearwaterforest";
988 CPU = "knl";
992 CPU = "knm";
996 default: // Unknown family 6 CPU, try to guess.
1001 CPU = "tigerlake";
1003 CPU = "icelake-client";
1005 CPU = "cannonlake";
1007 CPU = "cooperlake";
1009 CPU = "cascadelake";
1011 CPU = "skylake-avx512";
1014 CPU = "goldmont";
1016 CPU = "skylake";
1018 CPU = "broadwell";
1020 CPU = "haswell";
1022 CPU = "sandybridge";
1025 CPU = "silvermont";
1027 CPU = "nehalem";
1029 CPU = "penryn";
1032 CPU = "bonnell";
1034 CPU = "core2";
1036 CPU = "core2";
1038 CPU = "yonah";
1040 CPU = "pentium-m";
1042 CPU = "pentium3";
1044 CPU = "pentium2";
1046 CPU = "pentiumpro";
1053 CPU = "nocona";
1057 CPU = "prescott";
1060 CPU = "pentium4";
1067 return CPU;
1075 const char *CPU = 0;
1079 CPU = "i486";
1082 CPU = "pentium";
1086 CPU = "k6";
1089 CPU = "k6-2";
1093 CPU = "k6-3";
1096 CPU = "geode";
1102 CPU = "athlon-xp";
1105 CPU = "athlon";
1109 CPU = "k8-sse3";
1112 CPU = "k8";
1115 CPU = "amdfam10";
1130 CPU = "btver1";
1134 CPU = "bdver1";
1137 CPU = "bdver4";
1142 CPU = "bdver3";
1147 CPU = "bdver2";
1157 CPU = "btver2";
1161 CPU = "znver1";
1177 CPU = "znver2";
1190 CPU = "znver3";
1211 CPU = "znver4";
1217 CPU = "znver5";
1229 CPU = "znver5";
1236 break; // Unknown AMD CPU.
1239 return CPU;
1397 StringRef CPU;
1400 CPU = getIntelProcessorTypeAndSubtype(Family, Model, Features, &Type,
1403 CPU = getAMDProcessorTypeAndSubtype(Family, Model, Features, &Type,
1407 if (!CPU.empty())
1408 return CPU;
1540 // Default to the newest CPU we know about.
1948 // Look for the CPU features.
2164 std::string CPU = std::string(sys::getHostCPUName());
2165 if (CPU == "generic")
2166 CPU = "(unknown)";
2168 << " Host CPU: " << CPU << '\n';