[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:49:36 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:
In this form it's impossible to tell if `true` indicates success or failure. Return `LogicalResult` instead.
https://github.com/llvm/llvm-project/pull/100138
More information about the Mlir-commits
mailing list