[mlir][llvm] Fix export of 64-bit integer function attributes
commit4f52210a563b5780ae447a876e6da446b32f0b07
authorMogball <jeff@modular.com>
Fri, 28 Jul 2023 22:37:17 +0000 (28 15:37 -0700)
committerJeff Niu <jeffniu@Jeffs-MBP.attlocal.net>
Fri, 28 Jul 2023 22:37:25 +0000 (28 15:37 -0700)
tree02411da25e3e26a67f09112dd999ea66945c9cdf
parentcc1b6668c57170cd440d321037ced89d6a61a9cb
[mlir][llvm] Fix export of 64-bit integer function attributes

The `allocsize` attribute is weird because it packs two 32-bit values
into a 64-bit value. It also turns out that the passthrough attribute
exporter was using `int`, which is incorrectly handling 64-bit integers.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D156574
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/LLVMIR/llvmir.mlir