This is an archive of the discontinued LLVM Phabricator instance.

[mlir][FuncToLLVM] Add option for emitting opaque pointers
ClosedPublic

Authored by zero9178 on Feb 8 2023, 2:50 PM.

Details

Summary

Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179

FuncToLLVM contains some logic working with Memrefs and their lowerings and in the process creating pointer types, loads and allocas. This patch ports the code of these to be compatible with opaque pointers and adds a pass option to enable the use of opaque pointers within the pass.

For the migration effort, the tests have been rewritten to use opaque pointers with dedicated test files for typed pointer support

Depends on https://reviews.llvm.org/D143473

Diff Detail

Event Timeline

zero9178 created this revision.Feb 8 2023, 2:50 PM
zero9178 requested review of this revision.Feb 8 2023, 2:50 PM
Dinistro accepted this revision.Feb 9 2023, 12:51 AM

Thanks for pushing on this, LGTM!

This revision is now accepted and ready to land.Feb 9 2023, 12:51 AM
gysit accepted this revision.Feb 9 2023, 1:15 AM

LGTM!