big refactor
Validate Operations / validate-operations (push) Has been cancelled

This commit is contained in:
NiccoloN
2026-08-04 11:28:05 +02:00
parent f4a3b012cc
commit 10b6ee6c32
150 changed files with 6737 additions and 4816 deletions
+2 -9
View File
@@ -10,7 +10,6 @@
#include "src/Accelerators/PIM/Common/IR/AddressAnalysis.hpp"
#include "src/Accelerators/PIM/Common/IR/BatchCoreUtils.hpp"
#include "src/Accelerators/PIM/Compiler/PimCompilerOptions.hpp"
#include "src/Accelerators/PIM/Dialect/Pim/PimOps.hpp"
using namespace mlir;
@@ -157,16 +156,10 @@ LogicalResult PimVMMOp::verify() {
int64_t M = matrixShape[1];
if (N <= 0 || M <= 0)
return emitError("matrix shape must be (N, M) with N > 0 and M > 0");
const int64_t xbarDim = static_cast<int64_t>(crossbarSize);
if (N > xbarDim || M > xbarDim * static_cast<int64_t>(crossbarCountInCore))
return emitError("matrix dimensions must fit in one array group");
if (M % xbarDim != 0)
return emitError("matrix output width must be padded to a whole number of crossbars");
int64_t vector1 = vectorShape[0];
int64_t vectorWidth = vectorShape[1];
if (vector1 != 1 || vectorWidth != xbarDim)
return emitError("vector shape must be (1, crossbar-size)");
if (vector1 != 1 || vectorWidth <= 0)
return emitError("vector shape must be (1, positive-width)");
int64_t output1 = outputShape[0];
int64_t outputWidth = outputShape[1];