[all-commits] [llvm/llvm-project] 1c5fd1: [mlir][Tosa] Allow non-fp32 tosa.cast to integers

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Tue Aug 29 07:11:24 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c5fd1534cfd95fb4ce6356aa7719c7dbe37bee9
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir

  Log Message:
  [mlir][Tosa] Allow non-fp32 tosa.cast to integers

Fix the lowering of tosa.cast to create attributes of the input source
type when casting from floats to integers.

This is motivated by the need to cast fp16 to i9, which we have
encountered in certain quantized models.

Reviewed By: eric-k256, jpienaar

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

More information about the All-commits mailing list