[all-commits] [llvm/llvm-project] b3e648: [mlir][DenseElementsAttr] Fix storage size for bfl...

River Riddle via All-commits all-commits at lists.llvm.org
Tue Feb 25 15:00:47 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b3e6487f02ac98b6c4a501f5da10c867bd98f769
      https://github.com/llvm/llvm-project/commit/b3e6487f02ac98b6c4a501f5da10c867bd98f769
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-02-25 (Tue, 25 Feb 2020)

  Changed paths:
    M mlir/lib/Parser/Parser.cpp
    M mlir/test/IR/dense-elements-hex.mlir

  Log Message:
  -----------
  [mlir][DenseElementsAttr] Fix storage size for bfloat16 when parsing from hex.

Summary: bfloat16 is stored internally as a double, so we can't direct use Type::getIntOrFloatBitWidth.

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




More information about the All-commits mailing list