[all-commits] [llvm/llvm-project] f7d91f: [mlir][ArmSME] Add option to only enable streaming...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Fri Dec 1 02:39:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7d91faa790630eca506a29faa560d6783edcbc0
      https://github.com/llvm/llvm-project/commit/f7d91faa790630eca506a29faa560d6783edcbc0
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2023-12-01 (Fri, 01 Dec 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/ArmSME/Transforms/Passes.h
    M mlir/include/mlir/Dialect/ArmSME/Transforms/Passes.td
    M mlir/lib/Dialect/ArmSME/Transforms/EnableArmStreaming.cpp
    M mlir/test/Dialect/ArmSME/enable-arm-streaming.mlir

  Log Message:
  -----------
  [mlir][ArmSME] Add option to only enable streaming mode/ZA if required (#73931)

This adds a `only-if-required-by-ops` flag to the `enable-arm-streaming`
pass. This flag defaults to `false` (which preserves the original
behaviour), however, if set to `true` the pass will only add the
selected ZA/streaming mode to functions that contain ops that implement
`ArmSMETileOpInterface`.

This simplifies enabling these modes, as we can now first try lowering
ops to ArmSME, then only if we succeed, add the relevant function
attributes.




More information about the All-commits mailing list