-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
Description
mlir:llvm
when we do mlir-translate --import-llvm for the simple LLVM IR line like following
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
to parse datalayout string from LLVM IR, we got following warnings
test.c:0:0: warning: unhandled data layout token: m:e
test.c:0:0: warning: unhandled data layout token: n32:64
test.c:0:0: warning: unhandled data layout token: Fn32
Thats because MLIR DLIT doesn't have representation of Mangling, native int width, as well as function pointer alignment, and thus LLVM dialect cannot import them.
We should add those things to preserve info.
rengolin, gysit, rolfmorel and bcardosolopes