[all-commits] [llvm/llvm-project] 2c8afe: [mlir][gpu] Add support for f16 when lowering to n...

Stephan Herhut via All-commits all-commits at lists.llvm.org
Tue Jun 9 10:34:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c8afe1298e5f471a5736757b1cd2a708dd91ec9
      https://github.com/llvm/llvm-project/commit/2c8afe1298e5f471a5736757b1cd2a708dd91ec9
  Author: Stephan Herhut <herhut at google.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h
    M mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir

  Log Message:
  -----------
  [mlir][gpu] Add support for f16 when lowering to nvvm intrinsics

Summary:
The NVVM target only provides implementations for tanh etc. on f32 and
f64 operands. To also support f16, we now insert operations to extend to f32
and truncate back to f16 around the intrinsic call.

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




More information about the All-commits mailing list