reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Support/Host.cpp
 1317   getX86CpuIDAndInfo(1, &EAX, &EBX, &ECX, &EDX);
 1326   Features["sse3"]   = (ECX >>  0) & 1;
 1327   Features["pclmul"] = (ECX >>  1) & 1;
 1328   Features["ssse3"]  = (ECX >>  9) & 1;
 1329   Features["cx16"]   = (ECX >> 13) & 1;
 1330   Features["sse4.1"] = (ECX >> 19) & 1;
 1331   Features["sse4.2"] = (ECX >> 20) & 1;
 1332   Features["movbe"]  = (ECX >> 22) & 1;
 1333   Features["popcnt"] = (ECX >> 23) & 1;
 1334   Features["aes"]    = (ECX >> 25) & 1;
 1335   Features["rdrnd"]  = (ECX >> 30) & 1;
 1340   bool HasAVXSave = ((ECX >> 27) & 1) && ((ECX >> 28) & 1) &&
 1340   bool HasAVXSave = ((ECX >> 27) & 1) && ((ECX >> 28) & 1) &&
 1346   Features["fma"]   = ((ECX >> 12) & 1) && HasAVXSave;
 1348   Features["xsave"] = ((ECX >> 26) & 1) && HasAVXSave;
 1349   Features["f16c"]  = ((ECX >> 29) & 1) && HasAVXSave;
 1352   getX86CpuIDAndInfo(0x80000000, &MaxExtLevel, &EBX, &ECX, &EDX);
 1355                      !getX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
 1356   Features["sahf"]   = HasExtLeaf1 && ((ECX >>  0) & 1);
 1357   Features["lzcnt"]  = HasExtLeaf1 && ((ECX >>  5) & 1);
 1358   Features["sse4a"]  = HasExtLeaf1 && ((ECX >>  6) & 1);
 1359   Features["prfchw"] = HasExtLeaf1 && ((ECX >>  8) & 1);
 1360   Features["xop"]    = HasExtLeaf1 && ((ECX >> 11) & 1) && HasAVXSave;
 1361   Features["lwp"]    = HasExtLeaf1 && ((ECX >> 15) & 1);
 1362   Features["fma4"]   = HasExtLeaf1 && ((ECX >> 16) & 1) && HasAVXSave;
 1363   Features["tbm"]    = HasExtLeaf1 && ((ECX >> 21) & 1);
 1364   Features["mwaitx"] = HasExtLeaf1 && ((ECX >> 29) & 1);
 1371                      !getX86CpuIDAndInfo(0x80000008, &EAX, &EBX, &ECX, &EDX);
 1376       MaxLevel >= 7 && !getX86CpuIDAndInfoEx(0x7, 0x0, &EAX, &EBX, &ECX, &EDX);
 1401   Features["prefetchwt1"]     = HasLeaf7 && ((ECX >>  0) & 1);
 1402   Features["avx512vbmi"]      = HasLeaf7 && ((ECX >>  1) & 1) && HasAVX512Save;
 1403   Features["pku"]             = HasLeaf7 && ((ECX >>  4) & 1);
 1404   Features["waitpkg"]         = HasLeaf7 && ((ECX >>  5) & 1);
 1405   Features["avx512vbmi2"]     = HasLeaf7 && ((ECX >>  6) & 1) && HasAVX512Save;
 1406   Features["shstk"]           = HasLeaf7 && ((ECX >>  7) & 1);
 1407   Features["gfni"]            = HasLeaf7 && ((ECX >>  8) & 1);
 1408   Features["vaes"]            = HasLeaf7 && ((ECX >>  9) & 1) && HasAVXSave;
 1409   Features["vpclmulqdq"]      = HasLeaf7 && ((ECX >> 10) & 1) && HasAVXSave;
 1410   Features["avx512vnni"]      = HasLeaf7 && ((ECX >> 11) & 1) && HasAVX512Save;
 1411   Features["avx512bitalg"]    = HasLeaf7 && ((ECX >> 12) & 1) && HasAVX512Save;
 1412   Features["avx512vpopcntdq"] = HasLeaf7 && ((ECX >> 14) & 1) && HasAVX512Save;
 1413   Features["rdpid"]           = HasLeaf7 && ((ECX >> 22) & 1);
 1414   Features["cldemote"]        = HasLeaf7 && ((ECX >> 25) & 1);
 1415   Features["movdiri"]         = HasLeaf7 && ((ECX >> 27) & 1);
 1416   Features["movdir64b"]       = HasLeaf7 && ((ECX >> 28) & 1);
 1417   Features["enqcmd"]          = HasLeaf7 && ((ECX >> 29) & 1);
 1431       MaxLevel >= 7 && !getX86CpuIDAndInfoEx(0x7, 0x1, &EAX, &EBX, &ECX, &EDX);
 1435                   !getX86CpuIDAndInfoEx(0xd, 0x1, &EAX, &EBX, &ECX, &EDX);
 1443                   !getX86CpuIDAndInfoEx(0x14, 0x0, &EAX, &EBX, &ECX, &EDX);