Skip to content

[MLIR][LLVM Dialect][DTLI] Missing DLTI entriesΒ #126046

@ghehg

Description

@ghehg

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions