[llvm] [Matrix][IR] Cap stride bitwidth at 64 (PR #163729)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 16 09:00:46 PDT 2025
================
@@ -6479,9 +6479,12 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
NumRows->getZExtValue() * NumColumns->getZExtValue(),
"Result of a matrix operation does not fit in the returned vector!");
- if (Stride)
+ if (Stride) {
+ Check(Stride->getBitWidth() <= 64, "Stride bitwidth cannot exceed 64!",
----------------
farzonl wrote:
this looks fine to me. Are there any cases where it could be less than 64 where we might want this to be configurable?
https://github.com/llvm/llvm-project/pull/163729
More information about the llvm-commits
mailing list