[all-commits] [llvm/llvm-project] 1bd14c: [mlir] Use double format when parsing bfloat16 hex...

River Riddle via All-commits all-commits at lists.llvm.org
Tue Jan 14 13:56:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bd14ce39293df61888042916a7e43b9e502a4de
      https://github.com/llvm/llvm-project/commit/1bd14ce39293df61888042916a7e43b9e502a4de
  Author: River Riddle <riverriddle at google.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M mlir/lib/Parser/Parser.cpp
    M mlir/test/IR/invalid.mlir
    M mlir/test/IR/parser.mlir

  Log Message:
  -----------
  [mlir] Use double format when parsing bfloat16 hexadecimal values

Summary: bfloat16 doesn't have a valid APFloat format, so we have to use double semantics when storing it. This change makes sure that hexadecimal values can be round-tripped properly given this fact.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list