[Mlir-commits] [mlir] [mlir][spirv] Implement vector unrolling for `convert-to-spirv` pass (PR #100138)

Jakub Kuderski llvmlistbot at llvm.org
Tue Jul 23 12:50:05 PDT 2024


================
@@ -202,6 +203,12 @@ SmallVector<int64_t> getNativeVectorShapeImpl(vector::TransposeOp op);
 // For general ops.
 std::optional<SmallVector<int64_t>> getNativeVectorShape(Operation *op);
 
+// Unroll vectors in function signatures to native size.
+bool unrollVectorsInSignatures(Operation *op, MLIRContext *context);
+
+// Unroll vectors in function bodies to native size.
+bool unrollVectorsInFuncBodies(Operation *op, MLIRContext *context);
----------------
kuhar wrote:

Also you can extract context from the op.

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


More information about the Mlir-commits mailing list