[all-commits] [llvm/llvm-project] 58c18c: [mlir][AsmPrinter] Fix edge case when printing flo...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Feb 6 18:13:48 PST 2020


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

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

  Log Message:
  -----------
  [mlir][AsmPrinter] Fix edge case when printing floating point values.

Summary: In some edge cases the default APFloat printer will generate something that we can't parse back in. In these cases, fallback to using hex instead.

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




More information about the All-commits mailing list