[Mlir-commits] [mlir] [MLIR] VectorEmulateNarrowType to support loading of unaligned vectors (PR #113411)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Oct 28 15:06:27 PDT 2024
================
@@ -102,6 +129,36 @@ static FailureOr<Operation *> getCompressedMaskOp(OpBuilder &rewriter,
return newMask;
}
+static std::optional<int64_t>
+getIntraVectorOffset(ConversionPatternRewriter &rewriter, Location loc,
+ const memref::LinearizedMemRefInfo linearizedInfo) {
+ auto foldedIntraVectorOffset = getValueOrCreateConstantIndexOp(
+ rewriter, loc, linearizedInfo.intraVectorOffset);
+ return getConstantIntValue(foldedIntraVectorOffset);
+}
----------------
lialan wrote:
done.
https://github.com/llvm/llvm-project/pull/113411
More information about the Mlir-commits
mailing list