[all-commits] [llvm/llvm-project] 24aa4e: [mlir] Print 0 element DenseElementsAttr as dense<...

River Riddle via All-commits all-commits at lists.llvm.org
Wed Jul 8 18:48:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 24aa4efffd831a1125b4eb835e1911fa38f501d7
      https://github.com/llvm/llvm-project/commit/24aa4efffd831a1125b4eb835e1911fa38f501d7
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-07-08 (Wed, 08 Jul 2020)

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

  Log Message:
  -----------
  [mlir] Print 0 element DenseElementsAttr as dense<> to fix parser bugs with expected shape.

Depending on where the 0 dimension is within the shape, the parser will currently reject .mlir generated by the printer.

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




More information about the All-commits mailing list