[all-commits] [llvm/llvm-project] 4a0b1c: [mlir][MemRef][~NFC] Move getStridesAndOffset() on...
Krzysztof Drewniak via All-commits
all-commits at lists.llvm.org
Wed Apr 30 11:28:37 PDT 2025
Branch: refs/heads/users/krzysz00/refactor-stride-offset-getter-to-interface
Home: https://github.com/llvm/llvm-project
Commit: 4a0b1cc77f12307ab7717079c9aaa3bab8da78d9
https://github.com/llvm/llvm-project/commit/4a0b1cc77f12307ab7717079c9aaa3bab8da78d9
Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
Date: 2025-04-30 (Wed, 30 Apr 2025)
Changed paths:
M mlir/include/mlir/IR/BuiltinAttributeInterfaces.h
M mlir/include/mlir/IR/BuiltinAttributeInterfaces.td
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/lib/IR/BuiltinAttributeInterfaces.cpp
M mlir/lib/IR/BuiltinAttributes.cpp
M mlir/lib/IR/BuiltinTypes.cpp
Log Message:
-----------
[mlir][MemRef][~NFC] Move getStridesAndOffset() onto layouts
This commit refactors the getStridesAndOffet() method on MemRefType to
just call `MemRefLayoutAttrInterface::getStridesAndOffset(shape,
strides& offset&)`, allowing downstream users and future layouts (ex,
a potential contiguous layout) to implement it without needing to
patch BuiltinTypes or without needing them to conform their affine
maps to the canonical strided form.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list