[all-commits] [llvm/llvm-project] 2dd3f4: [mlir][ArmSME] Lower vector.broadcast to ArmSME

Cullen Rhodes via All-commits all-commits at lists.llvm.org
Tue Aug 29 02:43:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dd3f42083573e8a123b2e1daf8dc4587e278177
      https://github.com/llvm/llvm-project/commit/2dd3f42083573e8a123b2e1daf8dc4587e278177
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M mlir/lib/Conversion/VectorToArmSME/VectorToArmSME.cpp
    M mlir/test/Dialect/ArmSME/vector-ops-to-sme.mlir

  Log Message:
  -----------
  [mlir][ArmSME] Lower vector.broadcast to ArmSME

This adds support for lowering vector.broadcast ops to SME, if the
source is either a scalar, 0-d vector, or 1-d vector, and the result a
2-d scalable vector that aligns with SME tiles.

This follows on from D157005 which introduced a vector to tile slice op
that moves a 1-d scalable vector to a slice of a 2-d scalable vector
(tile). The lowering from vector.broadcast is similar, a couple of
helper functions are added to prevent duplication.

Lowering of vector.broadcast contributes towards a path from linalg.fill
to SME.

Depends on D157005

Reviewed By: awarzynski, dcaballe

Differential Revision: https://reviews.llvm.org/D158586




More information about the All-commits mailing list