clangir icon indicating copy to clipboard operation
clangir copied to clipboard

Data layout modeling for CIR types

Open Lancern opened this issue 1 year ago • 2 comments

The data layout of some types are target-specific. For example, the size of a pointer could be 4 or 8 depending on the target. However, the current DataLayoutTypeInterface implementation for all CIR types only return a fixed data layout regardless of the target.

The data layout subsystem of MLIR allows customization of data layouts of types within a specific region. The module op and each region can be attached with data layout properties, typically in the form of data layout specifications, that affect the layout of the types within them. We can leverage this mechanism to make the CIR types aware of the target when computing data layout, by attaching the module op with data layout information computed for the target.

Lancern avatar Jul 01 '24 13:07 Lancern

@Lancern are you currently working on this one? @sitio-couto might be able to take it

bcardosolopes avatar Sep 11 '24 00:09 bcardosolopes

@bcardosolopes No I have not started working on this. @sitio-couto Feel free to take it!

Lancern avatar Sep 11 '24 01:09 Lancern