[Mlir-commits] [mlir] [mlir][vector] Restrict vector.shape_cast (scalable vectors) (PR #100331)
Benjamin Maxwell
llvmlistbot at llvm.org
Wed Jul 24 14:27:59 PDT 2024
================
@@ -1168,6 +1168,12 @@ def Builtin_Vector : Builtin_Type<"Vector", "vector",
return !llvm::is_contained(getScalableDims(), false);
}
+ /// Get the number of scalable dimensions.
+ int64_t getNumScalableDims() const {
+ return llvm::count(getScalableDims(), true);
+ }
+
+
----------------
MacDue wrote:
nit: remove extra (inconsistent) blank line
```suggestion
```
https://github.com/llvm/llvm-project/pull/100331
More information about the Mlir-commits
mailing list