llvm-project
48813264 - [mlir][vector][NFC] Document and simplify vector contract reshape helpers (#200544)

Commit
62 days ago
[mlir][vector][NFC] Document and simplify vector contract reshape helpers (#200544) Replace the bare `// TODO` placeholders above `reshapeLoad` and `reshapeStore` in `LowerVectorContract.cpp` with doc comments describing each helper's semantics (the `index == -1` / `index == 0` / `index > 0` cases) and short before/after IR examples. Also drop the redundant `VectorType` parameter from both helpers; the type is now inferred from the value operand (`val` for `reshapeLoad`, `result` for `reshapeStore`). Add a LIT test that exercises the recursive `reshapeLoad` unroll path by mapping a parallel iterator to a non-leading dimension, which falls through to the generic `lowerParallel` / `reshapeLoad` path. No functional change. --------- Co-authored-by: sjae.park <dev@opt-ai.kr>
Author
Parents
Loading