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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Maybe a test somewhere around here: https://github.com/llvm/llvm-project/blob/5f4c91583ee772a6ce2c4f192e25b07e6075eb00/mlir/test/IR/attribute.mlir#L444 ?
Comment Actions
Added a test - there was nothing in this file testing the hex format at all, so I just used what I knew would trigger that path and round-trip as hex.