[all-commits] [llvm/llvm-project] d928a6: [mlir][Vector] Refactor VectorEmulateNarrowType.cp...

Andrzej Warzyński via All-commits all-commits at lists.llvm.org
Sun Mar 16 05:23:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d928a671b84afb9c2ad64353694537a198f04651
      https://github.com/llvm/llvm-project/commit/d928a671b84afb9c2ad64353694537a198f04651
  Author: Andrzej Warzyński <andrzej.warzynski at arm.com>
  Date:   2025-03-16 (Sun, 16 Mar 2025)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

  Log Message:
  -----------
  [mlir][Vector] Refactor VectorEmulateNarrowType.cpp (#123529)

This is PR refactors `alignedConversionPrecondition` from
VectorEmulateNarrowType.cpp and adds new helper hooks.

**Update `alignedConversionPrecondition` (1)**

This method doesn't require the vector type for the "container" argument. The
underlying element type is sufficient. The corresponding argument has been
renamed as `containerTy` - this is meant as the multi-byte container element
type (`i8`, `i16`, `i32`, etc). With this change, the updated invocations of
`alignedConversionPrecondition` (in e.g. `RewriteAlignedSubByteIntExt`) make it
clear that the container element type is assumed to be `i8`.

**Update alignedConversionPrecondition (2):**

The final check in `alignedConversionPrecondition` has been replaced with a new
helper method, `isSubByteVecFittable`. This helper hook is now also re-used in
`ConvertVectorTransferRead` (to improve code re-use).

**Other updates**

Extended + unified comments.

**Implements**: https://github.com/llvm/llvm-project/issues/123630



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list