Issue 126046
Summary [MLIR][LLVM Dialect][DTLI] Missing DLTI entries
Labels mlir
Assignees
Reporter ghehg
    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.
 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to