[all-commits] [llvm/llvm-project] 0b7362: [mlir][arith] Add result pretty printing for const...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Fri Apr 5 02:48:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b7362c257ff7b656c31266b4f9b8485a7ba4033
      https://github.com/llvm/llvm-project/commit/0b7362c257ff7b656c31266b4f9b8485a7ba4033
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2024-04-05 (Fri, 05 Apr 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    A mlir/test/Dialect/Arith/vscale_constants.mlir

  Log Message:
  -----------
  [mlir][arith] Add result pretty printing for constant vscale values (#83565)

In scalable code it is very common to have constant multiples of vscale,
e.g. `4 * vscale`. This updates `arith.muli` to pretty print the result
name in cases like this, so `4 * vscale` would be `%c4_vscale`.

This makes reading IR dumps of scalable code a little nicer.



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