[clang] [llvm] [X86][AMX] Support AMX-MOVRS (PR #115151)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 9 19:26:45 PST 2024


================
@@ -5189,6 +5193,33 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
       ReplaceNode(Node, CNode);
       return;
     }
+    case Intrinsic::x86_tileloaddrs64_internal:
+    case Intrinsic::x86_tileloaddrst164_internal: {
+      if (!Subtarget->hasAMXMOVRS())
+        break;
----------------
phoebewang wrote:

Merge with above, you can write like:
```
    case Intrinsic::x86_tileloaddrs64_internal:
    case Intrinsic::x86_tileloaddrst164_internal:
      if (!Subtarget->hasAMXMOVRS())
        break;
  [[fallthrough]];
    case Intrinsic::x86_tileloadd64_internal:
    case Intrinsic::x86_tileloaddt164_internal: {
      if (!Subtarget->hasAMXTILE())
```

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


More information about the cfe-commits mailing list