[Mlir-commits] [mlir] Add Vector bitwidth target to Linearize Vectorizable and Constant Ops (PR #83314)
Ivan Butygin
llvmlistbot at llvm.org
Fri Mar 1 13:55:40 PST 2024
================
@@ -19,10 +19,27 @@
using namespace mlir;
+static bool isLessThanTargetBitWidth(Operation *op, unsigned targetBitWidth) {
+ auto resultTypes = op->getResultTypes();
+ for (auto resType : resultTypes) {
+ VectorType vecType = cast<VectorType>(resType);
+ unsigned trailingVecDimBitWidth =
+ vecType.getShape().back() * vecType.getElementTypeBitWidth();
----------------
Hardcode84 wrote:
just something like `arith.addi %a, %b : vector<2x2xindex>`
https://github.com/llvm/llvm-project/pull/83314
More information about the Mlir-commits
mailing list