[clang] [llvm] [X86][AMX] Support AMX-FP8 (PR #113850)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 29 08:12:52 PDT 2024


================
@@ -1876,6 +1876,10 @@ const StringMap<bool> sys::getHostCPUFeatures() {
       MaxLevel >= 0x19 && !getX86CpuIDAndInfo(0x19, &EAX, &EBX, &ECX, &EDX);
   Features["widekl"] = HasLeaf7 && HasLeaf19 && ((EBX >> 2) & 1);
 
+  bool HasLeaf1E =
+      MaxLevel >= 0x1e && !getX86CpuIDAndInfo(0x1e, &EAX, &EBX, &ECX, &EDX);
----------------
phoebewang wrote:

```
  bool HasLeaf1E = MaxLevel >= 0x1e &&
                   !getX86CpuIDAndInfoEx(0x1e, 0x1, &EAX, &EBX, &ECX, &EDX);
```

https://github.com/llvm/llvm-project/pull/113850


More information about the cfe-commits mailing list