[all-commits] [llvm/llvm-project] 8d2371: TosaToLinalg: Support unsigned tosa.clamp (#91749)

Matthias Gehre via All-commits all-commits at lists.llvm.org
Thu Jun 27 09:06:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d237190ecc4ac90865d80dbb11a34c6719b406d
      https://github.com/llvm/llvm-project/commit/8d237190ecc4ac90865d80dbb11a34c6719b406d
  Author: Matthias Gehre <matthias.gehre at amd.com>
  Date:   2024-06-27 (Thu, 27 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Conversion/TosaToLinalg/TosaToLinalg.h
    M mlir/include/mlir/Dialect/Tosa/Utils/ConversionUtils.h
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
    M mlir/lib/Dialect/Tosa/Utils/ConversionUtils.cpp
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir

  Log Message:
  -----------
  TosaToLinalg: Support unsigned tosa.clamp (#91749)

This implements the lowering of tosa.clamp with unsigned operand to
linalg.

We interpret the `min/max : i64`  attributes on `clamp` to be signed.

This means that when the operand has type `ui64`, one cannot represent
limits across the whole range.



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