[all-commits] [llvm/llvm-project] 87c032: [IR] Make Value::getType() work better with invali...

Chris Lattner via All-commits all-commits at lists.llvm.org
Mon Dec 28 12:51:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 87c032f7b449cee97751d86739e249738029bf63
      https://github.com/llvm/llvm-project/commit/87c032f7b449cee97751d86739e249738029bf63
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2020-12-28 (Mon, 28 Dec 2020)

  Changed paths:
    M mlir/lib/IR/Value.cpp

  Log Message:
  -----------
  [IR] Make Value::getType() work better with invalid IR.

The asmprinter would crash when dumping IR objects that had their
operands dropped.  With this change, we now get this output, which
makes op->dump() style debugging more useful.

%5 = "firrtl.eq"(<<NULL>>, <<NULL>>) : (<<NULL TYPE>>, <<NULL TYPE>>) -> !firrtl.uint<1>

Previously the asmprinter would crash getting the types of the null operands.

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




More information about the All-commits mailing list