[mlir] Support big-endian systems in DenseElementsAttr (multiple word)
authorHaruki Imai <imaihal@jp.ibm.com>
Fri, 20 Nov 2020 05:07:31 +0000 (05:07 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 20 Nov 2020 05:09:33 +0000 (05:09 +0000)
commitfbfbfa5c713f4b98f174f9ff3416eaf42d133bc0
tree28ccf215e54fc80bed6c255c0bc3086cd30f6102
parent0f9f0a4046e11c2b4c130640f343e3b2b5db08c1
[mlir] Support big-endian systems in DenseElementsAttr (multiple word)

 D78076 supports big endian in DenseElementsAttr, but does not work when
APInt has multiple words(the number of bits > 64). This patch updates
D78076 to support it.
This patch removed the fix in D78076 and re-implemented to support multiple words.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D80272
mlir/lib/IR/Attributes.cpp