This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Data layout for integer and float types
ClosedPublic

Authored by ftynse on Mar 1 2022, 9:21 AM.

Details

Summary

Add support for integer and float types into the data layout subsystem with
default logic similar to LLVM IR. Given the flexibility of the sybsystem, the
logic can be easily overwritten by operations if necessary. This provides the
connection necessary, e.g., for the GPU target where alignment requirements for
integers and floats differ from those provided by default (although still
compatible with the LLVM IR model). Previously, it was impossible to use
non-default alignment requirements for integer and float types, which could
lead to incorrect address and size calculations when targeting GPUs.

Depends On D120737

Diff Detail

Event Timeline

ftynse created this revision.Mar 1 2022, 9:21 AM
ftynse requested review of this revision.Mar 1 2022, 9:21 AM
wsmoses accepted this revision.Mar 1 2022, 9:28 AM
This revision is now accepted and ready to land.Mar 1 2022, 9:28 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 5:57 AM