[all-commits] [llvm/llvm-project] a20182: Fix parsing of hex-format index dense tensor attri...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Fri Oct 8 08:44:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a201829a201886c2fad4b6ac8da07e2b4e445041
      https://github.com/llvm/llvm-project/commit/a201829a201886c2fad4b6ac8da07e2b4e445041
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

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

  Log Message:
  -----------
  Fix parsing of hex-format index dense tensor attributes.

TensorLiteralParser::getHexAttr does a isIntOrIndexOrFloat check and properly handles index elements, but TensorLiteralParser::getAttr that calls into it has a mismatched check. This just makes the checks match so that index element attrs can parse when of type tensor.

Reviewed By: rriddle

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




More information about the All-commits mailing list