[all-commits] [llvm/llvm-project] 7de848: [MLIR] Printing a null Value.

Stanislav Funiak via All-commits all-commits at lists.llvm.org
Mon Jan 3 18:43:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7de8488c3d7e9f4a5e2d05007e5ea17482a02410
      https://github.com/llvm/llvm-project/commit/7de8488c3d7e9f4a5e2d05007e5ea17482a02410
  Author: Stanislav Funiak <stano at cerebras.net>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

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

  Log Message:
  -----------
  [MLIR] Printing a null Value.

This diff adds support to printing a Value when it is null. We encounter this situation when debugging the PDL bytcode execution (where a null Value is perfectly valid). Currently, the AsmPrinter crashes (with an assert in a cast) when it encounters such Value.

We follow the same format used in other printed entities (e.g., null attribute).

Reviewed By: mehdi_amini, bondhugula

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




More information about the All-commits mailing list