[Mlir-commits] [mlir] [mlir][vector][NFC] Document vector contract reshape helpers (PR #200544)

Diego Caballero llvmlistbot at llvm.org
Tue Jun 2 15:56:05 PDT 2026


================
@@ -71,8 +71,23 @@ static AffineMap adjustMap(AffineMap map, int64_t index,
   return AffineMap::get(map.getNumDims() - 1, 0, results, ctx);
 }
 
-// Helper method to possibly drop a dimension in a load.
-// TODO
+/// Returns a value of the same element type as `val`, but with the dimension
+/// at position `index` dropped, by selecting the slab at coordinate `pos`
----------------
dcaballe wrote:

-> but with that dimension at position `index` dropped by indexing it with `pos`...

https://github.com/llvm/llvm-project/pull/200544


More information about the Mlir-commits mailing list