[Mlir-commits] [mlir] Add Vector bitwidth target to Linearize Vectorizable and Constant Ops (PR #83314)
Balaji V. Iyer.
llvmlistbot at llvm.org
Fri Mar 1 11:52:59 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();
----------------
bviyer wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/83314
More information about the Mlir-commits
mailing list