[PATCH] D80695: [mlir] Convert raw data in dense element attributes for big-endian machines.

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 10:24:20 PDT 2020


rriddle requested changes to this revision.
rriddle added inline comments.
This revision now requires changes to proceed.


================
Comment at: mlir/lib/Support/EndianUtilities.cpp:44
+
+void mlir::convEndianBE(ArrayRef<char> inRawData,
+                        MutableArrayRef<char> outRawData, ShapedType type) {
----------------
Can you just make this a utility method on DenseIntOrFpElementsAttr itself? This removes the duplicated code, and also removes the need to break library layering by having Support/ depend on IR/.


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