This commit adds support for subviews which enable to reduce resulting rank
by dropping static dimensions of size 1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I missed this commit (cause it was middle of the night in US), but subviews cannot be lowered directly to SPIR-V dialect. This pass (https://github.com/llvm/llvm-project/blob/master/mlir/lib/Conversion/StandardToSPIRV/LegalizeStandardForSPIRV.cpp) folds subviews into loads/stores. Not sure it handles this change, the only ask would be to assert there that the ranks are same and return failure when the rank isnt the same. I can look into fixing this later.