This patch adds a TileInfo abstraction and utilities to
create a 3-level loop nest for tiling.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
BTW, will this be shared between .cpp's? I.e. what is the justification for a header?
Thanks Adam! Added comments.
I guess they could in theory also be added directly to LowerMatrixIntrinsics.cpp. But I think it makes sense to have a separate file for various matrix-related utilities that are not directly tied to the intrinsics. I don't anticipate users outside of LowerMatrixIntrinsics.cpp anytime soon upstream, so I could also move them there. I think in the long-term we want to specify specialized, target-specific lowerings outside of LowerMatrixIntrinsics.cpp, so we might as well start with more generally accessible helpers.
I guess they could in theory also be added directly to LowerMatrixIntrinsics.cpp. But I think it makes sense to have a separate file for various matrix-related utilities that are not directly tied to the intrinsics. I don't anticipate users outside of LowerMatrixIntrinsics.cpp anytime soon upstream, so I could also move them there. I think in the long-term we want to specify specialized, target-specific lowerings outside of LowerMatrixIntrinsics.cpp, so we might as well start with more generally accessible helpers.
Works for me!
LGTM.
llvm/include/llvm/Transforms/Utils/MatrixUtils.h | ||
---|---|---|
27 | Super-minor nit: can you put a new line before the 'for' and indent properly. |
Please comment the purpose for this class