[all-commits] [llvm/llvm-project] a66e33: [mlir] Convert raw data in dense element attribute...
Haruki Imai via All-commits
all-commits at lists.llvm.org
Wed Oct 28 17:13:23 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a66e334cebec0c54ec357436563ddf78e3caab72
https://github.com/llvm/llvm-project/commit/a66e334cebec0c54ec357436563ddf78e3caab72
Author: Haruki Imai <imaihal at jp.ibm.com>
Date: 2020-10-28 (Wed, 28 Oct 2020)
Changed paths:
M mlir/include/mlir/IR/Attributes.h
M mlir/lib/IR/AsmPrinter.cpp
M mlir/lib/IR/Attributes.cpp
M mlir/lib/Parser/AttributeParser.cpp
M mlir/test/IR/dense-elements-hex.mlir
Log Message:
-----------
[mlir] Convert raw data in dense element attributes for big-endian machines.
This patch fixes a bug [[ https://bugs.llvm.org/show_bug.cgi?id=46091 | 46091 ]]
Raw data for the `dense-element attribute` is written in little endian (LE) format.
This commit converts the format to big endian (BE) in ʻAttribute Parser` on the
BE machine. Also, when outputting on a BE machine, the BE format is converted
to LE in "AsmPrinter".
Differential Revision: https://reviews.llvm.org/D80695
More information about the All-commits
mailing list