[PATCH] D80695: [mlir] Added big endian version of "dense-elements-hex.mlir"

Haruki Imai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 18:09:06 PDT 2020


imaihal added a comment.

Thanks. I checked the source code. The dense attribute with hex data is parsed here https://github.com/llvm/llvm-project/blob/master/mlir/lib/Parser/AttributeParser.cpp#L682-L684
If we can assume the hex data is always little-endian, it can be converted here, but we can't assume that. So, my understanding is that the hex data of `dense-elements-hex.mlir` should be generated depending on the endianness. Is this possible? I'm looking for similar examples.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80695/new/

https://reviews.llvm.org/D80695



More information about the llvm-commits mailing list