llvm-project
5846b6b3 - [mlir][vector] Add `getDefaultUnrollTargetShape` to `VectorUnrollOpInterface` (#242315)

Commit
3 days ago
[mlir][vector] Add `getDefaultUnrollTargetShape` to `VectorUnrollOpInterface` (#242315) Add an interface hook that provides a default target shape for `Vector` unrolling when no shape callback is configured through `UnrollVectorOptions`. Explicit caller configuration takes precedence. Move the shape-selection logic from `TestVectorUnrollingPatterns` into the interface and the corresponding `Vector` operations. This simplifies the test pass and keeps operation-specific defaults alongside the operations that define them. These defaults are intended primarily for testing. Callers with performance requirements should continue to configure target shapes through `UnrollVectorOptions`. The test pass now uses the type-dependent contraction default regardless of the `unroll-based-on-type` option. Also group the unrolling interface methods consistently within `VectorOps.cpp`. Part of #233408
Author
Parents
Loading