[all-commits] [llvm/llvm-project] 7d59f4: [mlir] Fix representation of BF16 constants

Diego Caballero via All-commits all-commits at lists.llvm.org
Fri Jun 5 17:46:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d59f49bdaddf053d74de9ef57c7ec64bdf4fa25
      https://github.com/llvm/llvm-project/commit/7d59f49bdaddf053d74de9ef57c7ec64bdf4fa25
  Author: Diego Caballero <diego.caballero at intel.com>
  Date:   2020-06-05 (Fri, 05 Jun 2020)

  Changed paths:
    M mlir/lib/IR/AttributeDetail.h
    M mlir/lib/IR/StandardTypes.cpp
    M mlir/lib/Parser/Parser.cpp
    M mlir/test/IR/dense-elements-hex.mlir
    M mlir/test/IR/parser.mlir
    M mlir/test/Target/llvmir.mlir
    M mlir/unittests/IR/AttributeTest.cpp

  Log Message:
  -----------
  [mlir] Fix representation of BF16 constants

This patch is a follow-up on https://reviews.llvm.org/D81127

BF16 constants were represented as 64-bit floating point values due to the lack
of support for BF16 in APFloat. APFloat was recently extended to support
BF16 so this patch is fixing the BF16 constant representation to be 16-bit.

Reviewed By: rriddle

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




More information about the All-commits mailing list