This is an archive of the discontinued LLVM Phabricator instance.

[mlir][MemRefToLLVM] Lower extract_strided_metadata
ClosedPublic

Authored by qcolombet on Oct 19 2022, 5:08 PM.

Details

Summary

The extract_strided_metadata operation literally breaks down a memory descriptor into its different components.
Teach the MemRefToLLVM conversion framework this fact.

Diff Detail

Event Timeline

qcolombet created this revision.Oct 19 2022, 5:08 PM
qcolombet requested review of this revision.Oct 19 2022, 5:08 PM
ftynse accepted this revision.Oct 25 2022, 1:24 AM
ftynse added inline comments.
mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
2123

Nit: getRank returns int64_t, let's stick with that to avoid sign-cast warnings in some compilers.

This revision is now accepted and ready to land.Oct 25 2022, 1:24 AM
qcolombet updated this revision to Diff 470931.Oct 26 2022, 2:12 PM
  • Use int64_t instead of size_t for the rank.
qcolombet marked an inline comment as done.Oct 26 2022, 2:13 PM
This revision was landed with ongoing or failed builds.Oct 26 2022, 2:34 PM
This revision was automatically updated to reflect the committed changes.