[Mlir-commits] [mlir] [mlir][VectorOps] Add `vector.interleave` operation (PR #80315)

Cullen Rhodes llvmlistbot at llvm.org
Mon Feb 5 03:20:39 PST 2024


================
@@ -1734,6 +1734,70 @@ struct VectorSplatNdOpLowering : public ConvertOpToLLVMPattern<SplatOp> {
   }
 };
 
+struct VectorInterleaveOpLowering
+    : public ConvertOpToLLVMPattern<vector::InterleaveOp> {
+  using ConvertOpToLLVMPattern::ConvertOpToLLVMPattern;
+
+  void initialize() {
+    // This pattern recursively unpacks one dimension at a time. The recursion
+    // bounded as the rank is strictly decreasing.
----------------
c-rhodes wrote:

```suggestion
    // is bounded as the rank is strictly decreasing.
```

grammar

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


More information about the Mlir-commits mailing list