[all-commits] [llvm/llvm-project] e8d500: [mlir] Fix parsing of empty complex tensors (#134322)

Kevin Gleason via All-commits all-commits at lists.llvm.org
Fri Apr 4 09:30:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8d50097849081168f0285418ce8a36733eb7154
      https://github.com/llvm/llvm-project/commit/e8d50097849081168f0285418ce8a36733eb7154
  Author: Kevin Gleason <gleasonk at google.com>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

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

  Log Message:
  -----------
  [mlir] Fix parsing of empty complex tensors (#134322)

After https://github.com/llvm/llvm-project/pull/133220 we had some empty
complex literals (`tensor<0xcomplex<f32>>`) failing to parse.

This was largely due to the ambiguity between `shape.empty()` meaning
splat (`dense<1>`) or empty literal (`dense<>`). Used type's numel to
disambiguate during verification.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list