[Mlir-commits] [mlir] [mlir][vector] Disable CompressStoreOp/ExpandLoadOp for scalable vectors (PR #117538)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Nov 28 09:30:31 PST 2024
================
@@ -24,6 +24,9 @@ include "mlir/IR/DialectBase.td"
// Explicitly disallow 0-D vectors for now until we have good enough coverage.
def IsVectorOfNonZeroRankTypePred : And<[CPred<"::llvm::isa<::mlir::VectorType>($_self)">,
CPred<"::llvm::cast<::mlir::VectorType>($_self).getRank() > 0">]>;
+def IsFixedVectorOfNonZeroRankTypePred : And<[CPred<"::llvm::isa<::mlir::VectorType>($_self)">,
+ CPred<"::llvm::cast<::mlir::VectorType>($_self).getRank() > 0">,
+ CPred<"!::llvm::cast<VectorType>($_self).isScalable()">]>;
----------------
kuhar wrote:
Digression: I'd be nice to have `isa<FixedVectorType>`. I remember we talked about it a few months ago -- do you know what the outcome was?
https://github.com/llvm/llvm-project/pull/117538
More information about the Mlir-commits
mailing list