[Mlir-commits] [mlir] [mlir][vector] Recompute load/store alignment when the index moves (PR #221385)
Hung-Kuan Tseng
llvmlistbot at llvm.org
Sun Nov 1 05:31:56 PST 2026
================
@@ -217,6 +218,15 @@ struct MaskableOpRewritePattern : OpRewritePattern<SourceOp> {
/// are not linearizable.
bool isLinearizableVector(VectorType type);
+/// Returns the alignment of an access to `memRefType` at `indices + offsets`,
+/// given that the access at `indices` is aligned to `alignment`. `offsets`
+/// apply to the trailing dimensions of the memref. Returns an empty alignment
+/// when `alignment` is empty, or when the byte distance between the two
+/// accesses is not static.
+llvm::MaybeAlign getAlignmentAfterOffset(llvm::MaybeAlign alignment,
----------------
Tim096 wrote:
Moved to `memref::getAlignmentAfterOffset`. I merged main for this, since the new function would have conflicted there.
https://github.com/llvm/llvm-project/pull/221385
More information about the Mlir-commits
mailing list